Mercurial > hg > octave-lyh
comparison liboctave/CNDArray.cc @ 9578:7dafdb8b062f
refactor comparison ops implementations
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 27 Aug 2009 11:19:33 +0200 |
parents | 0c72d9284087 |
children | a9b37bae1802 |
comparison
equal
deleted
inserted
replaced
9577:b03062e16c6f | 9578:7dafdb8b062f |
---|---|
1068 } | 1068 } |
1069 | 1069 |
1070 return result; | 1070 return result; |
1071 } | 1071 } |
1072 | 1072 |
1073 NDS_CMP_OPS(ComplexNDArray, std::real, Complex, std::real) | 1073 NDS_CMP_OPS (ComplexNDArray, Complex) |
1074 NDS_BOOL_OPS (ComplexNDArray, Complex) | 1074 NDS_BOOL_OPS (ComplexNDArray, Complex) |
1075 | 1075 |
1076 SND_CMP_OPS(Complex, std::real, ComplexNDArray, std::real) | 1076 SND_CMP_OPS (Complex, ComplexNDArray) |
1077 SND_BOOL_OPS (Complex, ComplexNDArray) | 1077 SND_BOOL_OPS (Complex, ComplexNDArray) |
1078 | 1078 |
1079 NDND_CMP_OPS(ComplexNDArray, std::real, ComplexNDArray, std::real) | 1079 NDND_CMP_OPS (ComplexNDArray, ComplexNDArray) |
1080 NDND_BOOL_OPS (ComplexNDArray, ComplexNDArray) | 1080 NDND_BOOL_OPS (ComplexNDArray, ComplexNDArray) |
1081 | 1081 |
1082 ComplexNDArray& operator *= (ComplexNDArray& a, double s) | 1082 ComplexNDArray& operator *= (ComplexNDArray& a, double s) |
1083 { | 1083 { |
1084 if (a.is_shared ()) | 1084 if (a.is_shared ()) |