- Timestamp:
- Nov 25, 2008, 4:51:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20081124/Ohana/src/opihi/cmd.data/svd.c
r7917 r20839 4 4 5 5 int i, Nx, Ny, status; 6 float *in, *out, *A, *U, *W, *V; 6 float *in, *out, *A, *U, *V; 7 Buffer *Ma, *Mu, *Mv; 7 8 Vector *Vw; 8 Buffer *Ma, *Mu, *Mv;9 opihi_flt *W; 9 10 10 11 if (argc != 6) goto usage; … … 43 44 /* w is Nx */ 44 45 Vw[0].Nelements = Nx; 45 REALLOCATE (Vw[0].elements , float, Nx);46 REALLOCATE (Vw[0].elements.Flt, opihi_flt, Nx); 46 47 47 48 /* pointers to the various arrays */ 48 49 A = (float *) Ma[0].matrix.buffer; 49 50 U = (float *) Mu[0].matrix.buffer; 50 W = (float *) Vw[0].elements;51 51 V = (float *) Mv[0].matrix.buffer; 52 W = Vw[0].elements.Flt; 52 53 53 54 /* copy A to U (svdcmp replaces A with U) */
Note:
See TracChangeset
for help on using the changeset viewer.
