nngn
Loading...
Searching...
No Matches
nngn::mat< CRTP, T, N > Struct Template Reference

#include <mat.h>

Public Types

using type = T
 
using vec_type = vec_type_t<T, N>
 

Public Member Functions

constexpr vec_typeoperator[] (std::size_t i)
 
constexpr const vec_typeoperator[] (std::size_t i) const
 
Tdata (void)
 
const Tdata (void) const
 
constexpr vec_type row (std::size_t i) const
 
constexpr vec_type col (std::size_t i) const
 

Public Attributes

std::array< T, N *Nm = {}
 

Static Public Attributes

static constexpr std::size_t n_dim = N
 

Member Typedef Documentation

◆ type

template<template< typename > typename CRTP, typename T , std::size_t N>
using nngn::mat< CRTP, T, N >::type = T

◆ vec_type

template<template< typename > typename CRTP, typename T , std::size_t N>
using nngn::mat< CRTP, T, N >::vec_type = vec_type_t<T, N>

Member Function Documentation

◆ col()

template<template< typename > typename CRTP, typename T , std::size_t N>
auto nngn::mat< CRTP, T, N >::col ( std::size_t i) const
constexpr

◆ data() [1/2]

template<template< typename > typename CRTP, typename T , std::size_t N>
T * nngn::mat< CRTP, T, N >::data ( void )
inline
Here is the caller graph for this function:

◆ data() [2/2]

template<template< typename > typename CRTP, typename T , std::size_t N>
const T * nngn::mat< CRTP, T, N >::data ( void ) const
inline

◆ operator[]() [1/2]

template<template< typename > typename CRTP, typename T , std::size_t N>
auto nngn::mat< CRTP, T, N >::operator[] ( std::size_t i)
constexpr

◆ operator[]() [2/2]

template<template< typename > typename CRTP, typename T , std::size_t N>
auto nngn::mat< CRTP, T, N >::operator[] ( std::size_t i) const
constexpr

◆ row()

template<template< typename > typename CRTP, typename T , std::size_t N>
auto nngn::mat< CRTP, T, N >::row ( std::size_t i) const
constexpr
Here is the caller graph for this function:

Member Data Documentation

◆ m

template<template< typename > typename CRTP, typename T , std::size_t N>
std::array<T, N * N> nngn::mat< CRTP, T, N >::m = {}

◆ n_dim

template<template< typename > typename CRTP, typename T , std::size_t N>
std::size_t nngn::mat< CRTP, T, N >::n_dim = N
staticconstexpr

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