matrix.cpp File Reference
#include "matrix.h"
#include "../defs.h"
This graph shows which files directly or indirectly include this file:

Macros

#define FPLLL_MATRIX_CPP
 

Functions

template<class ZTto , class ZTfrom >
bool convert (ZZ_mat< ZTto > &Ato, const ZZ_mat< ZTfrom > &Afrom, int buffer)
 

Macro Definition Documentation

◆ FPLLL_MATRIX_CPP

#define FPLLL_MATRIX_CPP

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.