2x2 Matrix class
More...
#include <matrix3.h>
List of all members.
Detailed Description
2x2 Matrix class
Definition at line 234 of file matrix3.h.
Constructor & Destructor Documentation
Constructor Initialising to Identity Matrix.
Definition at line 240 of file matrix3.h.
Copy Constructor.
- Parameters:
-
Definition at line 247 of file matrix3.h.
Member Function Documentation
Determinant of matrix.
- Returns:
- Determinant
Definition at line 294 of file matrix3.h.
Set Matrix to Identity Matrix.
Definition at line 262 of file matrix3.h.
Invert a matrix.
- Returns:
- Inverted Matrix
Definition at line 300 of file matrix3.h.
double& Matrix2::operator() |
( |
int |
r, |
|
|
int |
c |
|
) |
| [inline] |
Element Access.
- Parameters:
-
- Returns:
- element value
Definition at line 288 of file matrix3.h.
Matrix Multiplication.
- Parameters:
-
m | Matrix to be multiplied with |
- Returns:
- Result Matrix
Definition at line 316 of file matrix3.h.
Matrix Vector multiplication.
- Parameters:
-
v | Vector to be multiplied with |
- Returns:
- Result Vector
Definition at line 327 of file matrix3.h.
Matrix2 Matrix2::operator* |
( |
double |
v | ) |
[inline] |
Scalar matrix multiplication.
- Parameters:
-
v | Scalar value to be multiplied with |
- Returns:
- Result Matrix
Definition at line 337 of file matrix3.h.
Matrix2& Matrix2::operator*= |
( |
double |
v | ) |
[inline] |
Scalar matrix multiplication and output into itself.
- Parameters:
-
v | Scalar value to be multiplied with |
- Returns:
- Result Matrix
Definition at line 356 of file matrix3.h.
Matrix Addition and output into itself.
- Parameters:
-
- Returns:
- Result Matrix
Definition at line 365 of file matrix3.h.
Matrix2& Matrix2::operator+= |
( |
double |
v | ) |
[inline] |
Add scalar to every matrix element and output into itself.
- Parameters:
-
v | Scalar value to be added |
- Returns:
- Result Matrix
Definition at line 374 of file matrix3.h.
Copy Matrix values from new matrix.
- Parameters:
-
Definition at line 255 of file matrix3.h.
Matrix2& Matrix2::operator= |
( |
double |
v | ) |
[inline] |
Set all Matrix Elements to scalar value.
- Parameters:
-
v | Scalar value to be set to |
- Returns:
- Result Matrix
Definition at line 347 of file matrix3.h.
Vector2& Matrix2::operator[] |
( |
int |
idx | ) |
[inline] |
Row Element Access.
- Parameters:
-
- Returns:
- row as two dimensional vector
Definition at line 271 of file matrix3.h.
Vector2 Matrix2::operator[] |
( |
int |
idx | ) |
const [inline] |
Row Element Access.
- Parameters:
-
- Returns:
- row as two dimensional vector
Definition at line 279 of file matrix3.h.
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Matrix2 & |
m |
|
) |
| [friend] |
Print out matrix.
- Parameters:
-
os | output stream |
m | Matrix to be printed |
- Returns:
- Matrix printed to output stream
Definition at line 385 of file matrix3.h.
Member Data Documentation
Storage for 2 x 2 Matrix.
Definition at line 237 of file matrix3.h.
The documentation for this class was generated from the following file: