blob: 7ee981f4a57d49b1946e9fd812dc57d0742dfc7c (
plain)
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
|
/*******************************************************
*
* Author: Shinsaku Hiura, Hirokazu Kato
*
* shinsaku@sys.es.osaka-u.ac.jp
* kato@sys.im.hiroshima-cu.ac.jp
*
* Revision: 2.1
* Date: 99/07/16
*
*******************************************************/
#include <stdio.h>
#include <math.h>
#include <AR/matrix.h>
int arMatrixDup(ARMat *dest, ARMat *source)
{
int r,c;
if(dest->row != source->row || dest->clm != source->clm) {
return -1;
}
for(r = 0; r < source->row; r++) {
for(c = 0; c < source->clm; c++) {
ARELEM0(dest, r, c) = ARELEM0(source, r, c);
}
}
return 0;
}
|