40#ifndef Foam_BarycentricTensor_H
41#define Foam_BarycentricTensor_H
59 public MatrixSpace<BarycentricTensor<Cmpt>, Cmpt, 4, 3>
77 enum components {
XA,
XB,
XC,
XD,
YA,
YB,
YC,
YD,
ZA,
ZB,
ZC,
ZD };
Templated 4x3 tensor derived from VectorSpace. Has 12 components. Can represent a barycentric transfo...
const Cmpt & ya() const noexcept
const Cmpt & xc() const noexcept
const Cmpt & zd() const noexcept
BarycentricTensor(const Barycentric< Cmpt > &x, const Barycentric< Cmpt > &y, const Barycentric< Cmpt > &z)
Construct given three barycentric components (rows).
Barycentric< label > y() const
BarycentricTensor(const Vector< Cmpt > &a, const Vector< Cmpt > &b, const Vector< Cmpt > &c, const Vector< Cmpt > &d)
Construct given four vector components (columns).
BarycentricTensor< label > labelType
Equivalent type of labels used for valid component indexing (unused).
components
Component labeling enumeration.
Vector< label > d() const
const Cmpt & xb() const noexcept
Vector< label > b() const
Vector< label > c() const
static constexpr direction rank
BarycentricTensor(const Foam::zero)
Construct initialised to zero.
const Cmpt & xa() const noexcept
Barycentric< label > z() const
BarycentricTensor()=default
Default construct.
const Cmpt & yc() const noexcept
Vector< Cmpt > inner(const Barycentric< Cmpt > &bry) const
Tensor/barycentric inner product.
const Cmpt & zc() const noexcept
const Cmpt & zb() const noexcept
const Cmpt & yd() const noexcept
const Cmpt & za() const noexcept
const Cmpt & xd() const noexcept
const Cmpt & yb() const noexcept
Barycentric< label > x() const
Vector< label > a() const
Templated 3D Barycentric derived from VectorSpace. Has 4 components, one of which is redundant.
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
Abstract template class to provide the transpose form of a form.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
A template class to specify if a data type is composed solely of Foam::label elements.
A template class to specify if a data type is composed solely of Foam::scalar elements.
A template class to specify that a data type can be considered as being contiguous in memory.