Ignore:
Timestamp:
12/27/04 22:14:55 (19 years ago)
Author:
kil064
Message:

Reimplement 'bin' with insitu version as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMathWrapper.h

    r165 r167  
    5656  void scaleInSitu(SDMemTableWrapper& in, casa::Float factor, casa::Bool all)
    5757  {
    58     SDMemTable* sdmt = in.getPtr();
    5958    SDMath::multiplyInSitu(in.getPtr(),factor, all);
    6059  }
     
    6968  void addInSitu(SDMemTableWrapper& in, casa::Float offset, casa::Bool all)
    7069  {
    71     SDMemTable* sdmt = in.getPtr();
    7270    SDMath::addInSitu(in.getPtr(), offset, all);
    7371  }
     
    8583// Bin up
    8684
    87   SDMemTableWrapper bin(const SDMemTableWrapper& in,
    88                         int width) {
    89     return SDMath::bin(in.getCP(), width);
     85  void binInSitu (SDMemTableWrapper& in, int width)
     86  {
     87    SDMath::binInSitu (in.getPtr(), width);
     88  }
     89  SDMemTableWrapper bin(const SDMemTableWrapper& in, int width)
     90  {
     91    return SDMemTableWrapper(SDMath::bin(in.getCP(), width));
    9092  }
    9193
Note: See TracChangeset for help on using the changeset viewer.