class matrix |
Class for manipulating matrices of real numbers
![]() | matrix (int n=0, int m=0, double val=0.0) Constructor. |
![]() | matrix (const matrix&) Copy Constructor |
![]() | matrix (const vect& vec) Constructor. |
![]() | matrix (int n, int m, double** p) Constructor. |
![]() | operator= (const matrix&) Assignment operator |
![]() | ~matrix () Destructor |
![]() | dim1 () const Returns the number of rows of the matrix |
![]() | dim2 () const Returns the number of columns of the matrix |
![]() | row (int i) const Returns the i-th row of the matrix |
![]() | col (int i) const Returns the i-th column of the matrix |
![]() | transpose () const Returns the transpose of the matrix |
![]() | operator vect () const Matrix to vect type conversion |
![]() | operator[] (int i) const Returns a row i of the matrix |
![]() | operator() (int i, int j) Returns the element (i,j) of the matrix |
![]() | operator() (int, int) const Returns the element (i,j) of the matrix |
![]() | operator== (const matrix&) const Boolean equality test |
![]() | operator!= (const matrix& x) const Boolean inequality test |
![]() | operator+ (const matrix& M1) Addition of matrices Preconditions: Mdim1() == M1dim1() and Mdim2() == M1dim2() |
![]() | operator- (const matrix& M1) Subtraction of matrices Preconditions: Mdim1() == M1dim1() and Mdim2() == M1dim2() |
![]() | operator- () Unary minus |
![]() | operator-= (const matrix&) Overloading -= operator |
![]() | operator+= (const matrix&) Overloading += operator |
![]() | operator* (const matrix& M1) Multiplication of matrices Preconditions: Mdim2() == M1dim1() |
![]() | operator* (const vect& vec) Multiplication with vector Preconditions: Mdim2() == vecdim() |
![]() | operator* (double x) Multiplication with a scalar Preconditions: Mdim2() == vecdim() |
![]() | print (ostream& O) Prints the matrix row by row to ostream O |
![]() | print () Prints the matrix row by row to cout |
![]() | read (istream& I) Reads a matrix from the stream I Reads Mdim1 times Mdim2() numbers from input stream I and writes them row by row into the matrix |
![]() | read () Reads a matrix from standard input Reads Mdim1 times Mdim2() numbers from cin and writes them row by row into the matrix |
![]() | initialize (double val = 0.0) Initialize the matrix All the elements of the matrix are initialized to value |
Class for manipulating matrices of real numbers
Alphabetic index HTML hierarchy of classes or Java