Templated vector space. More...
Classes | |
class | ConstBlock |
Const sub-block type. More... | |
Public Types | |
typedef VectorSpace< Form, Cmpt, Ncmpts > | vsType |
VectorSpace type. More... | |
typedef Cmpt | cmptType |
Component type. More... | |
Public Member Functions | |
VectorSpace () | |
Construct null. More... | |
VectorSpace (const Foam::zero) | |
Construct initialized to zero. More... | |
VectorSpace (Istream &) | |
Construct from Istream. More... | |
template<class Form2 , class Cmpt2 > | |
VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &) | |
Construct as copy of a VectorSpace with the same size. More... | |
const Cmpt & | component (const direction) const |
Cmpt & | component (const direction) |
void | component (Cmpt &, const direction) const |
void | replace (const direction, const Cmpt &) |
template<class SubVector , direction BStart> | |
const ConstBlock< SubVector, BStart > | block () const |
const Cmpt & | operator[] (const direction) const |
Cmpt & | operator[] (const direction) |
void | operator+= (const VectorSpace< Form, Cmpt, Ncmpts > &) |
void | operator-= (const VectorSpace< Form, Cmpt, Ncmpts > &) |
void | operator= (const Foam::zero) |
void | operator*= (const scalar) |
void | operator/= (const scalar) |
template<class SubVector , direction BStart> | |
const VectorSpace< Form, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > | block () const |
Static Public Member Functions | |
static direction | size () |
Return the number of elements in the VectorSpace = Ncmpts. More... | |
static Form | uniform (const Cmpt &s) |
Return a VectorSpace with all elements = s. More... | |
Public Attributes | |
Cmpt | v_ [Ncmpts] |
The components of this vector space. More... | |
Static Public Attributes | |
static const direction | dim = 3 |
Dimensionality of space. More... | |
static const direction | nComponents = Ncmpts |
Number of components in this vector space. More... | |
static const direction | mRows = Ncmpts |
static const direction | nCols = 1 |
static const char *const | typeName = "diagTensor" |
static const char *const | componentNames [] |
static const Form | zero |
static const Form | one |
static const Form | max |
static const Form | min |
static const Form | rootMax |
static const Form | rootMin |
Friends | |
Istream & | operator>> (Istream &, VectorSpace< Form, Cmpt, Ncmpts > &) |
Ostream & | operator (Ostream &, const VectorSpace< Form, Cmpt, Ncmpts > &) |
Templated vector space.
Template arguments are the Form the vector space will be used to create, the type of the elements and the number of elements.
Definition at line 53 of file VectorSpace.H.
typedef VectorSpace<Form, Cmpt, Ncmpts> vsType |
VectorSpace type.
Definition at line 87 of file VectorSpace.H.
typedef Cmpt cmptType |
Component type.
Definition at line 90 of file VectorSpace.H.
|
inline |
Construct null.
Definition at line 40 of file VectorSpaceI.H.
Referenced by VectorSpace< Vector< vector >, vector, 3 >::VectorSpace().
|
inline |
Construct initialized to zero.
Definition at line 45 of file VectorSpaceI.H.
VectorSpace | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 35 of file VectorSpace.C.
|
inlineexplicit |
Construct as copy of a VectorSpace with the same size.
Definition at line 54 of file VectorSpaceI.H.
|
inlinestatic |
Return the number of elements in the VectorSpace = Ncmpts.
Definition at line 83 of file VectorSpaceI.H.
Referenced by edgeCollapser::checkMeshQuality(), FaceCellWave< Type, TrackingData >::handleAMICyclicPatches(), FaceCellWave< Type, TrackingData >::handleProcPatches(), and createShellMesh::setRefinement().
|
inline |
Definition at line 91 of file VectorSpaceI.H.
Referenced by VectorSpace< Vector< vector >, vector, 3 >::component(), Foam::component(), EulerCoordinateRotation::EulerCoordinateRotation(), cellMDLimitedGrad< Type >::limitFace(), Foam::setComponent(), VectorSpace< Vector< vector >, vector, 3 >::size(), and STARCDCoordinateRotation::STARCDCoordinateRotation().
|
inline |
Definition at line 110 of file VectorSpaceI.H.
|
inline |
Definition at line 129 of file VectorSpaceI.H.
|
inline |
Definition at line 149 of file VectorSpaceI.H.
Referenced by VectorSpace< Vector< vector >, vector, 3 >::component(), particle< Type >::trackToMovingTri(), and particle< Type >::trackToStationaryTri().
|
inlinestatic |
Return a VectorSpace with all elements = s.
Definition at line 168 of file VectorSpaceI.H.
|
inline |
Definition at line 190 of file VectorSpaceI.H.
Definition at line 209 of file VectorSpaceI.H.
|
inline |
Definition at line 280 of file VectorSpaceI.H.
|
inline |
Definition at line 290 of file VectorSpaceI.H.
|
inline |
Definition at line 299 of file VectorSpaceI.H.
Referenced by MatrixSpace< Tensor< scalar >, scalar, 3, 3 >::operator=().
|
inline |
Definition at line 307 of file VectorSpaceI.H.
|
inline |
Definition at line 317 of file VectorSpaceI.H.
|
inline |
Definition at line 180 of file VectorSpaceI.H.
|
friend |
|
friend |
Cmpt v_[Ncmpts] |
The components of this vector space.
Definition at line 84 of file VectorSpace.H.
Referenced by Foam::cmptMax(), Foam::cmptMin(), Foam::cmptProduct(), Foam::cmptSum(), Foam::magSqr(), Foam::operator &&(), Foam::operator<(), Foam::operator==(), Foam::operator>(), VectorSpace< Vector< vector >, vector, 3 >::VectorSpace(), and Foam::writeEntry().
|
static |
Dimensionality of space.
Definition at line 96 of file VectorSpace.H.
Referenced by Foam::cof(), and Foam::det().
|
static |
Number of components in this vector space.
Definition at line 99 of file VectorSpace.H.
Referenced by anisotropicFilter::operator()().
|
static |
Definition at line 105 of file VectorSpace.H.
|
static |
Definition at line 106 of file VectorSpace.H.
|
static |
Definition at line 111 of file VectorSpace.H.
|
static |
Definition at line 112 of file VectorSpace.H.
|
static |
Definition at line 113 of file VectorSpace.H.
|
static |
Definition at line 114 of file VectorSpace.H.
|
static |
Definition at line 115 of file VectorSpace.H.
Referenced by NamedEnum< compressibleField, 8 >::names(), treeDataPoint::findNearestOp::operator()(), treeDataEdge::findNearestOp::operator()(), orientedSurface::orientedSurface(), distributedTriSurfaceMesh::overlappingSurface(), primitiveMesh::pointInCellBB(), and searchableDisk::searchableDisk().
|
static |
Definition at line 116 of file VectorSpace.H.
Referenced by NamedEnum< compressibleField, 8 >::names(), treeDataPoint::findNearestOp::operator()(), treeDataEdge::findNearestOp::operator()(), distributedTriSurfaceMesh::overlappingSurface(), searchableDisk::searchableDisk(), and searchableSurfaceCollection::searchableSurfaceCollection().
|
static |
Definition at line 117 of file VectorSpace.H.
|
static |
Definition at line 118 of file VectorSpace.H.