3
<title>Copying matrices - GNU Scientific Library -- Reference Manual</title>
4
<meta http-equiv="Content-Type" content="text/html">
5
<meta name="description" content="GNU Scientific Library -- Reference Manual">
6
<meta name="generator" content="makeinfo 4.8">
7
<link title="Top" rel="start" href="index.html#Top">
8
<link rel="up" href="Matrices.html#Matrices" title="Matrices">
9
<link rel="prev" href="Creating-row-and-column-views.html#Creating-row-and-column-views" title="Creating row and column views">
10
<link rel="next" href="Copying-rows-and-columns.html#Copying-rows-and-columns" title="Copying rows and columns">
11
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
13
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 The GSL Team.
15
Permission is granted to copy, distribute and/or modify this document
16
under the terms of the GNU Free Documentation License, Version 1.2 or
17
any later version published by the Free Software Foundation; with the
18
Invariant Sections being ``GNU General Public License'' and ``Free Software
19
Needs Free Documentation'', the Front-Cover text being ``A GNU Manual'',
20
and with the Back-Cover Text being (a) (see below). A copy of the
21
license is included in the section entitled ``GNU Free Documentation
24
(a) The Back-Cover Text is: ``You have freedom to copy and modify this
25
GNU Manual, like GNU software.''-->
26
<meta http-equiv="Content-Style-Type" content="text/css">
27
<style type="text/css"><!--
28
pre.display { font-family:inherit }
29
pre.format { font-family:inherit }
30
pre.smalldisplay { font-family:inherit; font-size:smaller }
31
pre.smallformat { font-family:inherit; font-size:smaller }
32
pre.smallexample { font-size:smaller }
33
pre.smalllisp { font-size:smaller }
34
span.sc { font-variant:small-caps }
35
span.roman { font-family:serif; font-weight:normal; }
36
span.sansserif { font-family:sans-serif; font-weight:normal; }
42
<a name="Copying-matrices"></a>
43
Next: <a rel="next" accesskey="n" href="Copying-rows-and-columns.html#Copying-rows-and-columns">Copying rows and columns</a>,
44
Previous: <a rel="previous" accesskey="p" href="Creating-row-and-column-views.html#Creating-row-and-column-views">Creating row and column views</a>,
45
Up: <a rel="up" accesskey="u" href="Matrices.html#Matrices">Matrices</a>
49
<h4 class="subsection">8.4.7 Copying matrices</h4>
52
— Function: int <b>gsl_matrix_memcpy</b> (<var>gsl_matrix * dest, const gsl_matrix * src</var>)<var><a name="index-gsl_005fmatrix_005fmemcpy-929"></a></var><br>
53
<blockquote><p>This function copies the elements of the matrix <var>src</var> into the
54
matrix <var>dest</var>. The two matrices must have the same size.
55
</p></blockquote></div>
58
— Function: int <b>gsl_matrix_swap</b> (<var>gsl_matrix * m1, gsl_matrix * m2</var>)<var><a name="index-gsl_005fmatrix_005fswap-930"></a></var><br>
59
<blockquote><p>This function exchanges the elements of the matrices <var>m1</var> and
60
<var>m2</var> by copying. The two matrices must have the same size.
61
</p></blockquote></div>