ldltpara.dat

来自「LDL 分解源码。从文件输入数据」· DAT 代码 · 共 18 行

DAT
18
字号
# If the line begin with '#', then this line will be ignored.
# There should not be empty line.
# The first line must be 'n =' and followed by a number for dimension n.
# 以'#'开头的行将被忽略掉, 是注释行. 不要有空行.
# 第一个有用行必须以'n ='开头, 接着是系数矩阵的维数.
n = 3
# Then input the augmented matrix(that is coefficient matrix A and b.
# A should be on left side, while b should be on right side).
# There should be n+1 numbers in a line(n numbers of A and one of b).
# 接着输入增广矩阵(也就是系数矩阵A和b. A在左边, b在右边).
# 每一行应该有 n+1 个数, n 个是矩阵A的, 一个b的.
#         A                     b
  1     0.5     0.5             1
0.5       1     0.5            -2
0.5     0.5       1             3
# The line exceed n will also be ignored .
# 按维数输完A和b后, 接下来的所有行都会被忽略.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?