- Timestamp:
- 01/21/05 15:35:44 (20 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMathWrapper.cc
r244 r249 43 43 { 44 44 SDMath sdm; 45 return SDMemTableWrapper(sdm.quotient(on.getCP(), off.getCP(), preserveContinuum)); 46 } 47 48 49 SDMemTableWrapper SDMathWrapper::simpleBinaryOperate(const SDMemTableWrapper& left, 50 const SDMemTableWrapper& right, 51 const std::string& op) 45 return SDMemTableWrapper(sdm.binaryOperate(on.getCP(), off.getCP(), 46 String("QUOTIENT"), preserveContinuum)); 47 } 48 49 50 SDMemTableWrapper SDMathWrapper::binaryOperate(const SDMemTableWrapper& left, 51 const SDMemTableWrapper& right, 52 const std::string& op) 52 53 { 53 54 SDMath sdm; 54 return SDMemTableWrapper(sdm. simpleBinaryOperate(left.getCP(), right.getCP(),55 String(op)));55 return SDMemTableWrapper(sdm.binaryOperate(left.getCP(), right.getCP(), 56 String(op), False)); 56 57 } 57 58 … … 63 64 // 64 65 SDMath sdm; 65 SDMemTable* pOut = sdm. simpleOperate (*pIn, Float(factor),66 SDMemTable* pOut = sdm.unaryOperate (*pIn, Float(factor), 66 67 Bool(doAll), what); 67 68 *pIn = *pOut; … … 75 76 const uInt what = 0; 76 77 SDMath sdm; 77 return CountedPtr<SDMemTable>(sdm. simpleOperate(*pIn,78 return CountedPtr<SDMemTable>(sdm.unaryOperate(*pIn, 78 79 Float(factor), 79 80 Bool(doAll), what)); … … 88 89 // 89 90 SDMath sdm; 90 SDMemTable* pOut = sdm. simpleOperate (*pIn, Float(offset),91 SDMemTable* pOut = sdm.unaryOperate (*pIn, Float(offset), 91 92 Bool(doAll), what); 92 93 *pIn = *pOut; … … 100 101 const uInt what = 1; 101 102 SDMath sdm; 102 return CountedPtr<SDMemTable>(sdm. simpleOperate(*pIn, Float(offset),103 return CountedPtr<SDMemTable>(sdm.unaryOperate(*pIn, Float(offset), 103 104 Bool(doAll), what)); 104 105 } -
trunk/src/SDMathWrapper.h
r244 r249 49 49 50 50 // Simple binary operations 51 SDMemTableWrapper simpleBinaryOperate (const SDMemTableWrapper& left,52 53 51 SDMemTableWrapper binaryOperate (const SDMemTableWrapper& left, 52 const SDMemTableWrapper& right, 53 const std::string& op); 54 54 55 55 // Multiply
Note:
See TracChangeset
for help on using the changeset viewer.