opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
osc::Matrix< T, 3, 3 > Struct Template Reference

#include <matrix3x3.h>

Public Types

using column_type = Vector< T, 3 >
 
using row_type = Vector< T, 3 >
 
using value_type = column_type
 
using element_type = T
 
using size_type = size_t
 
using difference_type = ptrdiff_t
 
using reference = column_type &
 
using const_reference = const column_type &
 
using pointer = column_type *
 
using const_pointer = const column_type *
 
using iterator = column_type *
 
using const_iterator = const column_type *
 

Public Member Functions

constexpr Matrix ()=default
 
constexpr Matrix (T s)
 
constexpr Matrix (T x0, T y0, T z0, T x1, T y1, T z1, T x2, T y2, T z2)
 
constexpr Matrix (const column_type &v0, const column_type &v1, const column_type &v2)
 
template<typename X0 , typename Y0 , typename Z0 , typename X1 , typename Y1 , typename Z1 , typename X2 , typename Y2 , typename Z2 >
constexpr Matrix (X0 x0, Y0 y0, Z0 z0, X1 x1, Y1 y1, Z1 z1, X2 x2, Y2 y2, Z2 z2)
 
template<typename V1 , typename V2 , typename V3 >
constexpr Matrix (const Vector< V1, 3 > &v1, const Vector< V2, 3 > &v2, const Vector< V3, 3 > &v3)
 
template<typename U >
constexpr Matrix (const Matrix< U, 3, 3 > &m)
 
constexpr Matrix (const Matrix< T, 4, 4 > &m)
 
template<typename U >
Matrix< T, 3, 3 > & operator= (const Matrix< U, 3, 3 > &m)
 
constexpr size_type size () const
 
constexpr pointer data ()
 
constexpr const_pointer data () const
 
constexpr iterator begin ()
 
constexpr const_iterator begin () const
 
constexpr iterator end ()
 
constexpr const_iterator end () const
 
constexpr reference operator[] (size_type pos)
 
constexpr const_reference operator[] (size_type pos) const
 
template<typename U >
Matrix< T, 3, 3 > & operator+= (U s)
 
template<typename U >
Matrix< T, 3, 3 > & operator+= (const Matrix< U, 3, 3 > &m)
 
template<typename U >
Matrix< T, 3, 3 > & operator-= (U s)
 
template<typename U >
Matrix< T, 3, 3 > & operator-= (const Matrix< U, 3, 3 > &m)
 
template<typename U >
Matrix< T, 3, 3 > & operator*= (U s)
 
template<typename U >
Matrix< T, 3, 3 > & operator*= (const Matrix< U, 3, 3 > &m)
 
template<typename U >
Matrix< T, 3, 3 > & operator/= (U s)
 
template<typename U >
Matrix< T, 3, 3 > & operator/= (const Matrix< U, 3, 3 > &m)
 
Matrix< T, 3, 3 > & operator++ ()
 
Matrix< T, 3, 3 > & operator-- ()
 
Matrix< T, 3, 3 > operator++ (int)
 
Matrix< T, 3, 3 > operator-- (int)
 

Friends

constexpr bool operator== (const Matrix &, const Matrix &)=default
 

Member Typedef Documentation

◆ column_type

template<typename T >
using osc::Matrix< T, 3, 3 >::column_type = Vector<T, 3>

◆ const_iterator

template<typename T >
using osc::Matrix< T, 3, 3 >::const_iterator = const column_type*

◆ const_pointer

template<typename T >
using osc::Matrix< T, 3, 3 >::const_pointer = const column_type*

◆ const_reference

template<typename T >
using osc::Matrix< T, 3, 3 >::const_reference = const column_type&

◆ difference_type

template<typename T >
using osc::Matrix< T, 3, 3 >::difference_type = ptrdiff_t

◆ element_type

template<typename T >
using osc::Matrix< T, 3, 3 >::element_type = T

◆ iterator

template<typename T >
using osc::Matrix< T, 3, 3 >::iterator = column_type*

◆ pointer

template<typename T >
using osc::Matrix< T, 3, 3 >::pointer = column_type*

◆ reference

template<typename T >
using osc::Matrix< T, 3, 3 >::reference = column_type&

◆ row_type

template<typename T >
using osc::Matrix< T, 3, 3 >::row_type = Vector<T, 3>

◆ size_type

template<typename T >
using osc::Matrix< T, 3, 3 >::size_type = size_t

◆ value_type

template<typename T >
using osc::Matrix< T, 3, 3 >::value_type = column_type

Constructor & Destructor Documentation

◆ Matrix() [1/8]

template<typename T >
constexpr osc::Matrix< T, 3, 3 >::Matrix ( )
constexprdefault

◆ Matrix() [2/8]

template<typename T >
constexpr osc::Matrix< T, 3, 3 >::Matrix ( T  s)
inlineexplicitconstexpr

◆ Matrix() [3/8]

template<typename T >
constexpr osc::Matrix< T, 3, 3 >::Matrix ( T  x0,
T  y0,
T  z0,
T  x1,
T  y1,
T  z1,
T  x2,
T  y2,
T  z2 
)
inlineconstexpr

◆ Matrix() [4/8]

template<typename T >
constexpr osc::Matrix< T, 3, 3 >::Matrix ( const column_type v0,
const column_type v1,
const column_type v2 
)
inlineconstexpr

