SPEIGS 1.0.0
example.h
1#ifndef example_h
2#define example_h
3
4#include "speigs.h"
5
6spint n = 5;
7
8/* Zero matrix */
9spint Ap0[] = {0, 0, 0, 0, 0, 0};
10spint Ai0[0];
11double Ax0[0];
12
13/* Diagonal matrix */
14spint Ap1[6] = {0, 1, 2, 3, 3, 4};
15spint Ai1[5] = {0, 1, 2, 4};
16double Ax1[5] = {1.0, 2.0, 3.0, 4.0};
17
18/* Two-two matrix */
19spint Ap2[6] = {0, 1, 1, 1, 1, 1};
20spint Ai2[1] = {3};
21double Ax2[5] = {10.0};
22
23/* Rank-one matrix */
24spint Ap3[6] = {0, 0, 0, 2, 3, 3};
25spint Ai3[3] = {2, 3, 3};
26double Ax3[3] = {1.0, -2.0, 4.0};
27
28/* Sparse submatrix */
29spint Ap4[6] = {0, 0, 0, 2, 3, 3};
30spint Ai4[3] = {2, 3, 3};
31double Ax4[3] = {-1.0, -2.0, 100.0};
32
33/* General matrix*/
34spint Ap5[6] = {0, 5, 9, 12, 14, 15};
35spint Ai5[15] = {0, 1, 2, 3, 4,
36 1, 2, 3, 4,
37 2, 3, 4,
38 3, 4,
39 4};
40double Ax5[15] = {-1.0, -2.0, 1.0, 3.5, 912,
41 12.5, -1.0 , -1.3, 50.0, 10.1,
42 13.1, 0.01, 0.5, 9.5, 20.3 };
43
44/* Eigen value and vector */
45
46double e[5] = {0.0};
47double V[25] = {0.0};
48
49#endif /* example_h */
Header for basic types and routine list.