Arbitrary size array (two dimensions) suitable for linear algebra operations (i.e. for floating point numbers it can be used with library functions)
More...
|
void | resize (size_t const ol, size_t const il) |
| Allocation routine, used by all constructors.
|
|
void | clear () |
| Deallocation routine.
|
|
void | reset () |
| Set all elements to zero.
|
|
size_t | size () const |
|
| matrix2d () |
| Default constructor.
|
|
| matrix2d (size_t const ol, size_t const il) |
|
| matrix2d (matrix2d< T > const &m) |
| Copy constructor.
|
|
| ~matrix2d () |
| Destructor.
|
|
std::vector< T > & | data_array () |
| Return a reference to the data.
|
|
std::vector< T > const & | data_array () const |
| Return a reference to the data.
|
|
row & | operator[] (size_t const i) |
|
row const & | operator[] (size_t const i) const |
|
matrix2d< T > & | operator= (matrix2d< T > const &m) |
| Assignment.
|
|
T ** | c_array () |
| Return the 2-d C array.
|
|
void | operator+= (matrix2d< T > const &m) |
|
void | operator-= (matrix2d< T > const &m) |
|
void | operator*= (cvm::real a) |
|
void | operator/= (cvm::real a) |
|
std::string | to_simple_string () const |
|
int | from_simple_string (std::string const &s) |
|
template<class T>
class colvarmodule::matrix2d< T >
Arbitrary size array (two dimensions) suitable for linear algebra operations (i.e. for floating point numbers it can be used with library functions)