#include <VectorField_fwd.hpp>
Represents a discretization of a vector field, a finite collection of vectors.
The vector field is stored in a ColMajor fashion. This type is fully compatible with Eigen types and can use the same API. It also supports iteration over columns.
Scalar | |
dimension | Dimensionality of the vector field. |
Usage example:
.size()
method inherited from Eigen returns the number of all elements, e. g. number of vectors multiplied by the dimension. Use .rows()
method to get only the number of vectors in the vector field. Definition at line 38 of file VectorField_fwd.hpp.
Public Member Functions | |
VectorField (void) | |
Construct a vector field of size 0. More... | |
VectorField (const VectorField &)=default | |
Default copy constructor. More... | |
VectorField & | operator= (const VectorField &)=default |
Default copy assignment. More... | |
VectorField (VectorField &&) noexcept=default | |
Default move constructor. More... | |
VectorField & | operator= (VectorField &&) noexcept=default |
Default move assignment. More... | |
template<typename OtherDerived > | |
VectorField (const Eigen::MatrixBase< OtherDerived > &other) | |
Allows construction of VectorField from Eigen expressions. More... | |
template<typename OtherDerived > | |
VectorField & | operator= (const Eigen::MatrixBase< OtherDerived > &other) |
Assignments of Eigen expressions to VectorField. More... | |
template<typename SizeType > | |
VectorField (SizeType N) | |
Construct a vector field on N points. More... | |
VectorField & | operator= (const Vec< Scalar, dimension > &v) |
Assigns vector field to be a constant vector v . More... | |
Eigen::Transpose< typename Base::RowXpr > | operator[] (typename Eigen::Index i) |
Return a single row as a vector, non-const version. More... | |
SINL Eigen::Transpose< typename Base::ConstRowXpr > | operator[] (typename Eigen::Index i) const |
Return a single row as a vector, const version. More... | |
SINL Eigen::Transpose< typename Base::RowXpr > | operator() (typename Eigen::Index i) |
Return a single row as a vector, non-const version. More... | |
SINL Eigen::Transpose< typename Base::ConstRowXpr > | operator() (typename Eigen::Index i) const |
Return a single row as a vector, const version. More... | |
SINL Base::ColXpr | c (typename Eigen::Index i) |
Return the i -th component of this vector field. More... | |
SINL Base::ConstColXpr | c (typename Eigen::Index i) const |
Const version of VectorField::c(). More... | |
Eigen::IndexedView< Base, indexes_t, Eigen::internal::AllRange< dimension > > SINL | operator() (const indexes_t &rowIndices) |
Return an indexed view to a subset of vectors. More... | |
SINL VectorFieldView | operator[] (const indexes_t &indexes) |
Returns an indexed view to a subset of vectors, that can be assigned. More... | |
Scalar * | begin () |
Pointer to the first coefficient. More... | |
const Scalar * | begin () const |
Pointer to the first coefficient. More... | |
Scalar * | end () |
Pointer to the last coefficient. More... | |
const Scalar * | end () const |
Const pointer to the last coefficient. More... | |
const Scalar * | cbegin () const |
Const version of begin. More... | |
const Scalar * | cend () const |
Const version of end. More... | |
Static Public Member Functions | |
template<typename OtherDerived > | |
static VectorField | fromLinear (const Eigen::PlainObjectBase< OtherDerived > &other) |
Construct VectorField from its linear representation, obtained from asLinear(). More... | |
Public Types | |
typedef Scalar | scalar_t |
Scalar data type. More... | |
typedef Eigen::Matrix< Scalar, Eigen::Dynamic, dimension > | Base |
Base class. More... | |
Classes | |
class | VectorFieldView |
Represents a non contiguous view to a vector field. More... | |
|
inline |
Construct a vector field of size 0.
Definition at line 45 of file VectorField_fwd.hpp.
|
default |
Default copy constructor.
|
defaultnoexcept |
Default move constructor.
mm::VectorField< Scalar, dimension >::VectorField | ( | const Eigen::MatrixBase< OtherDerived > & | other | ) |
Allows construction of VectorField from Eigen expressions.
Definition at line 15 of file VectorField.hpp.
|
inlineexplicit |
Construct a vector field on N
points.
Allocates the appropriate space, the values are initialized as specified by Eigen's default initialization.
Definition at line 68 of file VectorField_fwd.hpp.
|
inline |
Pointer to the first coefficient.
Definition at line 132 of file VectorField_fwd.hpp.
|
inline |
Pointer to the first coefficient.
Definition at line 134 of file VectorField_fwd.hpp.
|
inline |
Return the i
-th component of this vector field.
The result of this function can be treated as a scalar field.
Definition at line 116 of file VectorField_fwd.hpp.
|
inline |
|
inline |
Const version of begin.
Definition at line 142 of file VectorField_fwd.hpp.
|
inline |
Const version of end.
Definition at line 144 of file VectorField_fwd.hpp.
|
inline |
Pointer to the last coefficient.
Definition at line 137 of file VectorField_fwd.hpp.
|
inline |
Const pointer to the last coefficient.
Definition at line 139 of file VectorField_fwd.hpp.
|
static |
Construct VectorField from its linear representation, obtained from asLinear().
|
inline |
Return an indexed view to a subset of vectors.
Definition at line 122 of file VectorField_fwd.hpp.
|
inline |
Return a single row as a vector, non-const version.
Definition at line 104 of file VectorField_fwd.hpp.
|
inline |
Return a single row as a vector, const version.
Definition at line 108 of file VectorField_fwd.hpp.
VectorField& mm::VectorField< Scalar, dimension >::operator= | ( | const Eigen::MatrixBase< OtherDerived > & | other | ) |
Assignments of Eigen expressions to VectorField.
VectorField< Scalar, dimension > & mm::VectorField< Scalar, dimension >::operator= | ( | const Vec< Scalar, dimension > & | v | ) |
Assigns vector field to be a constant vector v
.
Definition at line 29 of file VectorField.hpp.
|
default |
Default copy assignment.
|
defaultnoexcept |
Default move assignment.
|
inline |
Returns an indexed view to a subset of vectors, that can be assigned.
Definition at line 127 of file VectorField_fwd.hpp.
|
inline |
Return a single row as a vector, non-const version.
Definition at line 94 of file VectorField_fwd.hpp.
|
inline |
Return a single row as a vector, const version.
Definition at line 98 of file VectorField_fwd.hpp.