天软金融分析.NET函数大全
>
TSL函数
>
基础函数
>
数组
>
稀疏矩阵
Sparse2
复制链接
简述
根据i、j和v三元组生成m*n稀疏格式矩阵S
定义
Sparse2(i;j;v:real of Array; m;n:Integer): Array
参数
名称
类型
说明
i
real of Array
存放矩阵行标的一元数组
j
real of Array
存放矩阵列标的一元数组
v
real of Array
存放矩阵元素值的一元数组
m
Integer
矩阵的行数,整数
n
Integer
矩阵的列数,整数
返回
Array
数组
范例
//根据i,j,v三元组生成稀疏格式矩阵
i:=array(0,1,2,3);
j:=array(3,1,4,2);
v:=array(5,3,2,4);
return sparse2(i,j,v,5,5);
//结果:
相关
Sparse1
Sparse2
Speye
Sprand1
Sprand2
Sprandn1
Sprandn2
Sprandsym1
Sprandsym2
Sparsefull
Spones
Spnnz
Spnonzeros
Ifsparse
Spdiags1
Spdiags2
Spdiags3
Spdiags4