|
ViennaCL - The Vienna Computing Library
1.5.1
|
A dense matrix class. More...
#include <matrix.hpp>
Public Types | |
| typedef base_type::size_type | size_type |
Public Member Functions | |
| matrix () | |
| The default constructor. Does not allocate any memory. | |
| matrix (size_type rows, size_type columns, viennacl::context ctx=viennacl::context()) | |
| Creates the matrix with the given dimensions. | |
| template<typename LHS , typename RHS , typename OP > | |
| matrix (matrix_expression< LHS, RHS, OP > const &proxy) | |
| matrix (identity_matrix< SCALARTYPE > const &m) | |
| Creates the matrix from the supplied identity matrix. | |
| matrix (zero_matrix< SCALARTYPE > const &m) | |
| Creates the matrix from the supplied zero matrix. | |
| matrix (scalar_matrix< SCALARTYPE > const &m) | |
| Creates the matrix from the supplied scalar matrix. | |
| matrix (const base_type &other) | |
| matrix (const self_type &other) | |
| void | resize (size_type rows, size_type columns, bool preserve=true) |
| Resizes the matrix. Existing entries can optionally be preserved. | |
A dense matrix class.
| SCALARTYPE | The underlying scalar type (either float or double) |
| F | Storage layout: Either row_major or column_major (at present only row_major is supported) |
| ALIGNMENT | The internal memory size is given by (size()/ALIGNMENT + 1) * ALIGNMENT. ALIGNMENT must be a power of two. Best values or usually 4, 8 or 16, higher values are usually a waste of memory. |
| typedef base_type::size_type size_type |
Reimplemented from matrix_base< SCALARTYPE, F >.
| matrix | ( | ) | [inline, explicit] |
The default constructor. Does not allocate any memory.
| matrix | ( | size_type | rows, |
| size_type | columns, | ||
| viennacl::context | ctx = viennacl::context() |
||
| ) | [inline, explicit] |
Creates the matrix with the given dimensions.
| rows | Number of rows |
| columns | Number of columns |
| ctx | Optional context in which the matrix is created (one out of multiple OpenCL contexts, CUDA, host) |
| matrix | ( | matrix_expression< LHS, RHS, OP > const & | proxy | ) | [inline] |
| matrix | ( | identity_matrix< SCALARTYPE > const & | m | ) | [inline] |
Creates the matrix from the supplied identity matrix.
| matrix | ( | zero_matrix< SCALARTYPE > const & | m | ) | [inline] |
Creates the matrix from the supplied zero matrix.
| matrix | ( | scalar_matrix< SCALARTYPE > const & | m | ) | [inline] |
Creates the matrix from the supplied scalar matrix.
Resizes the matrix. Existing entries can optionally be preserved.
| rows | New number of rows |
| columns | New number of columns |
| preserve | If true, existing values are preserved. |
Reimplemented from matrix_base< SCALARTYPE, F >.
1.7.6.1