#include <small_matrix.hpp>
Inheritance diagram for SmallMatrix< T >:


Public Member Functions | |
| SmallMatrix () | |
| Creates a dummy object. | |
| SmallMatrix (int the_m, int the_n) | |
| Creates a matrix. | |
| SmallMatrix (int the_m) | |
| Creates a column vector with the_m entries. | |
| SmallMatrix (const small_matrix< T > &M) | |
| Duplication. | |
| ~SmallMatrix () | |
| void | init (int the_m, int the_n=1) |
| Reinitializes the object. | |
| void | same_size (small_matrix< T > &A) |
| Sets the sizes from a given matrix and reallocates the memory. | |
| SmallMatrix< T > & | operator= (small_matrix< T > &src) |
| Assignment operator. | |
| SmallMatrix< T > & | operator= (T *seg) |
| Assignment operator. | |
| SmallMatrix< T > | inv () const |
| Returns the inverse matrix. | |
class SmallMatrix
| SmallMatrix< T >::SmallMatrix | ( | ) | [inline] |
Creates a dummy object.
| SmallMatrix< T >::SmallMatrix | ( | int | the_m, | |
| int | the_n | |||
| ) | [inline] |
Creates a matrix.
| [in] | the_m | Size m. |
| [in] | the_n | Size n. |
| SmallMatrix< T >::SmallMatrix | ( | int | the_m | ) | [inline] |
Creates a column vector with the_m entries.
| [in] | the_m | Number of rows. |
| SmallMatrix< T >::SmallMatrix | ( | const small_matrix< T > & | M | ) | [inline] |
Duplication.
| SmallMatrix< T >::~SmallMatrix | ( | ) | [inline] |
| void SmallMatrix< T >::init | ( | int | the_m, | |
| int | the_n = 1 | |||
| ) | [inline] |
Reinitializes the object.
Sets the new sizes and releases the previously allocated memory (if any)
| [in] | the_m | The new size m |
| [in] | the_n | The new size n |
| void SmallMatrix< T >::same_size | ( | small_matrix< T > & | A | ) | [inline] |
Sets the sizes from a given matrix and reallocates the memory.
| [in] | A | The given matrix to take the sizes from. |
| SmallMatrix<T>& SmallMatrix< T >::operator= | ( | small_matrix< T > & | src | ) | [inline] |
Assignment operator.
Merely copies the entries of the source matrix to the entries of the destination matrix. The matrices should have the same size.
| SmallMatrix<T>& SmallMatrix< T >::operator= | ( | T * | seg | ) | [inline] |
Assignment operator.
Copying the entries from a memory segment: merely copies n * m values starting from a given pointer to the 'entry' array.
| SmallMatrix< T > SmallMatrix< T >::inv | ( | ) | const [inline] |
Returns the inverse matrix.
1.5.2