concepts::TColumnTensor< F, dim > Class Template Reference
A column of a T matrix. More...
#include <tmatrix.hh>
Public Member Functions | |
void | append (TColumn< F > *T) |
Appends a linked list of TColumns at the end. More... | |
void | clear () |
Deletes all member of the linked list. More... | |
virtual TColumnTensor< F, dim > * | clone () const |
Returns a copy of itself. More... | |
uint | index () const |
Returns the index of the column in a matrix. More... | |
TColumn< F > * | link () const |
Returns the pointer to the next column of the linked list. More... | |
const uint * | n () const |
Returns the number of rows as an array. More... | |
F & | operator[] (uint *i) |
Returns the ith entry in the column. i an array of size dim. More... | |
F | operator[] (uint *i) const |
Returns the ith entry in the column. i an array of size dim. More... | |
F & | operator[] (uint i) |
Returns the ith entry in the column. More... | |
F | operator[] (uint i) const |
Returns the ith entry in the column. More... | |
TColumnTensor (const TColumnBlock< F, dim > &t, uint k) | |
Copy constructor, takes /c k .th block in /c t. More... | |
TColumnTensor (const TColumnTensor< F, dim > &t) | |
Copy constructor The link to the next element in the linear list (lnk_) is not copied! More... | |
TColumnTensor (const TColumnTensor< F, dim > &t, const uint *n) | |
Transformation constructor to higher number of rows. More... | |
TColumnTensor (const uint *n, const uint idx, TColumn< F > *lnk=0) | |
Constructor. More... | |
F * | values () |
Returns the array of entries. More... | |
const F * | values () const |
Returns the array of entries. More... | |
Protected Member Functions | |
virtual ::std::ostream & | info (::std::ostream &os) const |
uint | successors_ () const |
number of successors More... | |
Protected Attributes | |
Array< F > | val_ |
The data of the column itself. More... | |
Private Member Functions | |
void | recursiveOut_ (const int d, uint *n, ::std::ostream &os) const |
Private Attributes | |
uint | idx_ |
Index of the column in a matrix. More... | |
TColumn< F > * | lnk_ |
Pointer to the next column in a linked list. More... | |
uint | n_ [dim] |
Number of rows. More... | |
Detailed Description
template<class F, int dim>
class concepts::TColumnTensor< F, dim >
A column of a T matrix.
More than one T column are arranged in a linked list. These columns are inserted into the T matrix.
This T column can be used for 2 and 3 dimensional problems where the T column needs to have a tensorized form (ie. for the application of an S matrix).
- See also
- TMatrixBase
- SMatrixBase
Definition at line 134 of file tmatrix.hh.
Constructor & Destructor Documentation
◆ TColumnTensor() [1/4]
concepts::TColumnTensor< F, dim >::TColumnTensor | ( | const uint * | n, |
const uint | idx, | ||
TColumn< F > * | lnk = 0 |
||
) |
Constructor.
- Parameters
-
n An array of size dim with the lengths of the relevant parts idx Index of the column in a T matrix lnk Pointer to the next column (linked list)
◆ TColumnTensor() [2/4]
concepts::TColumnTensor< F, dim >::TColumnTensor | ( | const TColumnTensor< F, dim > & | t | ) |
Copy constructor The link to the next element in the linear list (lnk_) is not copied!
◆ TColumnTensor() [3/4]
concepts::TColumnTensor< F, dim >::TColumnTensor | ( | const TColumnBlock< F, dim > & | t, |
uint | k | ||
) |
Copy constructor, takes /c k .th block in /c t.
◆ TColumnTensor() [4/4]
concepts::TColumnTensor< F, dim >::TColumnTensor | ( | const TColumnTensor< F, dim > & | t, |
const uint * | n | ||
) |
Transformation constructor to higher number of rows.
Member Function Documentation
◆ append()
|
inherited |
Appends a linked list of TColumns at the end.
◆ clear()
|
inherited |
Deletes all member of the linked list.
◆ clone()
|
virtual |
Returns a copy of itself.
Reimplemented from concepts::TColumn< F >.
◆ index()
|
inlineinherited |
Returns the index of the column in a matrix.
Definition at line 76 of file tmatrix.hh.
◆ info()
|
protected |
◆ link()
|
inlineinherited |
Returns the pointer to the next column of the linked list.
Definition at line 79 of file tmatrix.hh.
◆ n()
|
inline |
Returns the number of rows as an array.
Definition at line 175 of file tmatrix.hh.
◆ operator[]() [1/4]
|
inline |
Returns the ith entry in the column. i an array of size dim.
Definition at line 165 of file tmatrix.hh.
◆ operator[]() [2/4]
|
inline |
Returns the ith entry in the column. i an array of size dim.
Definition at line 154 of file tmatrix.hh.
◆ operator[]() [3/4]
|
inlineinherited |
Returns the ith entry in the column.
Definition at line 68 of file tmatrix.hh.
◆ operator[]() [4/4]
|
inlineinherited |
Returns the ith entry in the column.
Definition at line 66 of file tmatrix.hh.
◆ recursiveOut_()
|
private |
◆ successors_()
|
protectedinherited |
number of successors
◆ values() [1/2]
|
inlineinherited |
Returns the array of entries.
Definition at line 73 of file tmatrix.hh.
◆ values() [2/2]
|
inlineinherited |
Returns the array of entries.
Definition at line 71 of file tmatrix.hh.
Member Data Documentation
◆ idx_
|
privateinherited |
Index of the column in a matrix.
Definition at line 106 of file tmatrix.hh.
◆ lnk_
|
privateinherited |
Pointer to the next column in a linked list.
Definition at line 100 of file tmatrix.hh.
◆ n_
|
private |
Number of rows.
Definition at line 182 of file tmatrix.hh.
◆ val_
|
protectedinherited |
The data of the column itself.
Definition at line 97 of file tmatrix.hh.
The documentation for this class was generated from the following file:
- space/tmatrix.hh