|
| | matrix (int nfil=1, int ncol=1) |
| | Default matrix constructor. More...
|
| |
| | ~matrix () |
| | Destructor. More...
|
| |
| | matrix (const matrix &) |
| | Copy constructor. More...
|
| |
| int | nrows () const |
| | Returns the number of rows of the matrix. More...
|
| |
| int | ncols () const |
| | Returns the columns of rows of the matrix. More...
|
| |
| double * | data () const |
| | Returns the pointer to the matrix data. More...
|
| |
| matrix & | dim (int nrow, int ncol) |
| | Re-dimension the matrix. More...
|
| |
| matrix & | redim (int nrow, int ncol) |
| | Re-dimension the matrix. More...
|
| |
| matrix & | operator= (const matrix &) |
| | Affectation operator. More...
|
| |
| double & | operator() (int irow, int icol) |
| | Access matrix's elements. More...
|
| |
| double & | operator() (int ielem) |
| | Access matrix's elements. More...
|
| |
| const double & | operator() (int irow, int icol) const |
| | Access matrix's elements. More...
|
| |
| const double & | operator() (int ielem) const |
| | Access matrix's elements. More...
|
| |
| int | read (int nrow, int ncol, FILE *fp, char mode='t') |
| | Reads matrix data from a file. More...
|
| |
| int | write (FILE *fp=stdout, char mode='t') const |
| | Saves matrix to a file. More...
|
| |
| void | write_fmt (const char *fmt, FILE *fp=stdout) const |
| | Saves matrix to a file with a special format. More...
|
| |
| void | swap (matrix &) |
| | Swaps two matrices. More...
|
| |
| void | zero (int nrows, int ncols) |
| | Sets the matrix to the nrows x ncols zero matrix. More...
|
| |
| void | values (double,...) |
| | Sets the values of the matrix (given in column major order). More...
|
| |
| matrix | operator+ (const matrix &) const |
| | Performs matrix addition. More...
|
| |
| matrix | operator+ (double) const |
| |
| matrix | operator- (const matrix &) const |
| |
| matrix | operator- (double) const |
| |
| matrix | operator* (const matrix &) const |
| |
| matrix | operator* (double) const |
| |
| matrix | operator/ (const matrix &) const |
| |
| matrix | operator/ (double) const |
| |
| matrix | operator== (const matrix &) const |
| |
| matrix | operator== (double) const |
| |
| matrix | operator!= (const matrix &) const |
| |
| matrix | operator!= (double) const |
| |
| matrix | operator> (const matrix &) const |
| |
| matrix | operator> (double) const |
| |
| matrix | operator< (const matrix &a) const |
| |
| matrix | operator< (double) const |
| |
| matrix | operator>= (const matrix &) const |
| |
| matrix | operator>= (double) const |
| |
| matrix | operator<= (const matrix &a) const |
| |
| matrix | operator<= (double) const |
| |
| matrix | operator&& (const matrix &) const |
| |
| matrix | operator&& (double) const |
| |
| matrix | operator|| (const matrix &) const |
| |
| matrix | operator|| (double) const |
| |
| matrix & | operator+= (const matrix &) |
| |
| matrix & | operator-= (const matrix &) |
| |
| matrix & | operator*= (const matrix &) |
| |
| matrix & | operator/= (const matrix &) |
| |
| matrix & | operator+= (double) |
| |
| matrix & | operator-= (double) |
| |
| matrix & | operator*= (double) |
| |
| matrix & | operator/= (double) |
| |
| const matrix | row (int irow) const |
| |
| const matrix | col (int icol) const |
| |
| const matrix | block (int irow1, int irow2, int icol1, int icol2) const |
| |
| const matrix | block_step (int irow1, int irow2, int drow, int icol1, int icol2, int dcol) const |
| |
| matrix & | setrow (int irow, const matrix &) |
| |
| matrix & | setcol (int icol, const matrix &) |
| |
| matrix & | setblock (int irow1, int irow2, int icol1, int icol2, const matrix &) |
| |
| matrix & | setblock_step (int irow1, int irow2, int drow, int icol1, int icol2, int dcol, const matrix &) |
| |
| matrix | concatenate (const matrix &a, int dir=0) const |
| |
| matrix | transpose () const |
| |
| matrix | fliplr () const |
| |
| matrix | flipud () const |
| |
| matrix | operator, (const matrix &) const |
| |
| matrix | solve (matrix) const |
| |
| matrix | inv () const |
| |
|
| class | matrix_block_diag |
| |
| matrix | operator- (double, const matrix &) |
| |
| matrix | operator- (const matrix &) |
| |
| matrix | operator/ (double, const matrix &) |
| |
| matrix | ones (int nfil, int ncol) |
| |
| matrix | zeros (int nfil, int ncol) |
| |
| matrix | random_matrix (int nfil, int ncol) |
| |
| matrix | eye (int n) |
| |
| matrix | vector (double x0, double x1, int n) |
| |
| matrix | vector_t (double x0, double x1, int n) |
| |
| double | max (const matrix &) |
| |
| double | min (const matrix &) |
| |
| double | sum (const matrix &) |
| |
| double | mean (const matrix &) |
| |
| matrix | max (const matrix &, const matrix &) |
| |
| matrix | max (const matrix &, double) |
| |
| matrix | max (double, const matrix &) |
| |
| matrix | min (const matrix &, const matrix &) |
| |
| matrix | min (const matrix &, double) |
| |
| matrix | min (double, const matrix &) |
| |
| int | exist (const matrix &) |
| |
| int | isequal (const matrix &, const matrix &) |
| |
| matrix | cos (const matrix &) |
| |
| matrix | sin (const matrix &) |
| |
| matrix | tan (const matrix &) |
| |
| matrix | acos (const matrix &) |
| |
| matrix | asin (const matrix &) |
| |
| matrix | atan (const matrix &) |
| |
| matrix | cosh (const matrix &) |
| |
| matrix | sinh (const matrix &) |
| |
| matrix | tanh (const matrix &) |
| |
| matrix | exp (const matrix &) |
| |
| matrix | log (const matrix &) |
| |
| matrix | log10 (const matrix &) |
| |
| matrix | sqrt (const matrix &) |
| |
| matrix | abs (const matrix &) |
| |
| matrix | floor (const matrix &) |
| |
| matrix | ceil (const matrix &) |
| |
| matrix | round (const matrix &) |
| |
| matrix | atan2 (const matrix &, const matrix &) |
| |
| matrix | atan2 (double, const matrix &) |
| |
| matrix | atan2 (const matrix &, double) |
| |
| matrix | pow (const matrix &, const matrix &) |
| |
| matrix | pow (double, const matrix &) |
| |
| matrix | pow (const matrix &, double) |
| |
| matrix | pow (const matrix &, int) |
| |
The matrix class is used to facilitate the work with regular dense matrices.