P-E-R-R-Y
Utilitaires, contrats et vendors du moteur, en une seule doc
Loading...
Searching...
No Matches
Matrix< T, ROWS, COLS, typename, type > Struct Template Reference

#include <Matrix.hpp>

Public Member Functions

T & operator() (std::size_t i, std::size_t j)
const T & operator() (std::size_t i, std::size_t j) const
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix operator- () const
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix operator+ (const Matrix &other) const
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix operator- (const Matrix &other) const
template<std::size_t OTHER_COLS, typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix< T, ROWS, OTHER_COLS > operator* (const Matrix< T, COLS, OTHER_COLS > &other) const
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix & operator+= (const Matrix &other)
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix operator/ (T scalar) const
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix & operator*= (T scalar)
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix & operator/= (T scalar)
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix & operator-= (const Matrix &other)
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix operator* (T scalar) const
Matrix transpose () const

Static Public Member Functions

template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
static Matrix identity ()
static Matrix zero ()
template<typename = typename std::enable_if<ROWS == COLS>::type>
static Matrix diagonal (const T(&values)[ROWS])

Public Attributes

T data [ROWS][COLS] {}

Member Function Documentation

◆ diagonal()

template<typename T, std::size_t ROWS, std::size_t COLS, typename = typename std::enable_if<ROWS >= 1 && COLS >= 1, ::type>
template<typename = typename std::enable_if<ROWS == COLS>::type>
Matrix Matrix< T, ROWS, COLS, typename, type >::diagonal ( const T(&) values[ROWS])
inlinestatic

◆ identity()

template<typename T, std::size_t ROWS, std::size_t COLS, typename = typename std::enable_if<ROWS >= 1 && COLS >= 1, ::type>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix Matrix< T, ROWS, COLS, typename, type >::identity ( )
inlinestatic

◆ operator()() [1/2]

template<typename T, std::size_t ROWS, std::size_t COLS, typename = typename std::enable_if<ROWS >= 1 && COLS >= 1, ::type>
T & Matrix< T, ROWS, COLS, typename, type >::operator() ( std::size_t i,
std::size_t j )
inline

◆ operator()() [2/2]

template<typename T, std::size_t ROWS, std::size_t COLS, typename = typename std::enable_if<ROWS >= 1 && COLS >= 1, ::type>
const T & Matrix< T, ROWS, COLS, typename, type >::operator() ( std::size_t i,
std::size_t j ) const
inline

◆ operator*() [1/2]

template<typename T, std::size_t ROWS, std::size_t COLS, typename = typename std::enable_if<ROWS >= 1 && COLS >= 1, ::type>
template<std::size_t OTHER_COLS, typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix< T, ROWS, OTHER_COLS > Matrix< T, ROWS, COLS, typename, type >::operator* ( const Matrix< T, COLS, OTHER_COLS > & other) const
inline

◆ operator*() [2/2]

template<typename T, std::size_t ROWS, std::size_t COLS, typename = typename std::enable_if<ROWS >= 1 && COLS >= 1, ::type>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix Matrix< T, ROWS, COLS, typename, type >::operator* ( T scalar) const
inline

◆ operator*=()

template<typename T, std::size_t ROWS, std::size_t COLS, typename = typename std::enable_if<ROWS >= 1 && COLS >= 1, ::type>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix & Matrix< T, ROWS, COLS, typename, type >::operator*= ( T scalar)
inline

◆ operator+()

template<typename T, std::size_t ROWS, std::size_t COLS, typename = typename std::enable_if<ROWS >= 1 && COLS >= 1, ::type>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix Matrix< T, ROWS, COLS, typename, type >::operator+ ( const Matrix< T, ROWS, COLS, typename, type > & other) const
inline

◆ operator+=()

template<typename T, std::size_t ROWS, std::size_t COLS, typename = typename std::enable_if<ROWS >= 1 && COLS >= 1, ::type>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix & Matrix< T, ROWS, COLS, typename, type >::operator+= ( const Matrix< T, ROWS, COLS, typename, type > & other)
inline

◆ operator-() [1/2]

template<typename T, std::size_t ROWS, std::size_t COLS, typename = typename std::enable_if<ROWS >= 1 && COLS >= 1, ::type>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix Matrix< T, ROWS, COLS, typename, type >::operator- ( ) const
inline

◆ operator-() [2/2]

template<typename T, std::size_t ROWS, std::size_t COLS, typename = typename std::enable_if<ROWS >= 1 && COLS >= 1, ::type>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix Matrix< T, ROWS, COLS, typename, type >::operator- ( const Matrix< T, ROWS, COLS, typename, type > & other) const
inline

◆ operator-=()

template<typename T, std::size_t ROWS, std::size_t COLS, typename = typename std::enable_if<ROWS >= 1 && COLS >= 1, ::type>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix & Matrix< T, ROWS, COLS, typename, type >::operator-= ( const Matrix< T, ROWS, COLS, typename, type > & other)
inline

◆ operator/()

template<typename T, std::size_t ROWS, std::size_t COLS, typename = typename std::enable_if<ROWS >= 1 && COLS >= 1, ::type>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix Matrix< T, ROWS, COLS, typename, type >::operator/ ( T scalar) const
inline

◆ operator/=()

template<typename T, std::size_t ROWS, std::size_t COLS, typename = typename std::enable_if<ROWS >= 1 && COLS >= 1, ::type>
template<typename = typename std::enable_if<std::is_arithmetic<T>::value && ROWS == COLS>::type>
Matrix & Matrix< T, ROWS, COLS, typename, type >::operator/= ( T scalar)
inline

◆ transpose()

template<typename T, std::size_t ROWS, std::size_t COLS, typename = typename std::enable_if<ROWS >= 1 && COLS >= 1, ::type>
Matrix Matrix< T, ROWS, COLS, typename, type >::transpose ( ) const
inline

◆ zero()

template<typename T, std::size_t ROWS, std::size_t COLS, typename = typename std::enable_if<ROWS >= 1 && COLS >= 1, ::type>
Matrix Matrix< T, ROWS, COLS, typename, type >::zero ( )
inlinestatic

Member Data Documentation

◆ data

template<typename T, std::size_t ROWS, std::size_t COLS, typename = typename std::enable_if<ROWS >= 1 && COLS >= 1, ::type>
T Matrix< T, ROWS, COLS, typename, type >::data[ROWS][COLS] {}

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