MTL 4: mtl::matrix< T, Shape, Storage, Orientation >::compressed2D< Elt, Parameters > Class Template Reference
#include <compressed2D.hpp>
Inherits base_matrix< Elt, Parameters >, mtl::matrix< compressed2D<Elt, Parameters>, Elt, std::size_t >::const_crtp_base_matrix, crtp_matrix_assign< compressed2D< Elt, Parameters >, Elt, std::size_t >, and mat_expr< compressed2D< Elt, Parameters > >.
Public Member Functions | |
void | make_empty () |
Removes all values; e.g. for set_to_zero. | |
void | change_dim (size_type r, size_type c) |
Change dimension of the matrix; data get lost. | |
compressed2D () | |
Default constructor. | |
compressed2D (mtl::non_fixed::dimensions d, size_t nnz=0) | |
Setting dimension and allocate starting vector. | |
compressed2D (size_type num_rows, size_type num_cols, size_t nnz=0) | |
Setting dimension and allocate starting vector. | |
compressed2D (const self &src) | |
Copy constructor. | |
template<typename MatrixSrc > | |
compressed2D (const MatrixSrc &src) | |
Copy from other types. | |
self & | operator= (self src) |
Consuming assignment operator. | |
const_reference | operator() (size_type row, size_type col) const |
Value of matrix entry. | |
value_type & | lvalue (size_type row, size_type col) |
L-value reference of stored matrix entry. | |
void | crop () |
Remove zero entries. | |
size_type * | address_major () |
Address of first major index; to be used with care. | |
size_type * | address_minor () |
Address of first minor index; to be used with care. | |
value_type * | address_data () |
Address of first data entry; to be used with care. | |
void | shrink () |
Release unused space in STL vectors. | |
size_type | nnz_local (size_type r_or_c) const |
Number of non-zeros in row/column r_or_c when matrix is row-/column-major. | |
Friends | |
void | swap (self &matrix1, self &matrix2) |
Swap matrices. |
value_type& mtl::matrix< T, Shape, Storage, Orientation >::compressed2D< Elt, Parameters >::lvalue | ( | size_type | row, | |
size_type | col | |||
) | [inline] |
L-value reference of stored matrix entry.
To be used with care; in debub mode exception is thrown if entry is not found
mtl::matrix< T, Shape, Storage, Orientation >::compressed2D< Elt, Parameters > Class Template Reference -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine
-- Gen. with
rev. 7542
on 7 Apr 2011 by doxygen 1.5.9 -- © 2010 by SimuNova UG.