![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MTL
文章平均质量分 69
RobinKin
这个作者很懒,什么都没留下…
展开
-
MTL 矩阵划分示例
//整理 by RobinKin #include "mtl/matrix.h"#include "mtl/linalg_vec.h"#include "mtl/utils.h"#include /* Sample output: Partitioning Vectors //向量划分[0,1,2,3,4,5,6,7,8,9,]split in half[0,1,2,3,4,][5,6,7,原创 2005-03-03 14:10:00 · 1523 阅读 · 0 评论 -
MTL 向量旋转 拉伸 函数
//整理 by RobinKin#include "mtl/mtl.h"#include "mtl/utils.h" #include "mtl/linalg_vec.h"/* Eliminates the last element of vector y. Sample Output [1,2,3,4,5,] [2,4,8,16,32,] [2.1304,4.2608,8.36723,原创 2005-03-03 14:45:00 · 1334 阅读 · 0 评论 -
MTL 带状矩阵乘法
//MTL 带状矩阵乘法//整理 by RobinKin//#include #include "mtl/matrix.h"#include "mtl/mtl.h"#include "mtl/utils.h" #include "mtl/linalg_vec.h"/* Sample Output Array A in packed form [ [1,1,1,], [2,2,2,],原创 2005-03-03 15:18:00 · 1919 阅读 · 1 评论 -
MTL 复数向量 找 最大元素
//复数向量 找 最大元素//整理 by RobinKin//#include "mtl/mtl.h"#include "mtl/utils.h" #include "mtl/linalg_vec.h"using namespace mtl;//begintypedef complex c;typedef external_vec Vec;//end/* Note: the Sun Perf原创 2005-03-04 14:45:00 · 1272 阅读 · 0 评论 -
MTL 向量欧基里德范数 示例
//整理 by RobinKin from DevonITinclude #include "mtl/mtl.h"#include "mtl/utils.h"#include "mtl/linalg_vec.h"/* Sample output;X: [1,5,3,1,]The L-2 norm of X is 6 */using namespace mtl;typedef exter原创 2005-03-03 13:29:00 · 1380 阅读 · 0 评论 -
MTL 矩阵逆阵 解线性方程
/* thanks to Valient Gough for this example program! *///整理 by RobinKin#include #include #include #include using namespace mtl;// dont print out the matrices once they get to this size...#define MAX_原创 2005-03-04 13:42:00 · 2247 阅读 · 0 评论 -
MTL 解下三角带状矩阵线形方程
//整理by RobinKin#include "mtl/matrix.h"#include "mtl/mtl.h"#include "mtl/utils.h"#include "mtl/linalg_vec.h"/*x1=8;2*x1+2*x2=43;4*x2+5*x3=86;6*x3+7*x4=137结果:[x1,x2,x3,x4]= [8,9,10,11,]/* Sample Out原创 2005-03-09 10:11:00 · 2171 阅读 · 0 评论 -
MTL 矢量外积
//整理bu RobinKin#include "mtl/matrix.h"#include "mtl/dense1D.h"#include "mtl/mtl.h"/* Sample Output A: 4x3 [ [100,100,100], [100,100,100], [100,100,100], [100,100,100] ] x: [1,2,3,4,] y: [原创 2005-03-08 14:58:00 · 1606 阅读 · 0 评论 -
MTL 矩阵转置
// RobinKin 整理#include #include #include using namespace mtl;//元素是double, 形状是矩形(还有 对称,上三角,下三角,带状矩阵等形状), 元素紧密(不稀疏,不压缩),//列主(还可以行主)typedef matrix, dense::type MATRIX; //元素压缩存储typedef matrix, compressed原创 2005-03-08 16:55:00 · 1804 阅读 · 0 评论