class Tensor3: public MatrixStructure

Structure for a dense 3D Array

Inheritance:


Public

[more]Tensor3Iterator Explanation
[more] Constructor(s), Destructors(s)
[more] operations on profil
[more] Access to element

Private Fields

[more]size_t my_data_length
number of elements asked by user
[more]UInt my_offset
offset is
[more]Bool my_matrix_is_factored
is matrix factored ?

Private Methods

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


Documentation

Structure for a dense 3D Array
oTensor3Iterator Explanation
dense rowmajor 3D array

o Constructor(s), Destructors(s)

o Tensor3()
default constructor

oexplicit Tensor3( Index const& n )
build a matrix

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

o Tensor3( Index const& n, Index const& p, Index const& q )
build a matrix

o operations on profil

osize_t size() const
get size

ovoid resize( size_t const n )
resize

ovoid resize( size_t const n, size_t const p )
resize

ovoid resize( size_t const n, size_t const p, size_t const q )
resize

o Access to element

oIndex rows() const
get number of rows

oIndex cols() const
get number of cols

oIndex depth() const
get depth

oIndex n() const
get number of rows

oIndex p() const
get number of cols

oIndex q() 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 firstInDepth( Index const k ) const
get first element in the k-th depth

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 j-th column

oIndex lastInDepth( Index const k ) const
get last element in the k-th column

oBool isDepthMajor()
true if the storage is by depth first and then by rows and then by 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, Index const k )
set value

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

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

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

oBool isFactored() const
true if matrix is factored

ovoid setIsFactored()
set isFactored to true

ovoid setIsNotFactored()
set isFactored to false

oIndex offset() const
map(MinIndex,MinIndex,MinIndex)

ovoid computeOffset()
compute offset

osize_t my_data_length
number of elements asked by user

oUInt my_offset
offset is

oBool my_matrix_is_factored
is matrix factored ?

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

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


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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