08-Jan-2022 10:04:57 st_io_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test st_io(). I4ST_HEADER_PRINT_TEST I4ST_HEADER_PRINT prints the header of an I4ST file. Sparse Triplet header: 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 I4ST_PRINT_TEST I4ST_PRINT prints an I4ST file. Sparse Triplet header: 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 data: 5 rows by 5 columns 1 4 0 51 2 0 1 12 3 0 0 11 4 2 2 33 5 0 4 15 6 4 2 53 7 4 4 55 8 1 1 22 9 2 4 35 10 3 3 44 11 1 0 21 I4ST_PRINT_SOME_TEST I4ST_PRINT_SOME prints some of an I4ST file. Sparse Triplet header: 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 A(2:3,2:4) 4 2 2 33 9 2 4 35 10 3 3 44 I4ST_READ_TEST I4ST_HEADER_READ reads the header from an I4ST file. I4ST_DATA_READ reads the data from an I4ST file. Read the data from "kershaw_i4.st". Sparse Triplet header: 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 Sparse Triplet data from file 4 rows by 4 columns 1 0 0 3 2 1 0 -2 3 3 0 2 4 0 1 -2 5 1 1 3 6 2 1 -2 7 1 2 -2 8 2 2 3 9 3 2 -2 10 0 3 2 11 2 3 -2 12 3 3 3 I4ST_SORT_A_TEST I4ST_SORT_A sorts an I4ST matrix by columns. Sparse Triplet header: 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 1 5 1 51 2 1 2 12 3 1 1 11 4 3 3 33 5 1 5 15 6 5 3 53 7 5 5 55 8 2 2 22 9 3 5 35 10 4 4 44 11 2 1 21 Matrix data after sorting: 5 rows by 5 columns 1 1 1 11 2 2 1 21 3 5 1 51 4 1 2 12 5 2 2 22 6 3 3 33 7 5 3 53 8 4 4 44 9 1 5 15 10 3 5 35 11 5 5 55 I4ST_TRANSPOSE_TEST I4ST_TRANSPOSE transposes an I4ST file. Sparse Triplet header: 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 data: 5 rows by 5 columns 1 4 0 51 2 0 1 12 3 0 0 11 4 2 2 33 5 0 4 15 6 4 2 53 7 4 4 55 8 1 1 22 9 2 4 35 10 3 3 44 11 1 0 21 Transpose matrix: 5 rows by 5 columns 1 0 4 51 2 1 0 12 3 0 0 11 4 2 2 33 5 4 0 15 6 2 4 53 7 4 4 55 8 1 1 22 9 4 2 35 10 3 3 44 11 0 1 21 I4ST_WRITE_TEST I4ST_WRITE writes an I4ST file. Sparse Triplet header: 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 data: 5 rows by 5 columns 1 4 0 51 2 0 1 12 3 0 0 11 4 2 2 33 5 0 4 15 6 4 2 53 7 4 4 55 8 1 1 22 9 2 4 35 10 3 3 44 11 1 0 21 Wrote the matrix data to "a5by5_i4.st". R8ST_HEADER_PRINT_TEST R8ST_HEADER_PRINT prints the header of an R8ST file. Sparse Triplet header: 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 R8ST_PRINT_TEST R8ST_PRINT prints an R8ST file. Sparse Triplet header: 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 data: 5 rows by 5 columns 1 4 0 51.00000000 2 0 1 12.00000000 3 0 0 11.00000000 4 2 2 33.00000000 5 0 4 15.00000000 6 4 2 53.00000000 7 4 4 55.00000000 8 1 1 22.00000000 9 2 4 35.00000000 10 3 3 44.00000000 11 1 0 21.00000000 R8ST_PRINT_SOME_TEST R8ST_PRINT_SOME prints some of an R8ST file. Sparse Triplet header: 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 A(2:3,2:4) 4 2 2 33.00000000 9 2 4 35.00000000 10 3 3 44.00000000 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 header: 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 Sparse Triplet data from file 4 rows by 4 columns 1 0 0 3.00000000 2 1 0 -2.00000000 3 3 0 2.00000000 4 0 1 -2.00000000 5 1 1 3.00000000 6 2 1 -2.00000000 7 1 2 -2.00000000 8 2 2 3.00000000 9 3 2 -2.00000000 10 0 3 2.00000000 11 2 3 -2.00000000 12 3 3 3.00000000 R8ST_SORT_A_TEST R8ST_SORT_A sorts an R8ST matrix by columns. Sparse Triplet header: 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 1 5 1 51.00000000 2 1 2 12.00000000 3 1 1 11.00000000 4 3 3 33.00000000 5 1 5 15.00000000 6 5 3 53.00000000 7 5 5 55.00000000 8 2 2 22.00000000 9 3 5 35.00000000 10 4 4 44.00000000 11 2 1 21.00000000 Matrix data after sorting: 5 rows by 5 columns 1 1 1 11.00000000 2 2 1 21.00000000 3 5 1 51.00000000 4 1 2 12.00000000 5 2 2 22.00000000 6 3 3 33.00000000 7 5 3 53.00000000 8 4 4 44.00000000 9 1 5 15.00000000 10 3 5 35.00000000 11 5 5 55.00000000 R8ST_TRANSPOSE_TEST R8ST_TRANSPOSE transposes an R8ST file. Sparse Triplet header: 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 data: 5 rows by 5 columns 1 4 0 51.00000000 2 0 1 12.00000000 3 0 0 11.00000000 4 2 2 33.00000000 5 0 4 15.00000000 6 4 2 53.00000000 7 4 4 55.00000000 8 1 1 22.00000000 9 2 4 35.00000000 10 3 3 44.00000000 11 1 0 21.00000000 Transpose matrix: 5 rows by 5 columns 1 0 4 51.00000000 2 1 0 12.00000000 3 0 0 11.00000000 4 2 2 33.00000000 5 4 0 15.00000000 6 2 4 53.00000000 7 4 4 55.00000000 8 1 1 22.00000000 9 4 2 35.00000000 10 3 3 44.00000000 11 0 1 21.00000000 R8ST_WRITE_TEST R8ST_WRITE writes an R8ST file. Sparse Triplet header: 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 1 4 0 51.00000000 2 0 1 12.00000000 3 0 0 11.00000000 4 2 2 33.00000000 5 0 4 15.00000000 6 4 2 53.00000000 7 4 4 55.00000000 8 1 1 22.00000000 9 2 4 35.00000000 10 3 3 44.00000000 11 1 0 21.00000000 Wrote the matrix data to "a5by5_r8.st". SORT_HEAP_EXTERNAL_TEST(): SORT_HEAP_EXTERNAL sorts objects externally. Unsorted array: 1 5 2 20 3 17 4 12 5 9 6 2 7 6 8 3 9 1 10 13 11 2 12 9 13 9 14 16 15 16 16 1 17 18 18 8 19 2 20 1 Sorted array: 1 1 2 1 3 1 4 2 5 2 6 2 7 3 8 5 9 6 10 8 11 9 12 9 13 9 14 12 15 13 16 16 17 16 18 17 19 18 20 20 st_io_test(): Normal end of execution. 08-Jan-2022 10:04:57