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

#include <mat2.hh>

Public Member Functions

 Mat2 ()
 Mat2 (Real i00, Real i01, Real i10, Real i11)
 Mat2 (const Mat2 &m)
 Mat2 (const Real[4])
Mat2operator= (const Mat2 &m)
bool operator== (const Mat2 &rhs) const
Realoperator() (std::size_t r, std::size_t c)
const Realoperator() (std::size_t r, std::size_t c) const
Mat2operator+= (const Mat2 &rhs)
Mat2operator-= (const Mat2 &rhs)
Mat2operator*= (const Real d)
Mat2operator/= (const Real d)
Mat2operator*= (const Mat2 &m)
RealData ()
const RealData () const

Static Public Member Functions

static Mat2 Identity ()

Detailed Description

Definition at line 32 of file mat2.hh.


Constructor & Destructor Documentation

Mat2 ( )

Default initialization, identity matrix.

Mat2 ( Real  i00,
Real  i01,
Real  i10,
Real  i11 
)

In with 4 values in row-major order.

row-major order means that the matrix

| a b | | c d |

is initialized with (a,b, c,d)

Mat2 ( const Mat2 m)

Copy ctor.

Mat2 ( const Real  [4])
explicit

initialization from array


Member Function Documentation

Real* Data ( )
inline

Definition at line 89 of file mat2.hh.

const Real* Data ( ) const
inline

Definition at line 90 of file mat2.hh.

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

element access

Definition at line 67 of file mat2.hh.

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

const element access

Definition at line 73 of file mat2.hh.

Mat2& operator*= ( const Real  d)
Mat2& operator*= ( const Mat2 m)
Mat2& operator+= ( const Mat2 rhs)

addable op

Mat2& operator-= ( const Mat2 rhs)

subtractable op

Mat2& operator/= ( const Real  d)
Mat2& operator= ( const Mat2 m)

assignement op

bool operator== ( const Mat2 rhs) const

comparable


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