Templated vector space. More...
Classes | |
class | ConstBlock |
Public Types | |
typedef VectorSpace< Form, Cmpt, Ncmpts > | vsType |
typedef Cmpt | cmptType |
typedef Cmpt | magType |
typedef Cmpt * | iterator |
Public Member Functions | |
VectorSpace ()=default | |
VectorSpace (const Foam::zero) | |
VectorSpace (const VectorSpace< Form, Cmpt, Ncmpts > &vs) | |
template<class Form2 , class Cmpt2 > | |
VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &) | |
VectorSpace (Istream &is) | |
const Cmpt & | component (const direction) const |
Cmpt & | component (const direction) |
void | component (Cmpt &, const direction) const |
void | replace (const direction, const Cmpt &) |
const Cmpt * | cdata () const noexcept |
Cmpt * | data () noexcept |
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 VectorSpace< Form, Cmpt, Ncmpts > &) |
void | operator= (const Foam::zero) |
void | operator*= (const scalar) |
void | operator/= (const scalar) |
iterator | begin () noexcept |
iterator | end () noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
const_iterator | begin () const noexcept |
const_iterator | end () const noexcept |
template<class SubVector , Foam::direction BStart> | |
const Foam::VectorSpace< Form, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > | block () const |
Static Public Member Functions | |
static constexpr direction | size () noexcept |
static Form | uniform (const Cmpt &s) |
Public Attributes | |
const typedef Cmpt * | const_iterator |
Cmpt | v_ [Ncmpts] |
Static Public Attributes | |
static constexpr direction | dim = 3 |
static constexpr direction | nComponents = Ncmpts |
static constexpr direction | mRows = Ncmpts |
static constexpr direction | nCols = 1 |
static const char *const | typeName |
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 52 of file VectorSpace.H.
typedef VectorSpace<Form, Cmpt, Ncmpts> vsType |
Definition at line 82 of file VectorSpace.H.
typedef Cmpt cmptType |
Definition at line 85 of file VectorSpace.H.
typedef Cmpt magType |
Definition at line 88 of file VectorSpace.H.
typedef Cmpt* iterator |
Definition at line 213 of file VectorSpace.H.
|
default |
|
inline |
Definition at line 31 of file VectorSpaceI.H.
|
inline |
Definition at line 39 of file VectorSpaceI.H.
|
inlineexplicit |
Definition at line 50 of file VectorSpaceI.H.
|
explicit |
Definition at line 30 of file VectorSpace.C.
|
inlinestaticconstexprnoexcept |
Definition at line 172 of file VectorSpace.H.
Referenced by cell::mag(), streamLineParticle::move(), and Foam::zip().
|
inline |
Referenced by Foam::component(), NURBS3DVolume::computeParametricCoordinates(), coordinateRotation::findOrthogonal(), NURBS3DVolume::JacobianUVW(), cellMDLimitedGrad< Type >::limitFace(), starcd::rotation(), euler::rotation(), Foam::setComponent(), and symmetryPlaneFvPatchField< Type >::snGradTransformDiag().
|
inline |
|
inline |
|
inline |
Definition at line 138 of file VectorSpaceI.H.
Referenced by particle< Type >::trackToMovingTri(), and particle< Type >::trackToStationaryTri().
|
inlinenoexcept |
Definition at line 185 of file VectorSpaceI.H.
|
inlinenoexcept |
Definition at line 178 of file VectorSpaceI.H.
|
inlinestatic |
Definition at line 157 of file VectorSpaceI.H.
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by MatrixSpace< BarycentricTensor< Cmpt >, Cmpt, 4, 3 >::operator=().
|
inline |
Definition at line 341 of file VectorSpaceI.H.
|
inline |
Definition at line 351 of file VectorSpaceI.H.
|
inline |
Definition at line 360 of file VectorSpaceI.H.
|
inline |
Definition at line 368 of file VectorSpaceI.H.
|
inline |
Definition at line 378 of file VectorSpaceI.H.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 206 of file VectorSpaceI.H.
|
inlinenoexcept |
Definition at line 214 of file VectorSpaceI.H.
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
Definition at line 169 of file VectorSpaceI.H.
|
friend |
|
friend |
const typedef Cmpt* const_iterator |
Definition at line 216 of file VectorSpace.H.
Cmpt v_[Ncmpts] |
Definition at line 79 of file VectorSpace.H.
Referenced by Foam::cmptMax(), Foam::cmptMin(), Foam::cmptProduct(), Foam::cmptSum(), Patch::faceCentres(), Foam::magSqr(), Foam::operator&&(), Foam::operator<(), Foam::operator==(), and Foam::operator>().
|
staticconstexpr |
Definition at line 94 of file VectorSpace.H.
|
staticconstexpr |
Definition at line 97 of file VectorSpace.H.
|
staticconstexpr |
Definition at line 103 of file VectorSpace.H.
|
staticconstexpr |
Definition at line 104 of file VectorSpace.H.
|
static |
Definition at line 109 of file VectorSpace.H.
|
static |
Definition at line 110 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.
Referenced by treeDataPoint::findNearestOp::operator()(), treeDataEdge::findNearestOp::operator()(), searchableDisk::searchableDisk(), and voxelMeshSearch::voxelMeshSearch().
|
static |
Definition at line 114 of file VectorSpace.H.
Referenced by treeDataPoint::findNearestOp::operator()(), treeDataEdge::findNearestOp::operator()(), searchableDisk::searchableDisk(), and searchableSurfaceCollection::searchableSurfaceCollection().
|
static |
Definition at line 115 of file VectorSpace.H.
|
static |
Definition at line 116 of file VectorSpace.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.