openMSX
Public Member Functions | Friends | List of all members
gl::matMxN< M, N, T > Class Template Reference

#include <gl_mat.hh>

Inheritance diagram for gl::matMxN< M, N, T >:
Inheritance graph
[legend]

Public Member Functions

constexpr matMxN ()
 
constexpr matMxN (const vecN<(M< N ? M :N), T > &d)
 
template<int M2, int N2>
constexpr matMxN (const matMxN< M2, N2, T > &x)
 
constexpr matMxN (const vecN< M, T > &x, const vecN< M, T > &y)
 
constexpr matMxN (const vecN< M, T > &x, const vecN< M, T > &y, const vecN< M, T > &z)
 
constexpr matMxN (const vecN< M, T > &x, const vecN< M, T > &y, const vecN< M, T > &z, const vecN< M, T > &w)
 
constexpr const vecN< M, T > & operator[] (unsigned i) const
 
constexpr vecN< M, T > & operator[] (unsigned i)
 
constexpr const T * data () const
 
constexpr T * data ()
 
constexpr matMxNoperator+= (const matMxN &x)
 
constexpr matMxNoperator-= (const matMxN &x)
 
constexpr matMxNoperator*= (T x)
 
constexpr matMxNoperator*= (const matMxN< N, N, T > &x)
 
constexpr bool operator== (const matMxN &) const =default
 

Friends

constexpr friend matMxN operator+ (const matMxN &A, const matMxN &B)
 
constexpr friend matMxN operator- (const matMxN &A, const matMxN &B)
 
constexpr friend matMxN operator* (T x, const matMxN &A)
 
constexpr friend matMxN operator* (const matMxN &A, T x)
 
constexpr friend vecN< M, T > operator* (const matMxN &A, const vecN< N, T > &x)
 
template<int O>
constexpr friend matMxN< M, O, T > operator* (const matMxN &A, const matMxN< N, O, T > &B)
 
std::ostream & operator<< (std::ostream &os, const matMxN &A)
 

Detailed Description

template<int M, int N, typename T>
class gl::matMxN< M, N, T >

Definition at line 29 of file gl_mat.hh.

Constructor & Destructor Documentation

◆ matMxN() [1/6]

template<int M, int N, typename T >
constexpr gl::matMxN< M, N, T >::matMxN ( )
inlineconstexpr

Definition at line 35 of file gl_mat.hh.

References xrange().

◆ matMxN() [2/6]

template<int M, int N, typename T >
constexpr gl::matMxN< M, N, T >::matMxN ( const vecN<(M< N ? M :N), T > &  d)
inlineexplicitconstexpr

Definition at line 45 of file gl_mat.hh.

References xrange().

◆ matMxN() [3/6]

template<int M, int N, typename T >
template<int M2, int N2>
constexpr gl::matMxN< M, N, T >::matMxN ( const matMxN< M2, N2, T > &  x)
inlineexplicitconstexpr

Definition at line 55 of file gl_mat.hh.

References xrange().

◆ matMxN() [4/6]

template<int M, int N, typename T >
constexpr gl::matMxN< M, N, T >::matMxN ( const vecN< M, T > &  x,
const vecN< M, T > &  y 
)
inlineconstexpr

Definition at line 63 of file gl_mat.hh.

◆ matMxN() [5/6]

template<int M, int N, typename T >
constexpr gl::matMxN< M, N, T >::matMxN ( const vecN< M, T > &  x,
const vecN< M, T > &  y,
const vecN< M, T > &  z 
)
inlineconstexpr

Definition at line 70 of file gl_mat.hh.

◆ matMxN() [6/6]

template<int M, int N, typename T >
constexpr gl::matMxN< M, N, T >::matMxN ( const vecN< M, T > &  x,
const vecN< M, T > &  y,
const vecN< M, T > &  z,
const vecN< M, T > &  w 
)
inlineconstexpr

