天软金融分析.NET函数大全
>
TSL函数
>
基础函数
>
数组
>
稀疏矩阵
Sprandn2
复制链接
简述
创建m*n稀疏正态随机矩阵,其中非零元素所占比例为pct
定义
Sprandn2(m;n:Integer; pct:real): array
参数
名称
类型
说明
m
Integer
矩阵的行数,整数
n
Integer
矩阵的列数,整数
pct
real
矩阵中非零元素所占比例,实数
返回
array
数组
范例
//创建10*10稀疏正态随机矩阵
A:=sprandn2(10,10,0.2);
return A;
//结果:
相关
Sparse1
Sparse2
Speye
Sprand1
Sprand2
Sprandn1
Sprandn2
Sprandsym1
Sprandsym2
Sparsefull
Spones
Spnnz
Spnonzeros
Ifsparse
Spdiags1
Spdiags2
Spdiags3
Spdiags4