#include <gromacs/math/include/gromacs/math/matrix.h>
Inherits gmx::MultiDimArray< TContainer, Extents, LayoutPolicy >.
template<class ElementType>
class gmx::BasicMatrix3x3< ElementType >
Three-by-three matrix of ElementType.
- Template Parameters
-
| ElementType | type of element to be stored in matrix |
|
|
using | value_type = typename TContainer::value_type |
| | the type of values that are stored
|
| |
|
using | reference = typename TContainer::reference |
| | reference type to the stored values
|
| |
|
using | const_reference = typename TContainer::const_reference |
| | const reference type to the stored values
|
| |
|
using | view_type = basic_mdspan< value_type, Extents, LayoutPolicy > |
| | the view used to access the data
|
| |
|
using | const_view_type = basic_mdspan< const value_type, Extents, LayoutPolicy > |
| | const view on the data
|
| |
|
using | iterator = typename ArrayRef< value_type >::iterator |
| | Iterator type for contiguous iteration over the stored data. Used, e.g., in free begin and end functions.
|
| |
|
using | const_iterator = const typename ArrayRef< const value_type >::const_iterator |
| | Const iterator type for contiguous iteration over the stored data. used, e.g., in free begin and end functions.
|
| |
|
|
| BasicMatrix3x3 () |
| | Default constructor.
|
| |
|
void | swap (MultiDimArray &o) noexcept |
| | Swaps content with other.
|
| |
| template<class... IndexType> |
| void | resize (IndexType...dynamicExtent) |
| | Resize the dynamic extents of the array if any and set container size accordingly. More...
|
| |
| template<class... IndexType> |
| reference | operator() (IndexType...index) noexcept |
| | Data access via multidimensional indices. This allows referencing rank R array elements as array(x_0,x_1,x_2, .., x_R) More...
|
| |
| template<class... IndexType> |
| constexpr const_reference | operator() (IndexType...index) const noexcept |
| | Const data access via multidimensional indices. This allows referencing rank R array elements as array(x_0,x_1,x_2, .., x_R) More...
|
| |
| ArrayRef< value_type > | toArrayRef () |
| | Contiguous access to the data. More...
|
| |
constexpr ArrayRef< const
value_type > | toArrayRef () const |
| | Contiguous const access to the data. More...
|
| |
| constexpr view_type::index_type | extent (int k) const noexcept |
| | Return the extent. More...
|
| |
|
constexpr view_type | asView () noexcept |
| | Conversion to multidimensional view on the data.
|
| |
|
constexpr const_view_type | asConstView () const noexcept |
| | Conversion to const multidimensional view on the data.
|
| |
template<class TContainer, class Extents, class LayoutPolicy = layout_right>
| constexpr view_type::index_type gmx::MultiDimArray< TContainer, Extents, LayoutPolicy >::extent |
( |
int |
k | ) |
const |
|
inlinenoexceptinherited |
Return the extent.
- Parameters
-
| [in] | k | dimension to query for extent |
- Returns
- extent along specified dimension
template<class TContainer, class Extents, class LayoutPolicy = layout_right>
template<class... IndexType>
| reference gmx::MultiDimArray< TContainer, Extents, LayoutPolicy >::operator() |
( |
IndexType... |
index | ) |
|
|
inlinenoexceptinherited |
Data access via multidimensional indices. This allows referencing rank R array elements as array(x_0,x_1,x_2, .., x_R)
- Parameters
-
| [in] | index | multidimensional indices as parameter pack the number of parameters must match the rank of the array. |
- Returns
- reference to array element
template<class TContainer, class Extents, class LayoutPolicy = layout_right>
template<class... IndexType>
| constexpr const_reference gmx::MultiDimArray< TContainer, Extents, LayoutPolicy >::operator() |
( |
IndexType... |
index | ) |
const |
|
inlinenoexceptinherited |
Const data access via multidimensional indices. This allows referencing rank R array elements as array(x_0,x_1,x_2, .., x_R)
- Parameters
-
| [in] | index | multidimensional indices as parameter pack the number of parameters must match the rank of the array. |
- Returns
- const reference to array element
template<class TContainer, class Extents, class LayoutPolicy = layout_right>
template<class... IndexType>
| void gmx::MultiDimArray< TContainer, Extents, LayoutPolicy >::resize |
( |
IndexType... |
dynamicExtent | ) |
|
|
inlineinherited |
Resize the dynamic extents of the array if any and set container size accordingly.
Invalidates data and views of this array.
- Parameters
-
| [in] | dynamicExtent | A parameter pack that describes the dynamic size of the array. Empty if purely static. |
- Template Parameters
-
| IndexType | Parameter pack type holding the dynamic extents of the multidimensional array |
template<class TContainer, class Extents, class LayoutPolicy = layout_right>
| ArrayRef<value_type> gmx::MultiDimArray< TContainer, Extents, LayoutPolicy >::toArrayRef |
( |
| ) |
|
|
inlineinherited |
Contiguous access to the data.
- Returns
- ArrayRef to stored data.
template<class TContainer, class Extents, class LayoutPolicy = layout_right>
| constexpr ArrayRef<const value_type> gmx::MultiDimArray< TContainer, Extents, LayoutPolicy >::toArrayRef |
( |
| ) |
const |
|
inlineinherited |
Contiguous const access to the data.
- Returns
- ArrayRef to stored data.
The documentation for this class was generated from the following file:
- src/gromacs/math/include/gromacs/math/matrix.h