IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 24, 2005, 5:38:37 AM (21 years ago)
Author:
eugene
Message:

adding model tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psUtils.c

    r4251 r4375  
    448448}
    449449
     450psVector *psVectorCreate (double lower, double upper, double delta, psElemType type) {
     451
     452  int nBin = (upper - lower) / delta;
     453
     454  psVector *out = psVectorAlloc (nBin, type);
     455 
     456  for (int i = 0; i < nBin; i++) {
     457    out->data.F64[i] = lower + i * delta;
     458  }
     459
     460  return (out);
     461}
Note: See TracChangeset for help on using the changeset viewer.