FP_mat< FT > Class Template Reference

#include <matrix.h>

Public Types

typedef FP_NR< FT > T
 

Public Member Functions

 FP_mat ()
 
 FP_mat (int rows, int cols)
 
- Public Member Functions inherited from Matrix< FP_NR< FT > >
 Matrix ()
 
 Matrix (int rows, int cols)
 
void clear ()
 
bool empty () const
 
void resize (int rows, int cols)
 
void set_rows (int rows)
 
void set_cols (int cols)
 
void fill (U value)
 
void swap (Matrix< FP_NR< FT > > &m)
 
int get_rows () const
 
int get_cols () const
 
FP_NR< FT > & operator() (int i, int j)
 
const FP_NR< FT > & operator() (int i, int j) const
 
MatrixRow< FP_NR< FT > > operator[] (int i)
 
const MatrixRow< FP_NR< FT > > operator[] (int i) const
 
void swap_rows (int r1, int r2)
 
void rotate_left (int first, int last)
 
void rotate_right (int first, int last)
 
void rotate (int first, int middle, int last)
 
void rotate_gram_left (int first, int last, int n_valid_rows)
 
void rotate_gram_right (int first, int last, int n_valid_rows)
 
void transpose ()
 
FP_NR< FT > get_max ()
 
long get_max_exp ()
 
void print (ostream &os, int nrows=-1, int ncols=-1) const
 
void read (istream &is)
 
ostream & print_comma (ostream &os) const
 

Additional Inherited Members

- Static Public Member Functions inherited from Matrix< FP_NR< FT > >
static int set_print_mode (int new_print_mode)
 
- Protected Attributes inherited from Matrix< FP_NR< FT > >
int r
 
int c
 
vector< NumVect< FP_NR< FT > > > matrix
 
- Static Protected Attributes inherited from Matrix< FP_NR< FT > >
static int print_mode
 

Detailed Description

template<class FT>
class FP_mat< FT >

FP_mat is a matrix of floating-point numbers.

Member Typedef Documentation

◆ T

template<class FT >
typedef FP_NR<FT> FP_mat< FT >::T

Constructor & Destructor Documentation

◆ FP_mat() [1/2]

template<class FT >
FP_mat< FT >::FP_mat ( )
inline

Creates an empty matrix (0 x 0).

◆ FP_mat() [2/2]

template<class FT >
FP_mat< FT >::FP_mat ( int  rows,
int  cols 
)
inline

Creates a matrix of dimensions rows x cols. All elements are initialized with the default constructor of FP_NR<T>.


The documentation for this class was generated from the following file: