mtl::matrix::compressed2D< Elt, Parameters > Class Template Reference

Compressed 2D matrix type. More...

#include <compressed2D.hpp>

Inheritance diagram for mtl::matrix::compressed2D< Elt, Parameters >:

Inheritance graph
[legend]
Collaboration diagram for mtl::matrix::compressed2D< Elt, Parameters >:

Collaboration graph
[legend]

List of all members.

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 times.
selfoperator= (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.

Friends

void swap (self &matrix1, self &matrix2)
 Swap matrices.


Detailed Description

template<typename Elt, typename Parameters = matrix::parameters<>>
class mtl::matrix::compressed2D< Elt, Parameters >

Compressed 2D matrix type.

Member Function Documentation

template<typename Elt, typename Parameters = matrix::parameters<>>
value_type& mtl::matrix::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


The documentation for this class was generated from the following file:





mtl::matrix::compressed2D< Elt, Parameters > Class Template Reference -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine -- Generated on 19 May 2009 by Doxygen 1.5.5 -- Copyright 2007 by the Trustees of Indiana University.