CPPLapack
All Classes Files Functions Variables Friends Pages
Read/Write File Format
The followings are the examples file formats for read and write functions. Only the order of data is important. The "#" at the first line is optional. In ceses of complex matrixes and vecotors, "(", real part, ",", imaginary part, and ")" should be arranged without any linefeed code or space code. The linefeed code and more than two space codes are optional. However, the file should be end with the linefeed code or space code.

dgematrix

Matrix Data
0.0 0.1 0.3 0.4
1.0 1.1 1.2 1.3
2.0 2.1 2.2 2.3

File Format
#dgematrix 3 4
0.0 0.1 0.2 0.3
1.0 1.1 1.2 1.3
2.0 2.1 2.2 2.3

dgbmatrix

Matrix Data
0.0 0.1 0.2 x
1.0 1.1 1.2 1.3
x 2.1 2.2 2.3
x x 3.2 3.3
x x x 4.3

File Format
#dgbmatrix 5 4 1 2
0.0 0.1 0.2
1.0 1.1 1.2 1.3
2.1 2.2 2.3
3.2 3.3
4.3

dsymatrix

Matrix Data
0.0 {1.0} {2.0} {3.1}
1.0 1.1 {2.1} {3.1}
2.0 2.1 2.2 {3.2}
3.0 3.1 3.2 3.3

File Format
#dsymatrix 4
0.0
1.0 1.1
2.0 2.1 2.2
3.0 3.1 3.2 3.3

dssmatrix

Matrix Data
{0} 0.1 {0} {0}
{0} {0} 1.2 {0}
2.0 {0} {0} 2.3

File Format
#dssmatrix 3 4 4
0 1 0.1
1 2 1.2
2 0 2.0
2 3 2.3

dcovector

Vector Data
0
1
2
3

File Format
#dcovector 4
0
1
2
3

drovector

Vector Data
0 1 2 3

File Format
#drovector 4
0 1 2 3




zgematrix

Matrix Data
0+0i 0+1i 0+2i 0+3i
1+0i 1+1i 1+2i 1+3i
2+0i 2+1i 2+2i 2+3i

File Format
#zgematrix 3 4
(0,0) (0,1) (0,2) (0,3)
(1,0) (1,1) (1,2) (1,3)
(2,0) (2,1) (2,2) (2,3)

zgbmatrix

Matrix Data
0+0i 0+1i 0+2i x
1+0i 1+1i 1+2i 1+3i
x 2+1i 2+2i 2+3i
x x 3+2i 3+3i
x x x 4+3i

File Format
#zgbmatrix 5 4 1 2
(0,0) (0,1) (0,2)
(1,0) (1,1) (1,2) (1,3)
(2,1) (2,2) (2,3)
(3,2) (3,3)
(4,3)

zhematrix

Matrix Data
0 {2-0i} {3-0i} {4-0i}
1+0i 1 {3-1i} {4-1i}
2+0i 2+1i 2 {4-2i}
3+0i 3+1i 3+2i 3

File Format
#zhematrix 4
(0,0)
(1,0) (1,0)
(2,0) (2,1) (2,0)
(3,0) (3,1) (3,2) (3,0)

zssmatrix

Matrix Data
{0} 0+1i {0} {0}
{0} {0} 1+2i {0}
2+0i {0} {0} 2+3i

File Format
#zssmatrix 3 4 4
0 1 (0,1)
1 2 (1,2)
2 0 (2,0)
2 3 (2,3)

zcovector

Vector Data
0+0i
1+0i
2+0i
3+0i

File Format
#zcovector 4
(0,0)
(1,0)
(2,0)
(3,0)

zrovector

Vector Data
0+0i 0+1i 0+2i 0+3i

File Format
#zrovector 4
(0,0) (0,1) (0,2) (0,3)