Definition at line 77 of file gl_mat.hh.

Member Function Documentation

◆ data() [1/2]

template<int M, int N, typename T >
constexpr T * gl::matMxN< M, N, T >::data ( )
inlineconstexpr

Definition at line 101 of file gl_mat.hh.

◆ data() [2/2]

template<int M, int N, typename T >
constexpr const T * gl::matMxN< M, N, T >::data ( ) const
inlineconstexpr

Definition at line 100 of file gl_mat.hh.

Referenced by openmsx::GLSnow::paint(), and openmsx::PostProcessor::paint().

◆ operator*=() [1/2]

template<int M, int N, typename T >
constexpr matMxN & gl::matMxN< M, N, T >::operator*= ( const matMxN< N, N, T > &  x)
inlineconstexpr

Definition at line 108 of file gl_mat.hh.

◆ operator*=() [2/2]

template<int M, int N, typename T >
constexpr matMxN & gl::matMxN< M, N, T >::operator*= ( x)
inlineconstexpr

Definition at line 107 of file gl_mat.hh.

◆ operator+=()

template<int M, int N, typename T >
constexpr matMxN & gl::matMxN< M, N, T >::operator+= ( const matMxN< M, N, T > &  x)
inlineconstexpr

Definition at line 105 of file gl_mat.hh.

◆ operator-=()

template<int M, int N, typename T >
constexpr matMxN & gl::matMxN< M, N, T >::operator-= ( const matMxN< M, N, T > &  x)
inlineconstexpr

Definition at line 106 of file gl_mat.hh.

◆ operator==()

template<int M, int N, typename T >
constexpr bool gl::matMxN< M, N, T >::operator== ( const matMxN< M, N, T > &  ) const
constexprdefault

◆ operator[]() [1/2]

template<int M, int N, typename T >
constexpr vecN< M, T > & gl::matMxN< M, N, T >::operator[] ( unsigned  i)
inlineconstexpr

Definition at line 93 of file gl_mat.hh.

◆ operator[]() [2/2]

template<int M, int N, typename T >
constexpr const vecN< M, T > & gl::matMxN< M, N, T >::operator[] ( unsigned  i) const
inlineconstexpr

Definition at line 87 of file gl_mat.hh.

Friends And Related Symbol Documentation

◆ operator* [1/4]

template<int M, int N, typename T >
template<int O>
constexpr friend matMxN< M, O, T > operator* ( const matMxN< M, N, T > &  A,
const matMxN< N, O, T > &  B 
)
friend

Definition at line 149 of file gl_mat.hh.

◆ operator* [2/4]

template<int M, int N, typename T >
constexpr friend vecN< M, T > operator* ( const matMxN< M, N, T > &  A,
const vecN< N, T > &  x 
)
friend

Definition at line 141 of file gl_mat.hh.

◆ operator* [3/4]

template<int M, int N, typename T >
constexpr friend matMxN operator* ( const matMxN< M, N, T > &  A,
x 
)
friend

Definition at line 134 of file gl_mat.hh.

◆ operator* [4/4]

template<int M, int N, typename T >
constexpr friend matMxN operator* ( x,
const matMxN< M, N, T > &  A 
)
friend

Definition at line 127 of file gl_mat.hh.

◆ operator+

template<int M, int N, typename T >
constexpr friend matMxN operator+ ( const matMxN< M, N, T > &  A,
const matMxN< M, N, T > &  B 
)
friend

Definition at line 113 of file gl_mat.hh.

◆ operator-

template<int M, int N, typename T >
constexpr friend matMxN operator- ( const matMxN< M, N, T > &  A,
const matMxN< M, N, T > &  B 
)
friend

Definition at line 120 of file gl_mat.hh.

◆ operator<<

template<int M, int N, typename T >
std::ostream & operator<< ( std::ostream &  os,
const matMxN< M, N, T > &  A 
)
friend

Definition at line 156 of file gl_mat.hh.


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