49 Matrix(
int rows,
int cols);
63 Matrix(
int m,
int n,NAFLOAT
const * val);
91 Matrix getMat(
int i1,
int j1,
int i2 = -1,
int j2 = -1);
99 void setMat(
const Matrix& M,
int i,
int j);
105 static void setMatrixEye(
Matrix& mat,
const int m);
144 static void solve(
const Matrix& A,
const Matrix& b,
Matrix& x,
int flag = DecompositionMethod::GaussiaJordan);
152 static Matrix zeros(
int rows,
int cols);
158 void fill(
const NAFLOAT& value);
164 NAFLOAT** getValPtr()
const;
170 const NAFLOAT** getConstValPtr()
const;
191 const NAFLOAT* operator[](
int row)
const;
229 Matrix dot(NAFLOAT b)
const;
236 Matrix inv(
int flag = GaussiaJordan)
const;
266 friend NA_API std::ostream& operator<< (std::ostream& out,
const Matrix& M);
276 void create(
int rows,
int cols);
329 void create(
int rows,
int cols);
DecompositionMethod
枚举矩阵的各种分解方法
#define NA_API
兼容windows系统与linux系统
std::istream & operator>>(std::istream &is, Matrix &m)