matrix.h File Reference
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
class | MatrixRow< T > |
class | Matrix< T > |
class | ZZ_mat< ZT > |
class | FP_mat< FT > |
Enumerations | |
enum | MatPrintMode { MAT_PRINT_COMPACT = 0 , MAT_PRINT_REGULAR = 1 } |
Functions | |
template<class T > | |
ostream & | operator<< (ostream &os, const MatrixRow< T > &row) |
template<class T > | |
ostream & | operator<< (ostream &os, const Matrix< T > &m) |
template<class T > | |
istream & | operator>> (istream &is, Matrix< T > &m) |
template<class ZTto , class ZTfrom > | |
bool | convert (ZZ_mat< ZTto > &Ato, const ZZ_mat< ZTfrom > &Afrom, int buffer=0) |
Enumeration Type Documentation
◆ MatPrintMode
enum MatPrintMode |
Function Documentation
◆ convert()
template<class ZTto , class ZTfrom >
bool convert | ( | ZZ_mat< ZTto > & | Ato, |
const ZZ_mat< ZTfrom > & | Afrom, | ||
int | buffer = 0 |
||
) |
Converts integer matrices. Conversion is coing through get_si(), so ONLY use for small numbers that fit into longs. More specifically, Afrom is converted to Ato (and true is returned) if all numbers in Afrom fit into numeric_limits<long>::digits - buffer bits. Otherwise, conversion is aborted and false is returned.
◆ operator<<() [1/2]
template<class T >
ostream & operator<< | ( | ostream & | os, |
const Matrix< T > & | m | ||
) |
◆ operator<<() [2/2]
template<class T >
ostream & operator<< | ( | ostream & | os, |
const MatrixRow< T > & | row | ||
) |
Prints a MatrixRow on stream os.
◆ operator>>()
template<class T >
istream & operator>> | ( | istream & | is, |
Matrix< T > & | m | ||
) |