Changeset 20936 for trunk/Ohana/src/opihi/cmd.data/svd.c
- Timestamp:
- Dec 7, 2008, 3:31:01 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/svd.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/svd.c
r7917 r20936 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; … … 42 43 43 44 /* w is Nx */ 44 Vw[0].Nelements = Nx; 45 REALLOCATE (Vw[0].elements, float, Nx); 45 ResetVector (Vw, OPIHI_FLT, Nx); 46 46 47 47 /* pointers to the various arrays */ 48 48 A = (float *) Ma[0].matrix.buffer; 49 49 U = (float *) Mu[0].matrix.buffer; 50 W = (float *) Vw[0].elements;51 50 V = (float *) Mv[0].matrix.buffer; 51 W = Vw[0].elements.Flt; 52 52 53 53 /* copy A to U (svdcmp replaces A with U) */
Note:
See TracChangeset
for help on using the changeset viewer.
