CMlib
Cell mapping algorithms in C++
mat2 Class Reference

Very simple 2x2 matrix class. More...

#include <vec2.h>

Public Member Functions

double & operator[] (unsigned int i)
 Container of components, row-major. More...
 
const double & operator[] (unsigned int i) const
 Operator[] for accessing the i-th component (const) More...
 
double & operator() (unsigned int i, unsigned int j)
 Operator() for accessing the (i,j)-th component (mutable) More...
 
const double & operator() (unsigned int i, unsigned int j) const
 Operator() for accessing the (i,j)-th component (const) More...
 

Detailed Description

Very simple 2x2 matrix class.

Member Function Documentation

◆ operator()() [1/2]

double & mat2::operator() ( unsigned int  i,
unsigned int  j 
)

Operator() for accessing the (i,j)-th component (mutable)

Parameters
irow index
jcolumn index

◆ operator()() [2/2]

const double & mat2::operator() ( unsigned int  i,
unsigned int  j 
) const

Operator() for accessing the (i,j)-th component (const)

Parameters
irow index
jcolumn index

◆ operator[]() [1/2]

double & mat2::operator[] ( unsigned int  i)

Container of components, row-major.

Operator[] for accessing the i-th component (mutable)

◆ operator[]() [2/2]

const double & mat2::operator[] ( unsigned int  i) const

Operator[] for accessing the i-th component (const)


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