IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2008, 3:31:01 PM (18 years ago)
Author:
eugene
Message:

big update from eam_branch_20081124 with updates to Opihi math

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/svd.c

    r7917 r20936  
    44 
    55  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;
    78  Vector *Vw;
    8   Buffer *Ma, *Mu, *Mv;
     9  opihi_flt *W;
    910
    1011  if (argc != 6) goto usage;
     
    4243
    4344  /* w is Nx */
    44   Vw[0].Nelements = Nx;
    45   REALLOCATE (Vw[0].elements, float, Nx);
     45  ResetVector (Vw, OPIHI_FLT, Nx);
    4646
    4747  /* pointers to the various arrays */
    4848  A = (float *) Ma[0].matrix.buffer;
    4949  U = (float *) Mu[0].matrix.buffer;
    50   W = (float *) Vw[0].elements;
    5150  V = (float *) Mv[0].matrix.buffer;
     51  W = Vw[0].elements.Flt;
    5252
    5353  /* copy A to U (svdcmp replaces A with U) */
Note: See TracChangeset for help on using the changeset viewer.