6 cos(theta), -sin(theta),
15 gsl_matrix_set_all(m,0.0);
22 gsl_matrix_set_all(m,1.0);
27 double v[2] = { cos(theta), sin(theta)};
35 double eval[n];
val evec[n];
39 fprintf(stderr,
"%s | eval[%d] = %+5.5f evec[%d]= ",
40 s, (
int)j, eval[j],(
int)j);
42 fprintf(stderr,
"%+4.4f ",
egsl_atv(evec[j],i));
43 fprintf(stderr,
" sqrt(eval[%d])=%5.5f \n", (
int)j, sqrt(eval[j]));
void egsl_print_spectrum(const char *s, val v)
val egsl_zeros(size_t rows, size_t columns)
val egsl_ones(size_t rows, size_t columns)
val egsl_alloc(size_t rows, size_t columns)
val egsl_rot(double theta)
val egsl_vFa(size_t rows, const double *)
gsl_matrix * egsl_gslm(val v)
double egsl_atv(val v1, size_t i)
val egsl_vers(double theta)
void egsl_symm_eig(val v, double *eigenvalues, val *eigenvectors)
val egsl_vFda(size_t rows, size_t columns, const double *)