21 #ifndef fiber_basis_data_hpp
22 #define fiber_basis_data_hpp
24 #include "../common/common.hpp"
26 #include "../common/armadillo_fwd.hpp"
27 #include "../common/multidimensional_arrays.hpp"
39 template <
typename ValueType>
class ConstBasisDataSlice;
43 template <
typename ValueType>
90 template <
typename ValueType>
96 int function,
int point) :
97 m_basisData(basisData), m_function(function), m_point(point) {}
101 return m_basisData.values(dim, m_function, m_point);
107 return m_basisData.derivatives(dim, direction, m_function, m_point);
112 return m_basisData.componentCount();
117 int m_function, m_point;
122 #endif // BASIS_DATA_TYPES_HPP
int functionCount() const
Return number of shape functions.
Definition: basis_data.hpp:67
_4dArray< ValueType > derivatives
Derivatives of shape functions.
Definition: basis_data.hpp:59
int componentCount() const
Return the number of components of the function.
Definition: basis_data.hpp:111
ConstBasisDataSlice< ValueType > const_slice(int function, int point) const
Return a constant slice of the data, corresponding to a given shape function and point.
Definition: basis_data.hpp:79
int pointCount() const
Return number of points at which the shape functions have been calculated.
Definition: basis_data.hpp:73
int componentCount() const
Return number of components of shape functions.
Definition: basis_data.hpp:62
_3dArray< ValueType > values
Values of shape functions.
Definition: basis_data.hpp:51
ValueType derivatives(int dim, int direction) const
Return the value of the dim'th component of the derivative of the function in a given direction...
Definition: basis_data.hpp:106
ValueType values(int dim) const
Return the value of the dim'th component of the function.
Definition: basis_data.hpp:100
ConstBasisDataSlice(const BasisData< ValueType > &basisData, int function, int point)
Constructor.
Definition: basis_data.hpp:95
Storage of values and/or derivatives of shape functions.
Definition: basis_data.hpp:44
Access to values and/or derivatives of shape functions.
Definition: basis_data.hpp:91