class Matrix: public T_structure, protected T_storage

Matrix is the main matrix class

Inheritance:


Public

[more] Explanation
[more]T_value value_t
matrix of value_t elements (Real,Float,\dots)
[more]T_structure structure_t
alias for structure
[more]T_storage storage_t
alias for storage
[more]T_structure::iterator_t iterator_t
alias for iterator
[more] this_t
type of this matrix
[more] constructors
[more] get/set member
[more] alias operators needed for compatibility with matlab
[more] alias operators needed for compatibility with matlab
[more] contractions operators: sum, min, max
[more] mathematical operators returning a scalar

Protected Fields

[more]slrestrict my_d
a pointer to the start of physical data


Documentation

Matrix is the main matrix class
o Explanation
Main matrix class.

Default is a dense matrix with default allocation. Default value is Real.

oT_value value_t
matrix of value_t elements (Real,Float,\dots)

oT_structure structure_t
alias for structure

oT_storage storage_t
alias for storage

oT_structure::iterator_t iterator_t
alias for iterator

o this_t
type of this matrix

o constructors

o Matrix()
default constructor

o Matrix( Index const n )
allocate a or by depending on storage

o Matrix( Index const n, Index const p )
allocate a by matrix

o Matrix( Index const n, Index const p, Index const q )
allocate a by by matrix

o Matrix( Index const n, value_t * init )
allocate a or by depending on storage matrix, allocation done by user

o Matrix( Index const n, Index const p, value_t * init )
allocate a by matrix, allocation done by user

o Matrix( Index const n, Index const p, Index const q, value_t * init )
allocate a by by matrix, allocation done by user

o Matrix( Index const n, Index const p, Matrix <value_t, T2_structure> const& m )
construct a matrix by reference

o Matrix( Index const n, Index const p, Index const q, Matrix <value_t, T2_structure> const& m )
construct a matrix by reference

o get/set member

othis_t& resize( Index const n, Index const p = MinIndex )
resize a matrix to rows by cols

othis_t& reshape( Index const n, Index const p = MinIndex )
reshape resize your matrix and copy the previous data in it

PA: I thinks it is buggy

ovalue_t& get( Index const i, Index const j )
set a reference at ,

ovalue_t get( Index const i, Index const j ) const
get value at ,

ovalue_t& get( Index const i, Index const j, Index const k )
set a reference at , ,

ovalue_t get( Index const i, Index const j, Index const k ) const
get value at , ,

ovalue_t& operator() ( Index const i, Index const j = MinIndex )
get/set a reference at , , index control enable

ovalue_t operator() ( Index const i, Index const j = MinIndex ) const
get value at , , index control enable

ovalue_t& operator() ( Index const i, Index const j, Index const k )
get/set a reference at , , index control enable

ovalue_t operator() ( Index const i, Index const j, Index const k ) const
get value at , , index control enable

o alias operators needed for compatibility with matlab

othis_t& operator= ( meta::Expr<T_expr> const& rhs)
operator= meta::Expr<>

othis_t& operator+= ( meta::Expr<T_expr> const& rhs)
operator+= meta::Expr<>

othis_t& operator-= ( meta::Expr<T_expr> const& rhs)
operator-= meta::Expr<>

o alias operators needed for compatibility with matlab

oIndex n() const
alias for rows()

oIndex p() const
alias for cols()

o contractions operators: sum, min, max

ovalue_t sum()
compute the sum of all elements

o mathematical operators returning a scalar

ovalue_t min()
find the minimum

ovalue_t max()
find the maximum

ovalue_t norm2()
compute norm

ovalue_t norm1()
compute norm

oslrestrict my_d
a pointer to the start of physical data. it is a trick to have access to fortran/C index storage.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.