summaryrefslogtreecommitdiff
path: root/include/im_complex.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/im_complex.h')
-rw-r--r--include/im_complex.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/im_complex.h b/include/im_complex.h
index 2ac4d92..1328dd5 100644
--- a/include/im_complex.h
+++ b/include/im_complex.h
@@ -54,6 +54,26 @@ inline int operator <= (const imcfloat& C, const float& F)
return ((F <= C.real) && (0 <= C.imag));
}
+inline int operator < (const imcfloat& C1, const imcfloat& C2)
+{
+ return ((C1.real < C2.real) && (C1.imag < C2.imag));
+}
+
+inline int operator < (const imcfloat& C, const float& F)
+{
+ return ((F < C.real) && (0 < C.imag));
+}
+
+inline int operator > (const imcfloat& C1, const imcfloat& C2)
+{
+ return ((C1.real > C2.real) && (C1.imag > C2.imag));
+}
+
+inline int operator > (const imcfloat& C, const float& F)
+{
+ return ((F > C.real) && (0 > C.imag));
+}
+
inline imcfloat operator + (const imcfloat& C1, const imcfloat& C2)
{
return imcfloat(C1.real + C2.real, C1.imag + C2.imag);