◆ Matrix() [5/8]

template<typename T >
constexpr osc::Matrix< T, 3, 3 >::Matrix ( X0  x0,
Y0  y0,
Z0  z0,
X1  x1,
Y1  y1,
Z1  z1,
X2  x2,
Y2  y2,
Z2  z2 
)
inlineconstexpr

◆ Matrix() [6/8]

template<typename T >
template<typename V1 , typename V2 , typename V3 >
constexpr osc::Matrix< T, 3, 3 >::Matrix ( const Vector< V1, 3 > &  v1,
const Vector< V2, 3 > &  v2,
const Vector< V3, 3 > &  v3 
)
inlineconstexpr

◆ Matrix() [7/8]

template<typename T >
template<typename U >
constexpr osc::Matrix< T, 3, 3 >::Matrix ( const Matrix< U, 3, 3 > &  m)
inlineexplicitconstexpr

◆ Matrix() [8/8]

template<typename T >
constexpr osc::Matrix< T, 3, 3 >::Matrix ( const Matrix< T, 4, 4 > &  m)
inlineexplicitconstexpr

Member Function Documentation

◆ begin() [1/2]

template<typename T >
constexpr iterator osc::Matrix< T, 3, 3 >::begin ( )
inlineconstexpr

◆ begin() [2/2]

template<typename T >
constexpr const_iterator osc::Matrix< T, 3, 3 >::begin ( ) const
inlineconstexpr

◆ data() [1/2]

template<typename T >
constexpr pointer osc::Matrix< T, 3, 3 >::data ( )
inlineconstexpr

◆ data() [2/2]

template<typename T >
constexpr const_pointer osc::Matrix< T, 3, 3 >::data ( ) const
inlineconstexpr

◆ end() [1/2]

template<typename T >
constexpr iterator osc::Matrix< T, 3, 3 >::end ( )
inlineconstexpr

◆ end() [2/2]

template<typename T >
constexpr const_iterator osc::Matrix< T, 3, 3 >::end ( ) const
inlineconstexpr

◆ operator*=() [1/2]

template<typename T >
template<typename U >
Matrix< T, 3, 3 > & osc::Matrix< T, 3, 3 >::operator*= ( const Matrix< U, 3, 3 > &  m)
inline

◆ operator*=() [2/2]

template<typename T >
template<typename U >
Matrix< T, 3, 3 > & osc::Matrix< T, 3, 3 >::operator*= ( U  s)
inline

◆ operator++() [1/2]

template<typename T >
Matrix< T, 3, 3 > & osc::Matrix< T, 3, 3 >::operator++ ( )
inline

◆ operator++() [2/2]

template<typename T >
Matrix< T, 3, 3 > osc::Matrix< T, 3, 3 >::operator++ ( int  )
inline

◆ operator+=() [1/2]

template<typename T >
template<typename U >
Matrix< T, 3, 3 > & osc::Matrix< T, 3, 3 >::operator+= ( const Matrix< U, 3, 3 > &  m)
inline

◆ operator+=() [2/2]

template<typename T >
template<typename U >
Matrix< T, 3, 3 > & osc::Matrix< T, 3, 3 >::operator+= ( U  s)
inline

◆ operator--() [1/2]

template<typename T >
Matrix< T, 3, 3 > & osc::Matrix< T, 3, 3 >::operator-- ( )
inline

◆ operator--() [2/2]

template<typename T >
Matrix< T, 3, 3 > osc::Matrix< T, 3, 3 >::operator-- ( int  )
inline

◆ operator-=() [1/2]

template<typename T >
template<typename U >
Matrix< T, 3, 3 > & osc::Matrix< T, 3, 3 >::operator-= ( const Matrix< U, 3, 3 > &  m)
inline

◆ operator-=() [2/2]

template<typename T >
template<typename U >
Matrix< T, 3, 3 > & osc::Matrix< T, 3, 3 >::operator-= ( U  s)
inline

◆ operator/=() [1/2]

template<typename T >
template<typename U >
Matrix< T, 3, 3 > & osc::Matrix< T, 3, 3 >::operator/= ( const Matrix< U, 3, 3 > &  m)
inline

◆ operator/=() [2/2]

template<typename T >
template<typename U >
Matrix< T, 3, 3 > & osc::Matrix< T, 3, 3 >::operator/= ( U  s)
inline

◆ operator=()

template<typename T >
template<typename U >
Matrix< T, 3, 3 > & osc::Matrix< T, 3, 3 >::operator= ( const Matrix< U, 3, 3 > &  m)
inline

◆ operator[]() [1/2]

template<typename T >
constexpr reference osc::Matrix< T, 3, 3 >::operator[] ( size_type  pos)
inlineconstexpr

◆ operator[]() [2/2]

template<typename T >
constexpr const_reference osc::Matrix< T, 3, 3 >::operator[] ( size_type  pos) const
inlineconstexpr

◆ size()

template<typename T >
constexpr size_type osc::Matrix< T, 3, 3 >::size ( ) const
inlineconstexpr

Friends And Related Symbol Documentation

◆ operator==

template<typename T >
constexpr bool operator== ( const Matrix< T, 3, 3 > &  ,
const Matrix< T, 3, 3 > &   
)
friend

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