OpenStructure
Public Member Functions | Static Public Member Functions
Mat3 Class Reference

#include <mat3.hh>

Inherits equality_comparable< Mat3 >, additive1< Mat3 >, and multiplicative2< Mat3, Real >.

Public Member Functions

 Mat3 ()
 
 Mat3 (Real i00, Real i01, Real i02, Real i10, Real i11, Real i12, Real i20, Real i21, Real i22)
 
 Mat3 (const Mat3 &m)
 
 Mat3 (const Mat2 &m)
 
 Mat3 (const Real arr[9])
 
 Mat3 (Real x, Real y, Real z)
 
RealAt (std::size_t r, std::size_t c)
 
const RealAt (std::size_t r, std::size_t c) const
 
Realoperator() (std::size_t r, std::size_t c)
 
const Realoperator() (std::size_t r, std::size_t c) const
 
Mat3operator= (const Mat3 &m)
 
bool operator== (const Mat3 &rhs) const
 
Mat3operator+= (const Mat3 &rhs)
 
Mat3operator-= (const Mat3 &rhs)
 
Mat3operator*= (const Real d)
 
Mat3operator/= (const Real d)
 
Mat3operator*= (const Mat3 &m)
 
RealData ()
 
const RealData () const
 
geom::Vec3 GetCol (int index) const
 
geom::Vec3 GetRow (int index) const
 

Static Public Member Functions

static Mat3 Identity ()
 

Detailed Description

Definition at line 35 of file mat3.hh.

Constructor & Destructor Documentation

◆ Mat3() [1/6]

Mat3 ( )
inline

Default initialization, identity matrix

Definition at line 42 of file mat3.hh.

◆ Mat3() [2/6]

Mat3 ( Real  i00,
Real  i01,
Real  i02,
Real  i10,
Real  i11,
Real  i12,
Real  i20,
Real  i21,
Real  i22 
)
inline

In with 9 values in row-major order.

row-major order means that the matrix

| a b c | | d e f | | g h i |

is initialized with (a,b,c, d,e,f, g,h,i)

Definition at line 56 of file mat3.hh.

◆ Mat3() [3/6]

Mat3 ( const Mat3 m)
inline

Definition at line 63 of file mat3.hh.

◆ Mat3() [4/6]

Mat3 ( const Mat2 m)
inline

Definition at line 68 of file mat3.hh.

◆ Mat3() [5/6]

Mat3 ( const Real  arr[9])
inlineexplicit

Definition at line 75 of file mat3.hh.

◆ Mat3() [6/6]

Mat3 ( Real  x,
Real  y,
Real  z 
)
inlineexplicit

Definition at line 80 of file mat3.hh.

Member Function Documentation

◆ At() [1/2]

Real& At ( std::size_t  r,
std::size_t  c 
)
inline

element access

Definition at line 85 of file mat3.hh.

◆ At() [2/2]

const Real& At ( std::size_t  r,
std::size_t  c 
) const
inline

element access

Definition at line 93 of file mat3.hh.

◆ Data() [1/2]

Real* Data ( )
inline

Definition at line 209 of file mat3.hh.

◆ Data() [2/2]

const Real* Data ( ) const
inline

Definition at line 210 of file mat3.hh.

◆ GetCol()

geom::Vec3 GetCol ( int  index) const

◆ GetRow()

geom::Vec3 GetRow ( int  index) const

◆ Identity()

static Mat3 Identity ( )
inlinestatic

Definition at line 121 of file mat3.hh.

◆ operator()() [1/2]

Real& operator() ( std::size_t  r,
std::size_t  c 
)
inline

element access

Definition at line 101 of file mat3.hh.

◆ operator()() [2/2]

const Real& operator() ( std::size_t  r,
std::size_t  c 
) const
inline

const element access

Definition at line 107 of file mat3.hh.

◆ operator*=() [1/2]

Mat3& operator*= ( const Mat3 m)
inline

Definition at line 195 of file mat3.hh.

◆ operator*=() [2/2]

Mat3& operator*= ( const Real  d)
inline

Definition at line 168 of file mat3.hh.

◆ operator+=()

Mat3& operator+= ( const Mat3 rhs)
inline

Definition at line 142 of file mat3.hh.

◆ operator-=()

Mat3& operator-= ( const Mat3 rhs)
inline

Definition at line 155 of file mat3.hh.

◆ operator/=()

Mat3& operator/= ( const Real  d)
inline

Definition at line 181 of file mat3.hh.

◆ operator=()

Mat3& operator= ( const Mat3 m)
inline

Definition at line 113 of file mat3.hh.

◆ operator==()

bool operator== ( const Mat3 rhs) const
inline

Definition at line 129 of file mat3.hh.


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