JUK1
StaticRow< T, N, ST > Struct Template Reference

A compile-time sized matrix row. More...

#include <StaticMatrix.hpp>

Public Member Functions

 StaticRow ()
 
 StaticRow (T initialValue)
 
void fill (T value)
 
T & operator[] (size_t index)
 
const T & operator[] (size_t index) const
 
dot (StaticRow< T, N > other)
 

Public Attributes

ST columns
 

Static Public Attributes

static constexpr size_t sizeN = N
 

Detailed Description

template<typename T, size_t N, typename ST = storageType<T, N>>
struct StaticRow< T, N, ST >

A compile-time sized matrix row.

Template Parameters
TThe value type
NThe row length
STthe type of storage used (vector vs array)

Definition at line 58 of file StaticMatrix.hpp.

Constructor & Destructor Documentation

◆ StaticRow() [1/2]

template<typename T , size_t N, typename ST = storageType<T, N>>
StaticRow< T, N, ST >::StaticRow ( )
inline

Definition at line 63 of file StaticMatrix.hpp.

◆ StaticRow() [2/2]

template<typename T , size_t N, typename ST = storageType<T, N>>
StaticRow< T, N, ST >::StaticRow ( initialValue)
inline

Definition at line 69 of file StaticMatrix.hpp.

Member Function Documentation

◆ dot()

template<typename T , size_t N, typename ST = storageType<T, N>>
T StaticRow< T, N, ST >::dot ( StaticRow< T, N >  other)
inline

Definition at line 88 of file StaticMatrix.hpp.

◆ fill()

template<typename T , size_t N, typename ST = storageType<T, N>>
void StaticRow< T, N, ST >::fill ( value)
inline

Definition at line 76 of file StaticMatrix.hpp.

◆ operator[]() [1/2]

template<typename T , size_t N, typename ST = storageType<T, N>>
T& StaticRow< T, N, ST >::operator[] ( size_t  index)
inline

Definition at line 80 of file StaticMatrix.hpp.

◆ operator[]() [2/2]

template<typename T , size_t N, typename ST = storageType<T, N>>
const T& StaticRow< T, N, ST >::operator[] ( size_t  index) const
inline

Definition at line 84 of file StaticMatrix.hpp.

Member Data Documentation

◆ columns

template<typename T , size_t N, typename ST = storageType<T, N>>
ST StaticRow< T, N, ST >::columns

Definition at line 59 of file StaticMatrix.hpp.

◆ sizeN

template<typename T , size_t N, typename ST = storageType<T, N>>
constexpr size_t StaticRow< T, N, ST >::sizeN = N
staticconstexpr

Definition at line 61 of file StaticMatrix.hpp.


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