Public Member Functions |
| matrix () |
| The default constructor. Does not allocate any memory.
|
| matrix (size_type rows, size_type columns) |
| Creates the matrix with the given dimensions.
|
| matrix (cl_mem mem, size_type rows, size_type columns) |
template<typename LHS , typename RHS , typename OP > |
| matrix (matrix_expression< LHS, RHS, OP > const &proxy) |
| matrix (const matrix< SCALARTYPE, F, ALIGNMENT > &mat) |
matrix< SCALARTYPE, F,
ALIGNMENT > & | operator= (const matrix< SCALARTYPE, F, ALIGNMENT > &mat) |
matrix< SCALARTYPE, F,
ALIGNMENT > & | operator= (const matrix_expression< const matrix< SCALARTYPE, F, ALIGNMENT >, const matrix< SCALARTYPE, F, ALIGNMENT >, op_trans > &proxy) |
void | resize (size_type rows, size_type columns, bool preserve=true) |
| Resizes the matrix. Existing entries can be preserved, but.
|
entry_proxy< SCALARTYPE > | operator() (size_type row_index, size_type col_index) |
| Read-write access to a single element of the vector.
|
scalar< SCALARTYPE > | operator() (size_type row_index, size_type col_index) const |
| Read access to a single element of the vector.
|
matrix_expression< const
matrix< SCALARTYPE, F,
ALIGNMENT >, const matrix
< SCALARTYPE, F, ALIGNMENT >
, op_add > | operator+ (const matrix< SCALARTYPE, F, ALIGNMENT > &other) |
matrix< SCALARTYPE, F,
ALIGNMENT > & | operator+= (const matrix< SCALARTYPE, F, ALIGNMENT > &other) |
matrix< SCALARTYPE, F,
ALIGNMENT > & | operator+= (const matrix_range< matrix< SCALARTYPE, F, ALIGNMENT > > &other) |
matrix_expression< const
matrix< SCALARTYPE, F,
ALIGNMENT >, const matrix
< SCALARTYPE, F, ALIGNMENT >
, op_sub > | operator- (const matrix< SCALARTYPE, F, ALIGNMENT > &other) |
matrix< SCALARTYPE, F,
ALIGNMENT > & | operator-= (const matrix< SCALARTYPE, F, ALIGNMENT > &other) |
template<unsigned int A1, unsigned int A2> |
matrix< SCALARTYPE, F,
ALIGNMENT > & | operator+= (const matrix_expression< const vector< SCALARTYPE, A1 >, const vector< SCALARTYPE, A2 >, op_prod > &proxy) |
template<unsigned int A1, unsigned int A2> |
matrix< SCALARTYPE, F,
ALIGNMENT > & | operator-= (const matrix_expression< const vector< SCALARTYPE, A1 >, const vector< SCALARTYPE, A2 >, op_prod > &proxy) |
template<unsigned int A1, unsigned int A2> |
matrix< SCALARTYPE, F,
ALIGNMENT > & | operator+= (const matrix_expression< const matrix_expression< const vector< SCALARTYPE, A1 >, const vector< SCALARTYPE, A2 >, op_prod >, const SCALARTYPE, op_prod > &proxy) |
template<unsigned int A1, unsigned int A2> |
matrix< SCALARTYPE, F,
ALIGNMENT > & | operator-= (const matrix_expression< const matrix_expression< const vector< SCALARTYPE, A1 >, const vector< SCALARTYPE, A2 >, op_prod >, const SCALARTYPE, op_prod > &proxy) |
matrix< SCALARTYPE, F,
ALIGNMENT > & | operator*= (SCALARTYPE val) |
matrix< SCALARTYPE, F,
ALIGNMENT > & | operator*= (scalar< SCALARTYPE > const &val) |
matrix< SCALARTYPE, F,
ALIGNMENT > & | operator/= (SCALARTYPE val) |
matrix< SCALARTYPE, F,
ALIGNMENT > & | operator/= (scalar< SCALARTYPE > const &val) |
template<typename MatrixType1 , typename MatrixType2 > |
matrix< SCALARTYPE, F,
ALIGNMENT > & | operator= (const matrix_expression< MatrixType1, MatrixType2, op_prod > &proxy) |
matrix< SCALARTYPE, F,
ALIGNMENT > & | operator= (const matrix_expression< const matrix< SCALARTYPE, F, ALIGNMENT >, const matrix< SCALARTYPE, F, ALIGNMENT >, op_add > &proxy) |
matrix< SCALARTYPE, F,
ALIGNMENT > & | operator= (const matrix_expression< const matrix< SCALARTYPE, F, ALIGNMENT >, const matrix< SCALARTYPE, F, ALIGNMENT >, op_sub > &proxy) |
const size_type & | size1 () const |
| Returns the number of rows.
|
const size_type & | size2 () const |
| Returns the number of columns.
|
void | clear () |
| Resets all entries to zero.
|
const size_type | internal_size1 () const |
| Returns the internal number of rows. Usually required for launching OpenCL kernels only.
|
const size_type | internal_size2 () const |
| Returns the internal number of columns. Usually required for launching OpenCL kernels only.
|
const size_type | internal_size () const |
| Returns the total amount of allocated memory in multiples of sizeof(SCALARTYPE)
|
const viennacl::ocl::handle
< cl_mem > & | handle () const |
| Returns the OpenCL handle.
|