numerics 0.1.0
Loading...
Searching...
No Matches
num::SmallVec< N > Struct Template Reference

#include <small_matrix.hpp>

Public Member Functions

constexpr realoperator[] (idx i) noexcept
 
constexpr const realoperator[] (idx i) const noexcept
 
constexpr SmallVecoperator+= (const SmallVec &o) noexcept
 
constexpr SmallVecoperator-= (const SmallVec &o) noexcept
 
constexpr SmallVecoperator*= (real s) noexcept
 
constexpr real dot (const SmallVec &o) const noexcept
 
constexpr real norm_sq () const noexcept
 

Static Public Member Functions

static constexpr idx size () noexcept
 

Public Attributes

std::array< real, N > data {}
 

Detailed Description

template<idx N>
struct num::SmallVec< N >

Definition at line 12 of file small_matrix.hpp.

Member Function Documentation

◆ dot()

template<idx N>
constexpr real num::SmallVec< N >::dot ( const SmallVec< N > &  o) const
inlineconstexprnoexcept

Definition at line 40 of file small_matrix.hpp.

References num::SmallVec< N >::data.

Referenced by num::SmallVec< N >::norm_sq().

◆ norm_sq()

template<idx N>
constexpr real num::SmallVec< N >::norm_sq ( ) const
inlineconstexprnoexcept

Definition at line 48 of file small_matrix.hpp.

References num::SmallVec< N >::dot().

◆ operator*=()

template<idx N>
constexpr SmallVec & num::SmallVec< N >::operator*= ( real  s)
inlineconstexprnoexcept

Definition at line 33 of file small_matrix.hpp.

References num::SmallVec< N >::data.

◆ operator+=()

template<idx N>
constexpr SmallVec & num::SmallVec< N >::operator+= ( const SmallVec< N > &  o)
inlineconstexprnoexcept

Definition at line 19 of file small_matrix.hpp.

References num::SmallVec< N >::data.

◆ operator-=()

template<idx N>
constexpr SmallVec & num::SmallVec< N >::operator-= ( const SmallVec< N > &  o)
inlineconstexprnoexcept

Definition at line 26 of file small_matrix.hpp.

References num::SmallVec< N >::data.

◆ operator[]() [1/2]

template<idx N>
constexpr const real & num::SmallVec< N >::operator[] ( idx  i) const
inlineconstexprnoexcept

Definition at line 16 of file small_matrix.hpp.

References num::SmallVec< N >::data.

◆ operator[]() [2/2]

template<idx N>
constexpr real & num::SmallVec< N >::operator[] ( idx  i)
inlineconstexprnoexcept

Definition at line 15 of file small_matrix.hpp.

References num::SmallVec< N >::data.

◆ size()

template<idx N>
static constexpr idx num::SmallVec< N >::size ( )
inlinestaticconstexprnoexcept

Definition at line 17 of file small_matrix.hpp.

Member Data Documentation

◆ data


The documentation for this struct was generated from the following file: