IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 30, 2008, 7:45:21 AM (18 years ago)
Author:
eugene
Message:

modify functions to use both int and flt vectors

File:
1 edited

Legend:

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

    r20839 r20857  
    4242  if ((ovec = SelectVector (argv[4], ANYVECTOR, TRUE)) == NULL) return (FALSE);
    4343
     44  REQUIRE_VECTOR_FLT (xvec, FALSE);
     45  REQUIRE_VECTOR_FLT (yvec, FALSE);
     46  REQUIRE_VECTOR_FLT (svec, FALSE);
     47
    4448  Npts = xvec[0].Nelements;
     49  ResetVector (ovec, OPIHI_FLT, Npts);
     50
    4551  ALLOCATE (dy, opihi_flt, Npts);
    46   REALLOCATE (ovec[0].elements.Flt, opihi_flt, Npts);
    4752
    4853  GET_VAR (par[0], "C0");
     
    5257  Npar = 4;
    5358
     59  // mrqmin takes the inverse variance (do not generate NANs)
    5460  v1 = svec[0].elements.Flt;
    5561  v2 = dy;
Note: See TracChangeset for help on using the changeset viewer.