interface to matrix
More...
#include <matrixvalue.hpp>
List of all members.
Public Member Functions |
|
|
| MatrixValue (value_type acc=value_type(0)) |
|
| MatrixValue (MatrixValue const &m) |
|
| ~MatrixValue () |
|
| unsigned int | size1 () const |
| unsigned int | size2 () const |
| size_type | nnz () const |
| unsigned int | rowStart () const |
| unsigned int | rowStop () const |
| bool | isInitialized () const |
| void | close () const |
| bool | closed () const |
| matrix_type const & | mat () const |
| matrix_type & | mat () |
| matrix_type const & | wmat () const |
| matrix_type & | wmat () |
|
| void | init (const unsigned int, const unsigned int, const unsigned int, const unsigned int, const unsigned int=30, const unsigned int=10) |
| void | clear () |
| void | zero () |
|
void | zero (size_type, size_type, size_type, size_type) |
| void | add (const unsigned int, const unsigned int, const value_type value) |
| void | set (const unsigned int, const unsigned int, const value_type value) |
| void | printMatlab (const std::string name="NULL") const |
| void | fill (pattern_type const &) |
|
void | resize (size_type, size_type, bool=false) |
| value_type | energy (ublas::vector< value_type > const &, ublas::vector< value_type > const &) const |
|
void | diagonalize (size_type) |
Typedefs |
|
typedef T | value_type |
|
typedef value_type | matrix_type |
typedef std::vector< std::set
< size_type > > | pattern_type |
|
static const bool | is_row_major = true |
Additional Inherited Members |
Detailed Description
template<typename T>
class Feel::MatrixValue< T >
interface to matrix
- Author:
- Christophe Prud'homme
- See also:
Member Function Documentation
template<typename T >
| void Feel::MatrixValue< T >::add |
( |
const unsigned |
int, |
|
|
const unsigned |
int, |
|
|
const value_type |
value |
|
) |
| |
|
inline |
Add value to the value already accumulated
Release all memory and return to a state just like after having called the default constructor.
close the gmm matrix, that will copy the content of write optimized matrix into a read optimized matrix
see if Gmm matrix has been closed and fully assembled yet
template<typename T >
| value_type Feel::MatrixValue< T >::energy |
( |
ublas::vector< value_type > const & |
, |
|
|
ublas::vector< value_type > const & |
|
|
) |
| const |
|
inline |
In this case the energy is the value that has been accumulated
fill sparse matrix with non zero entries
template<typename T >
| void Feel::MatrixValue< T >::init |
( |
const unsigned |
int, |
|
|
const unsigned |
int, |
|
|
const unsigned |
int, |
|
|
const unsigned |
int, |
|
|
const unsigned |
int = 30, |
|
|
const unsigned |
int = 10 |
|
) |
| |
|
inline |
Initialize a Value matrix that is of global dimension
with local dimensions
. nnz is the number of on-processor nonzeros per row (defaults to 30). noz is the number of on-processor nonzeros per row (defaults to 30).
References Feel::MatrixValue< T >::zero().
- Returns:
- true if matrix is initialized/usable, false otherwise
Returns the read optimized gmm matrix.
Returns the read optimized gmm matrix.
- Returns:
- the number of non-zeros entries in the matrix
Print the contents of the matrix in Matlab's sparse matrix format. Optionally prints the matrix to the file named name. If name is not specified it is dumped to the screen.
return row_start, the index of the first matrix row stored on this processor
return row_stop, the index of the last matrix row (+1) stored on this processor
template<typename T >
| void Feel::MatrixValue< T >::set |
( |
const unsigned |
int, |
|
|
const unsigned |
int, |
|
|
const value_type |
value |
|
) |
| |
|
inline |
- Returns:
m, the row-dimension of the matrix where the marix is
.
- Returns:
n, the column-dimension of the matrix where the marix is
.
Returns the write optimized gmm matrix.
Returns the write optimized gmm matrix.