matrix class More...
#include <Matrix.h>
Public Member Functions | |
| Matrix (const unsigned int row, const unsigned int col) | |
| constructor More... | |
| Matrix (const Matrix &mat) | |
| copy constructor More... | |
| virtual | ~Matrix () |
| destructor | |
| unsigned int | getRowSize () |
| gets row size of matrix More... | |
| unsigned int | getColSize () |
| gets col size of matrix More... | |
| double | det () |
| calculates determinant. (This matrix must be a square matrix.) More... | |
| double | cofactor (const unsigned int row, const unsigned int col) |
| calculates cofactor (This matrix must be a square matrix.) More... | |
| Matrix | invert () |
| gets inverse matrix (This matrix must be a square matrix.) More... | |
| Vector | multiply (Vector &v) |
| multiplies vector More... | |
| Matrix | operator= (const Matrix &m) |
| copy matrix More... | |
| double & | operator() (const unsigned int row, const unsigned int col) |
| gets reference of value of specified element More... | |
| Matrix & | operator+= (const Matrix &m) |
| matrix addition More... | |
| Matrix & | operator-= (const Matrix &m) |
| matrix subtraction More... | |
| Matrix & | operator*= (const double k) |
| scalar multiplication More... | |
| Matrix & | operator/= (const double k) |
| scalar division More... | |
| Matrix | operator+ (const Matrix &m) |
| matrix addition More... | |
| Matrix | operator- (const Matrix &m) |
| matrix subtraction More... | |
| Matrix | operator* (const Matrix &m) |
| matrix multiplication More... | |
| Matrix | operator* (const double k) |
| scalar multiplication More... | |
| Matrix | operator/ (const double k) |
| scalar division More... | |
Public Attributes | |
| const unsigned int | m_row |
| const unsigned int | m_col |
| double *const | m_array |
| kome::core::Matrix::Matrix | ( | const unsigned int | row, |
| const unsigned int | col | ||
| ) |
constructor
| [in] | row | length of row |
| [in] | col | length of col |
Definition at line 29 of file Matrix.cpp.

| kome::core::Matrix::Matrix | ( | const Matrix & | mat | ) |
copy constructor
| [in] | mat | Matrix object to be copied |
Definition at line 38 of file Matrix.cpp.
| double kome::core::Matrix::cofactor | ( | const unsigned int | row, |
| const unsigned int | col | ||
| ) |
calculates cofactor (This matrix must be a square matrix.)
| [in] | row | row |
| [in] | col | col |
Definition at line 86 of file Matrix.cpp.

| double kome::core::Matrix::det | ( | ) |
calculates determinant. (This matrix must be a square matrix.)
Definition at line 64 of file Matrix.cpp.

| unsigned int kome::core::Matrix::getColSize | ( | ) |
| unsigned int kome::core::Matrix::getRowSize | ( | ) |
| Matrix kome::core::Matrix::invert | ( | ) |
gets inverse matrix (This matrix must be a square matrix.)
Definition at line 121 of file Matrix.cpp.

multiplies vector
Definition at line 153 of file Matrix.cpp.

| double & kome::core::Matrix::operator() | ( | const unsigned int | row, |
| const unsigned int | col | ||
| ) |
gets reference of value of specified element
| [in] | row | row |
| [in] | col | col |
Definition at line 187 of file Matrix.cpp.
matrix multiplication
| [in] | m | matrix to multiple |
Definition at line 275 of file Matrix.cpp.
| Matrix kome::core::Matrix::operator* | ( | const double | k | ) |
scalar multiplication
| [in] | k | real number to multiple |
Definition at line 302 of file Matrix.cpp.
| Matrix & kome::core::Matrix::operator*= | ( | const double | k | ) |
scalar multiplication
| [in] | k | real number to multiple |
Definition at line 233 of file Matrix.cpp.
matrix addition
| [in] | m | matrix to add |
Definition at line 259 of file Matrix.cpp.
matrix addition
| [in] | m | matrix to add |
Definition at line 197 of file Matrix.cpp.
matrix subtraction
| [in] | m | matrix to subtract |
Definition at line 267 of file Matrix.cpp.
matrix subtraction
| [in] | m | matrix to subtract |
Definition at line 215 of file Matrix.cpp.
| Matrix kome::core::Matrix::operator/ | ( | const double | k | ) |
scalar division
| [in] | k | real number to divide |
Definition at line 310 of file Matrix.cpp.
| Matrix & kome::core::Matrix::operator/= | ( | const double | k | ) |
scalar division
| [in] | k | real number to divide |
Definition at line 246 of file Matrix.cpp.
copy matrix
| [in] | m | source matrix to be copied |
Definition at line 174 of file Matrix.cpp.
1.8.6