matrix

所属分类:数值算法/人工智能
开发工具:Visual C++
文件大小:4KB
下载次数:5
上传日期:2014-04-24 22:43:04
上 传 者five little
说明:  矩阵类模板Matrix<Type>是专门为线性代数中矩阵而设计的一个模板类,具体的函数声明与定义可以参见“matrix.h。见测试文件 matrix_test.cpp,功能如下: Matrix<Type> m 创建一个空矩阵 Matrix<Type> m2(m1) 创建矩阵 m2的拷贝 m1 Matrix<Type> m(r,c,x) 创建常数矩阵 Matrix<Type> m(r,c,a) 通过数组创建矩阵 m.~Matrix<Type> () 销毁矩阵并释放空间 矩阵运算: A += x 矩阵自身加常数 A -= x 矩阵自身减常数 A *= x 矩阵自身乘常数 A /= x 矩阵自身除以常数 A1 += A2 矩阵自身加矩阵 A1 -= A2 矩阵自身减矩阵 A1 *= A2 矩阵自身乘矩阵(逐元素) A1 /= A2 矩阵自身除以矩阵(逐元素) x + A 常数与矩阵之和 A + x 矩阵与常数之和 A1 + A2 矩阵与矩阵之和 A - x 矩阵与常数之差 x - A 常数与矩阵之差 A1 - A2 矩阵与矩阵之差
(Matrix Matrix class template <Type> Is a template class specifically for linear algebra and matrix design, the specific function declarations and definitions can be found in " matrix.h see test file matrix_test.cpp, functions as follows:. Matrix <Type> Create an empty matrix Matrix m <Type> m2 (m1) to create a copy of the matrix m2 m1 Matrix <Type> m (r, c, x) to create a constant matrix Matrix <Type> m (r, c, a) create a matrix m through the array. ~ Matrix <Type> () Destroy the matrix and release space matrix calculation: A+ = x matrix itself plus the constant A- = x matrix itself less constant A* = x matrix itself by a constant A/= x matrix itself is divided by the constant A1+ = A2 matrix itself plus Matrix A1- = A2 matrix itself reduced matrix A1* = A2 matrix multiplication matrix itself (by elements) A1/= A2 matrix itself divided by the matrix (by elements) x+ A matrix of constants and A+ x matrix with constants and A1+ A2 matrix and matrix)

文件列表:
matrix\matrix.h (9822, 2014-04-24)
matrix\matrix_test.cpp (4885, 2014-04-24)
matrix (0, 2014-04-24)

近期下载者

相关文件


收藏者