Copying matrices - GNU Scientific Library -- Reference Manual
Description: GNU Scientific Library -- Reference Manual

Next: Copying rows and columns, Previous: Creating row and column views, Up: Matrices

#### 8.4.7 Copying matrices

— Function: int gsl_matrix_memcpy (gsl_matrix * dest, const gsl_matrix * src)

> This function copies the elements of the matrix src into the matrix dest. The two matrices must have the same size.

— Function: int gsl_matrix_swap (gsl_matrix * m1, gsl_matrix * m2)

> This function exchanges the elements of the matrices m1 and m2 by copying. The two matrices must have the same size.

The GNU Scientific Library - a free numerical library licensed under the GNU GPL
Back to the GNU Scientific Library Homepage