天软金融分析.NET函数大全
>
TSL函数
>
基础函数
>
数组
>
稀疏矩阵
Sprandn1
复制链接
简述
创建与矩阵S结构相同的稀疏格式矩阵,并将其中的非零元素替换为正态分布随机数
定义
Sprandn1(S:Array Of Real): array
参数
名称
类型
说明
S
Array Of Real
稀疏矩阵
返回
array
数组
范例
//创建与矩阵S相同结构的稀疏正态随机矩阵
S:=array((0,0,0,0,0),
(0,0,0,5,0),
(3,0,0,0,0),
(0,0,2,0,0),
(0,0,0,0,4));
return sprandn1(S);
//结果:
相关
Sparse1
Sparse2
Speye
Sprand1
Sprand2
Sprandn1
Sprandn2
Sprandsym1
Sprandsym2
Sparsefull
Spones
Spnnz
Spnonzeros
Ifsparse
Spdiags1
Spdiags2
Spdiags3
Spdiags4