|
numerics
|
Constexpr fixed-size dense vector (stack-allocated). More...
#include <small_matrix.hpp>
Public Member Functions | |
| constexpr real & | operator[] (idx i) noexcept |
| constexpr const real & | operator[] (idx i) const noexcept |
| constexpr SmallVec & | operator+= (const SmallVec &o) noexcept |
| constexpr SmallVec & | operator-= (const SmallVec &o) noexcept |
| constexpr SmallVec & | operator*= (real s) noexcept |
| constexpr real | dot (const SmallVec &o) const noexcept |
| constexpr real | norm_sq () const noexcept |
| Sum of squares (avoid sqrt to stay constexpr in C++17). | |
Static Public Member Functions | |
| static constexpr idx | size () noexcept |
Public Attributes | |
| std::array< real, N > | data {} |
Constexpr fixed-size dense vector (stack-allocated).
Definition at line 34 of file small_matrix.hpp.
|
inlineconstexprnoexcept |
Definition at line 54 of file small_matrix.hpp.
References num::SmallVec< N >::data, and num::ipow().
Referenced by num::SmallVec< N >::norm_sq().
|
inlineconstexprnoexcept |
Sum of squares (avoid sqrt to stay constexpr in C++17).
Definition at line 60 of file small_matrix.hpp.
References num::SmallVec< N >::dot().
|
inlineconstexprnoexcept |
Definition at line 49 of file small_matrix.hpp.
References num::SmallVec< N >::data, and num::ipow().
|
inlineconstexprnoexcept |
Definition at line 41 of file small_matrix.hpp.
References num::SmallVec< N >::data, and num::ipow().
|
inlineconstexprnoexcept |
Definition at line 45 of file small_matrix.hpp.
References num::SmallVec< N >::data, and num::ipow().
|
inlineconstexprnoexcept |
Definition at line 38 of file small_matrix.hpp.
References num::SmallVec< N >::data, and num::ipow().
|
inlineconstexprnoexcept |
Definition at line 37 of file small_matrix.hpp.
References num::SmallVec< N >::data, and num::ipow().
|
inlinestaticconstexprnoexcept |
Definition at line 39 of file small_matrix.hpp.
| std::array<real, N> num::SmallVec< N >::data {} |
Definition at line 35 of file small_matrix.hpp.
Referenced by num::SmallVec< N >::dot(), num::SmallVec< N >::operator*=(), num::SmallVec< N >::operator+=(), num::SmallVec< N >::operator-=(), num::SmallVec< N >::operator[](), and num::SmallVec< N >::operator[]().