CUV
0.9.201304091348
|
Basic matrix class. More...
#include <matrix.hpp>
Public Types | |
typedef __value_type | value_type |
Type of the entries of matrix. | |
typedef __index_type | index_type |
Type of indices. |
Public Member Functions | |
matrix (const index_type &h, const index_type &w) | |
Basic constructor: set width and height of matrix but do not allocate any memory. | |
matrix (const matrix< value_type, index_type > &m) | |
Copy Constructor. | |
matrix< value_type, index_type > & | operator= (const matrix< value_type, index_type > &m) |
assignment operator | |
virtual | ~matrix () |
void | resize (const index_type &h, const index_type &w) |
Resizing matrix: changing width and height without changing memory layout. | |
index_type | w () const |
Return matrix width. | |
index_type | h () const |
Return matrix height. | |
index_type | n () const |
Return number of entries in matrix. |
Protected Attributes | |
index_type | m_width |
Width of matrix. | |
index_type | m_height |
Heigth of matrix. |
Friends | |
template<class Archive , class V , class I > | |
void | serialize (Archive &, dia_matrix< V, host_memory_space, I > &, unsigned int) |
serialization function to save matrix |
Basic matrix class.
This matrix class is the parent of all other matrix classes and has all the basic attributes that all matrices share. This class is never actually instanciated.
Definition at line 50 of file matrix.hpp.
|
inline |
Basic constructor: set width and height of matrix but do not allocate any memory.
h | Height of matrix |
w | Width of matrix |
Definition at line 66 of file matrix.hpp.
|
inlinevirtual |
< Empty destructor
Definition at line 87 of file matrix.hpp.
|
inline |
Resizing matrix: changing width and height without changing memory layout.
h | New height of matrix |
w | New width of matrix |
Definition at line 95 of file matrix.hpp.