colvarmodule::matrix2d Class Template Reference
\brief Arbitrary size array (two dimensions) suitable for linear algebra operations (i.e. for floating point numbers it can be used with library functions).
More...
#include <colvartypes.h>
List of all members.
Public Methods
void
resize (size_t const ol, size_t const il)
Allocation routine, used by all constructors. More...
matrix2d (size_t const ol, size_t const il)
Return a reference to the data. More...
matrix2d< T > &
operator= (matrix2d< T > const &m)
Static Public Methods
void
check_sizes (matrix2d< T > const &m1, matrix2d< T > const &m2)
Public Attributes
Protected Attributes
Friends
matrix2d< T >
operator+ (matrix2d< T > const &m1, matrix2d< T > const &m2)
matrix2d< T >
operator- (matrix2d< T > const &m1, matrix2d< T > const &m2)
vector-matrix multiplication. More...
std::ostream &
operator<< (std::ostream &os, matrix2d< T > const &m)
Detailed Description
template<class T>
class colvarmodule::matrix2d< T >
\brief Arbitrary size array (two dimensions) suitable for linear algebra operations (i.e. for floating point numbers it can be used with library functions).
Definition at line 357 of file colvartypes.h.
Constructor & Destructor Documentation
template<class T>
colvarmodule::matrix2d< T >::matrix2d
(
)
[inline]
template<class T>
colvarmodule::matrix2d< T >::matrix2d
(
size_t const
ol,
size_t const
il
)
[inline]
template<class T>
colvarmodule::matrix2d< T >::matrix2d
(
matrix2d< T > const &
m
)
[inline]
template<class T>
colvarmodule::matrix2d< T >::~matrix2d
(
)
[inline]
Member Function Documentation
template<class T>
T** colvarmodule::matrix2d< T >::c_array
(
)
[inline]
template<class T>
void colvarmodule::matrix2d< T >::check_sizes
(
matrix2d< T > const &
m1,
matrix2d< T > const &
m2
)
[inline, static]
template<class T>
void colvarmodule::matrix2d< T >::clear
(
)
[inline]
template<class T>
std::vector<T>& colvarmodule::matrix2d< T >::data_array
(
)
[inline]
template<class T>
int colvarmodule::matrix2d< T >::from_simple_string
(
std::string const &
s
)
[inline]
template<class T>
void colvarmodule::matrix2d< T >::operator *=
(
cvm::real
a
)
[inline]
template<class T>
void colvarmodule::matrix2d< T >::operator+=
(
matrix2d< T > const &
m
)
[inline]
template<class T>
void colvarmodule::matrix2d< T >::operator-=
(
matrix2d< T > const &
m
)
[inline]
template<class T>
void colvarmodule::matrix2d< T >::operator/=
(
cvm::real
a
)
[inline]
template<class T>
matrix2d<T>& colvarmodule::matrix2d< T >::operator=
(
matrix2d< T > const &
m
)
[inline]
template<class T>
row const& colvarmodule::matrix2d< T >::operator[]
(
size_t const
i
)
const
[inline]
template<class T>
row& colvarmodule::matrix2d< T >::operator[]
(
size_t const
i
)
[inline]
template<class T>
void colvarmodule::matrix2d< T >::reset
(
)
[inline]
template<class T>
void colvarmodule::matrix2d< T >::resize
(
size_t const
ol,
size_t const
il
)
[inline]
Allocation routine, used by all constructors.
Definition at line 402 of file colvartypes.h.
References data.
template<class T>
size_t colvarmodule::matrix2d< T >::size
(
)
const [inline]
template<class T>
std::string colvarmodule::matrix2d< T >::to_simple_string
(
)
const
[inline]
Friends And Related Function Documentation
template<class T>
matrix2d< T > const &
m
)
[friend]
template<class T>
matrix2d< T > const &
m
)
[friend]
template<class T>
matrix2d<T> operator *
(
matrix2d< T > const &
m,
)
[friend]
template<class T>
matrix2d<T> operator+
(
matrix2d< T > const &
m1,
matrix2d< T > const &
m2
)
[friend]
template<class T>
matrix2d<T> operator-
(
matrix2d< T > const &
m1,
matrix2d< T > const &
m2
)
[friend]
template<class T>
matrix2d<T> operator/
(
matrix2d< T > const &
m,
)
[friend]
template<class T>
std::ostream& operator<<
(
std::ostream &
os,
matrix2d< T > const &
m
)
[friend]
template<class T>
friend class row [friend]
Member Data Documentation
template<class T>
std::vector<T> colvarmodule::matrix2d::data [protected]
template<class T>
size_t colvarmodule::matrix2d::inner_length
template<class T>
size_t colvarmodule::matrix2d::outer_length
template<class T>
std::vector<T *> colvarmodule::matrix2d::pointers [protected]
template<class T>
std::vector<
row> colvarmodule::matrix2d::rows
[protected]
The documentation for this class was generated from the following file:
Generated on Mon Nov 17 02:48:29 2025 for VMD (current) by
doxygen1.2.14 written by Dimitri van Heesch,
© 1997-2002