class TVector: public MatrixStructure

Structure TVector

Inheritance:


Public

[more]SymmetricSkylineIterator Explanation
[more] Constructor(s), Destructors(s)
[more] operations on profil
[more] Access to element
[more]TVectorIterator iterator_t
required typedef iterator_t
[more] public members

Protected

[more] protected constructors
[more] protected members

Private Fields

[more]size_t my_data_length
number of elements asked by user
[more]Bool my_profil_is_set
is profil set ?
[more]Bool my_matrix_is_factored
is matrix factored ?
[more]VectorUInt my_diag
diagonal index
[more]VectorUInt my_haut
haut index
[more]Index my_n
number of rows

Private Methods

[more]Index map( Index const& i, Index const& j ) const
map(i,j) find the position in the data array
[more]Index map_fast( Index const& i, Index const& j ) const
same as map(i,j) but without any control


Documentation

Structure TVector
oSymmetricSkylineIterator Explanation
This sparse storage is based on the following idea:

o Constructor(s), Destructors(s)

o SymmetricSkyline()
default constructor

oexplicit SymmetricSkyline( Index const& n )
build a matrix

o SymmetricSkyline( Index const& n, Index const& p )
build a matrix, with .

o SymmetricSkyline( Index const& n, Index const& p, UInt const& nb_store )
build a by matrix and store at least nb_store datas.

o ~SymmetricSkyline()
destructor

o operations on profil

osize_t size() const
get size

ovoid resize( Index const n )
resize: almost impossible

ovoid resize( Index const n, Index const p )
resize: almost impossible

ovoid compute_profil( VectorUInt const& haut )
if you already have computed the profil

ovoid compute_profil( MatrixUInt const& noda, MatrixUInt const& connex )
from finite element method

ostd::ostream& display( std::ostream& os, bool const verbose = false ) const
display informations on profil

o Access to element

oIndex rows() const
get number of rows

oIndex cols() const
get number of cols

oIndex n() const
get number of rows

oIndex p() const
get number of cols

oIndex firstInRow( Index const i ) const
get first element in the i-th row

oIndex firstInCol( Index const j ) const
get first element in the j-th column

oIndex lastInRow( Index const i ) const
get last element in the i-th row

oIndex lastInCol( Index const j ) const
get last element in the i-th column

oBool isRowMajor()
true if the storage is row major (C-like)

oBool isColumnMajor()
true if the storage is column major (fortran-like)

oT_value& get( T_value* const data, Index const i, Index const j )
get value

oT_value get( T_value const* const data, Index const i, Index const j ) const
get value

oT_value& get_fast( T_value* const data, Index const i, Index const j )
get value fast

oT_value get_fast( T_value const* const data, Index const i, Index const j ) const
get value fast

oUInt haut( Index const& i ) const
get value of haut (should not be public)

oUInt diag( Index const& i ) const
get value of diag (should not be public)

oconst& haut() const
get haut (should not be public)

oconst& diag() const
get diag (should not be public)

oBool isFactored() const
true if matrix is factored

ovoid setIsFactored()
set isFactored to true

ovoid setIsNotFactored()
set isFactored to false

obool isInProfile( Index i, Index j) const
true if (i,j) is in profile

osize_t my_data_length
number of elements asked by user

oBool my_profil_is_set
is profil set ?

oBool my_matrix_is_factored
is matrix factored ?

oIndex map( Index const& i, Index const& j ) const
map(i,j) find the position in the data array

oIndex map_fast( Index const& i, Index const& j ) const
same as map(i,j) but without any control

oVectorUInt my_diag
diagonal index

oVectorUInt my_haut
haut index

oTVectorIterator iterator_t
required typedef iterator_t

o public members

osize_t size() const
return size

oIndex rows() const
return number of rows

oIndex cols() const
return number of cols

oIndex firstInRow( Index const i ) const
return index of the first element in row

oIndex firstInCol( Index const j ) const
return index of the first element in col

oIndex lastInRow( Index const i ) const
return index of the last element in row

oIndex lastInCol( Index const j ) const
return index of the last element in row

oBool isRowMajor()
return true if structure is row major orientated

o protected constructors

oexplicit TVector()
default constructor

oexplicit TVector( Index const n )
constructor size equal

o TVector( Index const n, Index const p )
rectangular constructor (should raise an exception)

o protected members

optrdiff_t offset() const
map(MinIndex,MinIndex)

ovoid resize( Index const n, Index const p=MinIndex )
resize to size and (should raise an exception)

oT_value& get( T_value* const data, Index const i, Index const j=MinIndex )
set value at

oT_value& getI( T_value const* data )
set value at

oT_value get( T_value const* const data, Index const i, Index const j=MinIndex ) const
get value at

oT_value getI( T_value const* const data ) const
get value at

ovoid initialize( T_value* const data, LoopIndex const& l )
Loopindex initialization

ovoid initialize( T_value* const data, Range const& r )
Range initialization

ovoid initialize( T_value* const data, Range const& r1, Range const& r2 )
Ranged Range initialization

oIndex my_n
number of rows


Direct child classes:
Vector
TinyVector

Alphabetic index HTML hierarchy of classes or Java



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