Matrix Class

Header: #include "easyar/matrix.hpp"

Inherited By: Vec

Description

Matrix represents a m x n matrix.

Public Functions

Matrix() explicit Matrix(const _Tp* vals)

Public Attributes

_Tp data[m*n]

Matrix()

Creates a Matrix object. Its data is zero-initialized.

explicit Matrix(const _Tp* vals)

Creates a Matrix object and copies all data from vals into the matrix.

_Tp data[m*n]

Raw data array of matrix.

bool operator == (const Matrix<_Tp, m, n>& m1, const Matrix<_Tp, m, n>& m2)

Equality operator. Returns true if all data in m1 and m2 are the same, otherwise returns false.

bool operator != (const Matrix<_Tp, m, n>& m1, const Matrix<_Tp, m, n>& m2)

Inequality operator. Returns true if not all data in m1 and m2 are the same, otherwise returns false.

typedef Matrix<float, 3, 4> Matrix34F

3 x 4 matrix of float data.

typedef Matrix<float, 4, 4> Matrix44F

4 x 4 matrix of float data.