/* examples/C/ssmfe/hermitian.c - Example code for SPRAL_SSMFE package */ /* Hermitian operator example */ #include "spral.h" #include #include #include #include /* central differences for i d/dx */ void apply_idx(int n, int m, const double complex *x_ptr, double complex *y_ptr) { /* Use "variable-modified types" to simplify matrix indexing */ const double complex (*x)[m][n] = (const double complex (*)[m][n]) x_ptr; double complex (*y)[m][n] = (double complex (*)[m][n]) y_ptr; for(int j=0; j