numerics 0.1.0
Loading...
Searching...
No Matches
num::SmallMatrix< M, N > Struct Template Reference

#include <small_matrix.hpp>

Public Member Functions

constexpr realoperator() (idx i, idx j) noexcept
 
constexpr const realoperator() (idx i, idx j) const noexcept
 
constexpr void fill (real v) noexcept
 
constexpr SmallMatrix< N, M > transposed () const noexcept
 
template<idx K>
constexpr SmallMatrix< M, K > operator* (const SmallMatrix< N, K > &B) const noexcept
 
constexpr SmallVec< M > operator* (const SmallVec< N > &x) const noexcept
 
constexpr SmallMatrixoperator+= (const SmallMatrix &o) noexcept
 
constexpr SmallMatrixoperator*= (real s) noexcept
 

Static Public Member Functions

static constexpr idx rows () noexcept
 
static constexpr idx cols () noexcept
 
static constexpr SmallMatrix zeros () noexcept
 
static constexpr SmallMatrix identity () noexcept
 

Public Attributes

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

Detailed Description

template<idx M, idx N>
struct num::SmallMatrix< M, N >

Definition at line 62 of file small_matrix.hpp.

Member Function Documentation

◆ cols()

template<idx M, idx N>
static constexpr idx num::SmallMatrix< M, N >::cols ( )
inlinestaticconstexprnoexcept

Definition at line 72 of file small_matrix.hpp.

◆ fill()

template<idx M, idx N>
constexpr void num::SmallMatrix< M, N >::fill ( real  v)
inlineconstexprnoexcept

Definition at line 74 of file small_matrix.hpp.

References num::SmallMatrix< M, N >::data.

◆ identity()

template<idx M, idx N>
static constexpr SmallMatrix num::SmallMatrix< M, N >::identity ( )
inlinestaticconstexprnoexcept

Definition at line 78 of file small_matrix.hpp.

◆ operator()() [1/2]

template<idx M, idx N>
constexpr const real & num::SmallMatrix< M, N >::operator() ( idx  i,
idx  j 
) const
inlineconstexprnoexcept

Definition at line 67 of file small_matrix.hpp.

References num::SmallMatrix< M, N >::data.

◆ operator()() [2/2]

template<idx M, idx N>
constexpr real & num::SmallMatrix< M, N >::operator() ( idx  i,
idx  j 
)
inlineconstexprnoexcept

Definition at line 65 of file small_matrix.hpp.

References num::SmallMatrix< M, N >::data.

◆ operator*() [1/2]

template<idx M, idx N>
template<idx K>
constexpr SmallMatrix< M, K > num::SmallMatrix< M, N >::operator* ( const SmallMatrix< N, K > &  B) const
inlineconstexprnoexcept

Definition at line 98 of file small_matrix.hpp.

◆ operator*() [2/2]

template<idx M, idx N>
constexpr SmallVec< M > num::SmallMatrix< M, N >::operator* ( const SmallVec< N > &  x) const
inlineconstexprnoexcept

Definition at line 110 of file small_matrix.hpp.

◆ operator*=()

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

Definition at line 127 of file small_matrix.hpp.

References num::SmallMatrix< M, N >::data.

◆ operator+=()

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

Definition at line 120 of file small_matrix.hpp.

References num::SmallMatrix< M, N >::data.

◆ rows()

template<idx M, idx N>
static constexpr idx num::SmallMatrix< M, N >::rows ( )
inlinestaticconstexprnoexcept

Definition at line 71 of file small_matrix.hpp.

◆ transposed()

template<idx M, idx N>
constexpr SmallMatrix< N, M > num::SmallMatrix< M, N >::transposed ( ) const
inlineconstexprnoexcept

Definition at line 87 of file small_matrix.hpp.

◆ zeros()

template<idx M, idx N>
static constexpr SmallMatrix num::SmallMatrix< M, N >::zeros ( )
inlinestaticconstexprnoexcept

Definition at line 76 of file small_matrix.hpp.

Member Data Documentation

◆ data


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