21 January 2020 08:59:42 AM
ST_IO_TEST:
C version
Test the ST_IO library.
R8ST_WRITE
R8ST_WRITE writes an R8ST file.
Sparse Triplet (ST) header information:
Minimum row index I_MIN = 0
Maximum row index I_MAX = 4
Minimum col index J_MIN = 0
Maximum col index J_MAX = 4
Number of rows M = 5
Number of columns N = 5
Number of nonzeros NST = 11
Sparse Triplet (ST) data:
5 rows by 5 columns
# I J A
---- ---- ---- --------------
0 4 0 51
1 0 1 12
2 0 0 11
3 2 2 33
4 0 4 15
5 4 2 53
6 4 4 55
7 1 1 22
8 2 4 35
9 3 3 44
10 1 0 21
Wrote the matrix data to 'a5by5_r8.st'
R8ST_READ_TEST
R8ST_HEADER_READ reads the header from an R8ST file.
R8ST_DATA_READ reads the data from an R8ST file.
Read the data from 'kershaw_r8.st'
Sparse Triplet (ST) header information:
Minimum row index I_MIN = 0
Maximum row index I_MAX = 3
Minimum col index J_MIN = 0
Maximum col index J_MAX = 3
Number of rows M = 4
Number of columns N = 4
Number of nonzeros NST = 12
matrix data read from file
4 rows by 4 columns
# I J A
---- ---- ---- --------------
0 0 0 3
1 1 0 -2
2 3 0 2
3 0 1 -2
4 1 1 3
5 2 1 -2
6 1 2 -2
7 2 2 3
8 3 2 -2
9 0 3 2
10 2 3 -2
11 3 3 3
R8ST_SORT_A_TEST
R8ST_SORT_A sorts an R8ST matrix by columns.
Sparse Triplet (ST) header information:
Minimum row index I_MIN = 1
Maximum row index I_MAX = 5
Minimum col index J_MIN = 1
Maximum col index J_MAX = 5
Number of rows M = 5
Number of columns N = 5
Number of nonzeros NST = 11
Matrix data before sorting:
5 rows by 5 columns
# I J A
---- ---- ---- --------------
0 5 1 51
1 1 2 12
2 1 1 11
3 3 3 33
4 1 5 15
5 5 3 53
6 5 5 55
7 2 2 22
8 3 5 35
9 4 4 44
10 2 1 21
Matrix data sorted by column:
5 rows by 5 columns
# I J A
---- ---- ---- --------------
0 1 1 11
1 2 1 21
2 5 1 51
3 1 2 12
4 2 2 22
5 3 3 33
6 5 3 53
7 4 4 44
8 1 5 15
9 3 5 35
10 5 5 55
ST_IO_TEST:
Normal end of execution.
21 January 2020 08:59:42 AM
C 代码 读取和写入稀疏线性系统 以稀疏三元组 (ST) 格式存储.rar
版权申诉
61 浏览量
2023-05-27
00:07:53
上传
评论
收藏 6KB RAR 举报
卷积神经网络
- 粉丝: 338
- 资源: 8460