24-Aug-2022 20:09:02 r8ncf_test(): MATLAB version Test r8ncf(). R8NCF_DIF2_TEST R8NCF_DIF2 sets up a R8NCF second difference matrix; Matrix rows M = 7 Matrix columns N = 5 Matrix nonzeros = 14 The R8NCF matrix: Col: 1 2 3 4 5 Row --- 1 2 -1 0 0 0 2 -1 2 -1 0 0 3 0 -1 2 -1 0 4 0 0 -1 2 -1 5 0 0 0 -1 2 6 0 0 0 0 -1 R8NCF_INDICATOR_TEST R8NCF_INDICATOR sets up a R8NCF indicator matrix; Matrix rows M = 5 Matrix columns N = 7 Matrix nonzeros = 15 The R8NCF indicator matrix: Col: 1 2 3 4 5 Row --- 1 11 12 0 14 0 2 21 22 0 24 0 3 0 0 33 34 0 4 0 0 0 44 45 5 51 52 0 0 55 Col: 6 7 Row --- 1 0 17 4 46 0 R8NCF_MTV_TEST R8NCF_MTV computes b=A'*x, where A is an R8NCF matrix; Matrix rows M = 5 Matrix columns N = 7 Matrix nonzeros = 14 The R8NCF matrix: Col: 1 2 3 4 5 Row --- 1 2 -1 0 0 0 2 -1 2 -1 0 0 3 0 -1 2 -1 0 4 0 0 -1 2 -1 5 0 0 0 -1 2 Col: 6 7 Row --- 5 -1 0 x: 1: 1 2: 2 3: 3 4: 4 5: 5 b=A'*x: 1: 0 2: 0 3: 0 4: 0 5: 6 6: -5 7: 0 R8NCF_MV_TEST R8NCF_MV computes b=A*x, where A is an R8NCF matrix; Matrix rows M = 5 Matrix columns N = 4 Matrix nonzeros = 11 The R8NCF matrix: Col: 1 2 3 4 Row --- 1 2 -1 0 0 2 -1 2 -1 0 3 0 -1 2 -1 4 0 0 -1 2 5 0 0 0 -1 x: 1: 1 2: 2 3: 3 4: 4 b=A*x: 1: 0 2: 0 3: 0 4: 5 5: -4 R8NCF_PRINT_TEST R8NCF_PRINT prints an R8NCF matrix; Matrix rows M = 7 Matrix columns N = 5 Matrix nonzeros = 15 The R8NCF indicator matrix: Col: 1 2 3 4 5 Row --- 1 11 12 0 14 0 2 21 22 0 24 0 3 0 0 33 34 0 4 0 0 0 44 45 5 51 52 0 0 55 R8NCF_RANDOM_TEST R8NCF_RANDOM randomizes an R8NCF matrix; Matrix rows M = 7 Matrix columns N = 5 Matrix nonzeros = 15 The R8NCF random matrix: Col: 1 2 3 4 5 Row --- 1 0.218418 0.109957 0 0.633966 0 2 0.0661187 0.956318 0 0.0617272 0 3 0 0 0.829509 0.449539 0 4 0 0 0 0.561695 0.401306 5 0.257578 0.043829 0 0 0.415307 R8NCF_TO_R8GE_TEST R8NCF_TO_R8GE converts an R8NCF matrix to R8GE format; Matrix rows M = 5 Matrix columns N = 7 Matrix nonzeros = 15 The R8NCF matrix: Col: 1 2 3 4 5 Row --- 1 11 12 0 14 0 2 21 22 0 24 0 3 0 0 33 34 0 4 0 0 0 44 45 5 51 52 0 0 55 Col: 6 7 Row --- 1 0 17 4 46 0 The R8GE matrix: Col: 1 2 3 4 5 Row --- 1 11 12 0 14 0 2 21 22 0 24 0 3 0 0 33 34 0 4 0 0 0 44 45 5 51 52 0 0 55 Col: 6 7 Row --- 1 0 17 2 0 0 3 0 0 4 46 0 5 0 0 R8NCF_ZEROS_TEST R8NCF_ZEROS zeros an R8NCF matrix; Matrix rows M = 5 Matrix columns N = 7 Matrix nonzeros = 15 The R8NCF zero matrix: Col: 1 2 3 4 5 Row --- Col: 6 7 Row --- r8ncf_test() Normal end of execution. 24-Aug-2022 20:09:02