emlabcpp
modern opinionated embedded C++ library
emlabcpp::identity_matrix< N, T > Class Template Reference

#include <matrix.h>

Public Types

using value_type = T
 

Public Member Functions

constexpr identity_matrix ()=default
 
constexpr stub operator[] (std::size_t i) const
 
 operator matrix< rows, cols, value_type > ()
 

Static Public Attributes

static constexpr std::size_t rows = N
 
static constexpr std::size_t cols = N
 

Member Typedef Documentation

◆ value_type

template<std::size_t N, typename T = float>
using emlabcpp::identity_matrix< N, T >::value_type = T

Constructor & Destructor Documentation

◆ identity_matrix()

template<std::size_t N, typename T = float>
constexpr emlabcpp::identity_matrix< N, T >::identity_matrix ( )
constexprdefault

Member Function Documentation

◆ operator matrix< rows, cols, value_type >()

template<std::size_t N, typename T = float>
emlabcpp::identity_matrix< N, T >::operator matrix< rows, cols, value_type > ( )
inline

◆ operator[]()

template<std::size_t N, typename T = float>
constexpr stub emlabcpp::identity_matrix< N, T >::operator[] ( std::size_t  i) const
inlineconstexpr

Member Data Documentation

◆ cols

template<std::size_t N, typename T = float>
constexpr std::size_t emlabcpp::identity_matrix< N, T >::cols = N
staticconstexpr

◆ rows

template<std::size_t N, typename T = float>
constexpr std::size_t emlabcpp::identity_matrix< N, T >::rows = N
staticconstexpr

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