Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 204 | chris | 1 | /******************************************************* |
| 2 | * |
||
| 3 | * Author: Shinsaku Hiura, Hirokazu Kato |
||
| 4 | * |
||
| 5 | * shinsaku@sys.es.osaka-u.ac.jp |
||
| 6 | * kato@sys.im.hiroshima-cu.ac.jp |
||
| 7 | * |
||
| 8 | * Revision: 2.1 |
||
| 9 | * Date: 99/07/16 |
||
| 10 | * |
||
| 11 | *******************************************************/ |
||
| 12 | #include <stdio.h> |
||
| 13 | #include <math.h> |
||
| 14 | #ifndef __APPLE__ |
||
| 15 | #include <malloc.h> |
||
| 16 | #else |
||
| 17 | #include <stdlib.h> |
||
| 18 | #endif |
||
| 19 | #include <AR/matrix.h> |
||
| 20 | |||
| 21 | ARMat *arMatrixAllocTrans(ARMat *source) |
||
| 22 | { |
||
| 23 | ARMat *dest; |
||
| 24 | |||
| 25 | dest = arMatrixAlloc(source->clm, source->row); |
||
| 26 | if( dest == NULL ) return NULL; |
||
| 27 | |||
| 28 | if( arMatrixTrans(dest, source) < 0 ) { |
||
| 29 | arMatrixFree(dest); |
||
| 30 | return NULL; |
||
| 31 | } |
||
| 32 | |||
| 33 | return dest; |
||
| 34 | } |