IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 25, 2008, 4:51:39 PM (18 years ago)
Author:
eugene
Message:

convert opihi vectors to double type, add option for int type as well

File:
1 edited

Legend:

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

    r7917 r20839  
    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;
     
    4344  /* w is Nx */
    4445  Vw[0].Nelements = Nx;
    45   REALLOCATE (Vw[0].elements, float, Nx);
     46  REALLOCATE (Vw[0].elements.Flt, opihi_flt, Nx);
    4647
    4748  /* pointers to the various arrays */
    4849  A = (float *) Ma[0].matrix.buffer;
    4950  U = (float *) Mu[0].matrix.buffer;
    50   W = (float *) Vw[0].elements;
    5151  V = (float *) Mv[0].matrix.buffer;
     52  W = Vw[0].elements.Flt;
    5253
    5354  /* copy A to U (svdcmp replaces A with U) */
Note: See TracChangeset for help on using the changeset viewer.