|
template<typename MT , bool SO> |
size_t | blaze::rows (const Matrix< MT, SO > &m) |
| Returns the current number of rows of the matrix. More...
|
|
template<typename MT , bool SO> |
size_t | blaze::columns (const Matrix< MT, SO > &m) |
| Returns the current number of columns of the matrix. More...
|
|
template<typename MT , bool SO> |
size_t | blaze::capacity (const Matrix< MT, SO > &m) |
| Returns the maximum capacity of the matrix. More...
|
|
template<typename MT , bool SO> |
size_t | blaze::capacity (const Matrix< MT, SO > &m, size_t i) |
| Returns the current capacity of the specified row/column. More...
|
|
template<typename MT , bool SO> |
size_t | blaze::nonZeros (const Matrix< MT, SO > &m) |
| Returns the total number of non-zero elements in the matrix. More...
|
|
template<typename MT , bool SO> |
size_t | blaze::nonZeros (const Matrix< MT, SO > &m, size_t i) |
| Returns the number of non-zero elements in the specified row/column. More...
|
|
template<typename MT1 , bool SO1, typename MT2 , bool SO2> |
void | blaze::assign (Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) |
| Default implementation of the assignment of a matrix to a matrix. More...
|
|
template<typename MT1 , bool SO1, typename MT2 , bool SO2> |
void | blaze::addAssign (Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) |
| Default implementation of the addition assignment of a matrix to a matrix. More...
|
|
template<typename MT1 , bool SO1, typename MT2 , bool SO2> |
void | blaze::subAssign (Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) |
| Default implementation of the subtraction assignment of a matrix to matrix. More...
|
|
template<typename MT1 , bool SO1, typename MT2 , bool SO2> |
void | blaze::multAssign (Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) |
| Default implementation of the multiplication assignment of a matrix to a matrix. More...
|
|
template<typename MT1 , bool SO1, typename MT2 , bool SO2> |
bool | blaze::isSame (const Matrix< MT1, SO1 > &a, const Matrix< MT2, SO2 > &b) |
| Returns whether the two given matrices represent the same observable state. More...
|
|
template<typename MT1 , bool SO1, typename MT2 , bool SO2>
void blaze::addAssign |
( |
Matrix< MT1, SO1 > & |
lhs, |
|
|
const Matrix< MT2, SO2 > & |
rhs |
|
) |
| |
|
inline |
Default implementation of the addition assignment of a matrix to a matrix.
- Parameters
-
lhs | The target left-hand side matrix. |
rhs | The right-hand side matrix to be added. |
- Returns
- void
This function implements the default addition assignment of a matrix to a matrix.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
template<typename MT1 , bool SO1, typename MT2 , bool SO2>
void blaze::assign |
( |
Matrix< MT1, SO1 > & |
lhs, |
|
|
const Matrix< MT2, SO2 > & |
rhs |
|
) |
| |
|
inline |
Default implementation of the assignment of a matrix to a matrix.
- Parameters
-
lhs | The target left-hand side matrix. |
rhs | The right-hand side matrix to be assigned. |
- Returns
- void
This function implements the default assignment of a matrix to a matrix.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
template<typename MT1 , bool SO1, typename MT2 , bool SO2>
bool blaze::isSame |
( |
const Matrix< MT1, SO1 > & |
a, |
|
|
const Matrix< MT2, SO2 > & |
b |
|
) |
| |
|
inline |
Returns whether the two given matrices represent the same observable state.
- Parameters
-
a | The first matrix to be tested for its state. |
b | The second matrix to be tested for its state. |
- Returns
- true in case the two matrices share a state, false otherwise.
The isSame function provides an abstract interface for testing if the two given matrices represent the same observable state. This happens for instance in case a
and b
refer to the same matrix or in case a
and b
are aliases for the same matrix. In case both matrices represent the same observable state, the function returns true, other it returns false.
MatrixType mat1( 4UL, 5UL );
MatrixType mat2( 4UL, 5UL );
SubmatrixType sub1 =
submatrix( mat1, 0UL, 0UL, 4UL, 5UL );
SubmatrixType sub2 =
submatrix( mat1, 1UL, 1UL, 2UL, 3UL );
SubmatrixType sub3 =
submatrix( mat1, 1UL, 1UL, 2UL, 3UL );
template<typename MT1 , bool SO1, typename MT2 , bool SO2>
void blaze::multAssign |
( |
Matrix< MT1, SO1 > & |
lhs, |
|
|
const Matrix< MT2, SO2 > & |
rhs |
|
) |
| |
|
inline |
Default implementation of the multiplication assignment of a matrix to a matrix.
- Parameters
-
lhs | The target left-hand side matrix. |
rhs | The right-hand side matrix to be multiplied. |
- Returns
- void
This function implements the default multiplication assignment of a matrix to a matrix.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
template<typename MT1 , bool SO1, typename MT2 , bool SO2>
void blaze::subAssign |
( |
Matrix< MT1, SO1 > & |
lhs, |
|
|
const Matrix< MT2, SO2 > & |
rhs |
|
) |
| |
|
inline |
Default implementation of the subtraction assignment of a matrix to matrix.
- Parameters
-
lhs | The target left-hand side matrix. |
rhs | The right-hand side matrix to be subtracted. |
- Returns
- void
This function implements the default subtraction assignment of a matrix to a matrix.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.