#include <colvartypes.h>
Public Methods | |
void | resize (size_t const ol, size_t const il) |
Allocation routine, used by all constructors. More... | |
void | clear () |
Deallocation routine. More... | |
void | reset () |
Set all elements to zero. More... | |
size_t | size () const |
matrix2d () | |
Default constructor. More... | |
matrix2d (size_t const ol, size_t const il) | |
matrix2d (matrix2d< T > const &m) | |
Copy constructor. More... | |
~matrix2d () | |
Destructor. More... | |
std::vector< T > & | data_array () |
Return a reference to the data. More... | |
row & | operator[] (size_t const i) |
row const & | operator[] (size_t const i) const |
matrix2d< T > & | operator= (matrix2d< T > const &m) |
Assignment. More... | |
T ** | c_array () |
Return the 2-d C array. More... | |
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) |
Static Public Methods | |
void | check_sizes (matrix2d< T > const &m1, matrix2d< T > const &m2) |
Public Attributes | |
size_t | outer_length |
size_t | inner_length |
Protected Attributes | |
std::vector< T > | data |
std::vector< row > | rows |
std::vector< T * > | pointers |
Friends | |
class | row |
matrix2d< T > | operator+ (matrix2d< T > const &m1, matrix2d< T > const &m2) |
matrix2d< T > | operator- (matrix2d< T > const &m1, matrix2d< T > const &m2) |
matrix2d< T > | operator * (matrix2d< T > const &m, cvm::real a) |
matrix2d< T > | operator * (cvm::real a, matrix2d< T > const &m) |
matrix2d< T > | operator/ (matrix2d< T > const &m, cvm::real a) |
vector1d< T > | operator * (vector1d< T > const &v, matrix2d< T > const &m) |
vector-matrix multiplication. More... | |
std::ostream & | operator<< (std::ostream &os, matrix2d< T > const &m) |
Formatted output. More... |
Definition at line 357 of file colvartypes.h.
|
Default constructor.
Definition at line 462 of file colvartypes.h. |
|
Definition at line 468 of file colvartypes.h. References colvarmodule::reset. |
|
Copy constructor.
Definition at line 476 of file colvartypes.h. References data. |
|
Destructor.
Definition at line 486 of file colvartypes.h. |
|
Return the 2-d C array.
Definition at line 519 of file colvartypes.h. References NULL. |
|
Definition at line 527 of file colvartypes.h. References colvarmodule::error. |
|
Deallocation routine.
Definition at line 445 of file colvartypes.h. References data. |
|
Return a reference to the data.
Definition at line 491 of file colvartypes.h. References data. |
|
Definition at line 686 of file colvartypes.h. References COLVARS_ERROR, and data. |
|
Definition at line 558 of file colvartypes.h. References data. |
|
Definition at line 540 of file colvartypes.h. References data. |
|
Definition at line 549 of file colvartypes.h. References data. |
|
Definition at line 566 of file colvartypes.h. References data. |
|
Assignment.
Definition at line 506 of file colvartypes.h. References data. |
|
Definition at line 500 of file colvartypes.h. |
|
Definition at line 496 of file colvartypes.h. |
|
Set all elements to zero.
Definition at line 451 of file colvartypes.h. References data. |
|
Allocation routine, used by all constructors.
Definition at line 402 of file colvartypes.h. References data. |
|
Definition at line 456 of file colvartypes.h. References data. |
|
Definition at line 672 of file colvartypes.h. References data, colvarmodule::size, and string. |
|
vector-matrix multiplication.
Definition at line 624 of file colvartypes.h. |
|
Definition at line 608 of file colvartypes.h. |
|
Definition at line 598 of file colvartypes.h. |
|
Definition at line 574 of file colvartypes.h. |
|
Definition at line 586 of file colvartypes.h. |
|
Definition at line 613 of file colvartypes.h. |
|
Formatted output.
Definition at line 646 of file colvartypes.h. |
|
Definition at line 361 of file colvartypes.h. |
|
Definition at line 395 of file colvartypes.h. |
|
Definition at line 363 of file colvartypes.h. |
|
Definition at line 362 of file colvartypes.h. |
|
Definition at line 397 of file colvartypes.h. |
|
Definition at line 396 of file colvartypes.h. |