IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 30, 2008, 11:13:15 AM (18 years ago)
Author:
eugene
Message:

allow functions to use FLT or INT vectors as appropriate; document valid types

File:
1 edited

Legend:

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

    r20839 r20859  
    3030  if ((out = SelectVector (argv[2], ANYVECTOR, TRUE)) == NULL) return (FALSE);
    3131
     32  REQUIRE_VECTOR_FLT (val, FALSE);
     33  REQUIRE_VECTOR_FLT (key, FALSE);
     34
    3235  start = atof (argv[4]);
    3336  end   = atof (argv[5]);
     
    4649  Nbins = (end - start) / delta;
    4750
    48   out[0].Nelements = Nbins;
    49   REALLOCATE (out[0].elements.Flt, opihi_flt, out[0].Nelements);
     51  ResetVector (out, OPIHI_FLT, Nbins);
    5052  bzero (out[0].elements.Flt, sizeof(opihi_flt)*out[0].Nelements);
    5153  if (Normalize) {
Note: See TracChangeset for help on using the changeset viewer.