1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
/**********************************************************************
wn_copy_vect(to_vect,from_vect,len_i)
wn_copy_mat(out_mat,in_mat,len_i,len_j)
**********************************************************************/
/****************************************************************************
COPYRIGHT NOTICE:
The source code in this file is provided free of charge
to the author's consulting clients. It is in the
public domain and therefore may be used by anybody for
any purpose.
AUTHOR:
Will Naylor
****************************************************************************/
#include "wnlib.h"
#include "wnmat.h"
#include "wnary.h"
void wn_copy_vect(to_vect,from_vect,len_i)
double to_vect[],from_vect[];
int len_i;
{
wn_blkcpy((ptr)to_vect,(ptr)from_vect,len_i*wn_sizeof(double));
}
void wn_copy_mat(out_mat,in_mat,len_i,len_j)
double **out_mat,**in_mat;
int len_i,len_j;
{
int i;
for(i=0;i<len_i;++i)
{
wn_copy_vect(out_mat[i],in_mat[i],len_j);
}
}
|