Questions 7
- How do you allocate GSL vectors and matrices?
- Do you need to manually free the memory allocated for your vectors and matrices?
- Which GSL functions can be used to add two gsl-vectors? Hint: there is more than one.
- Which GSL functions can be used to multiply a matrix and a vector?
- Which GSL functions can be used to add two matrices?
- Which GSL functions can be used to multiply two matrices?
- How does one solve a system of linear algebraic equations Ax=b with GSL? Name as many options as possible.
- What does the function
gsl_blas_dgemm
do?
- After you call the GSL's LU decomposition routine on a matrix, is the matrix preserved or destroyed?
- How can you find out the declaration of
struct gsl_odeiv2_system
?
Hints:
#include<gsl/gsl_odeiv2.h>
and gcc -E
;
gsl-config --cflags
and view
.
- How can you sort eigenvalues and eigenvectors?
- How can you obtain the eigenvector corresponding to, say, the lowest eigenvalue?