![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Vector class based on std::array storage and mdspan. More...
#include <shammath/include/shammath/matrix.hpp>
Collaboration diagram for shammath::vec< T, n >:Public Member Functions | |
| constexpr auto | get_mdspan () |
| Get the vector data as a mdspan. | |
| constexpr auto | get_mdspan_mat_col () |
| Get the vector data as a mdspan of a matrix with one column. | |
| constexpr auto | get_mdspan_mat_row () |
| Get the vector data as a mdspan of a matrix with one row. | |
| constexpr T & | operator[] (int i) |
| Access the vector entry at position i. | |
| bool | operator== (const vec< T, n > &other) |
| Check if this vector is equal to another one. | |
Public Attributes | |
| std::array< T, n > | data |
| The vector data. | |
Vector class based on std::array storage and mdspan.
| T | the type of the vector entries |
| n | the number of entries |
Definition at line 96 of file matrix.hpp.
|
inlineconstexpr |
Get the vector data as a mdspan.
Definition at line 102 of file matrix.hpp.
|
inlineconstexpr |
Get the vector data as a mdspan of a matrix with one column.
Definition at line 107 of file matrix.hpp.
|
inlineconstexpr |
Get the vector data as a mdspan of a matrix with one row.
Definition at line 112 of file matrix.hpp.
|
inline |
Check if this vector is equal to another one.
Definition at line 120 of file matrix.hpp.
|
inlineconstexpr |
Access the vector entry at position i.
Definition at line 117 of file matrix.hpp.
Here is the call graph for this function:| std::array<T, n> shammath::vec< T, n >::data |
The vector data.
Definition at line 99 of file matrix.hpp.