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