]> www.ginac.de Git - cln.git/blobdiff - src/complex/elem/cl_C_zerop.cc
Use paths relative the `src' directory in the #include directives.
[cln.git] / src / complex / elem / cl_C_zerop.cc
index cbb916a23a3573619c99fb0c9ee6282a8cbca9f4..7027030e7b5e990058f4fd5a4407dff10c3cfcd0 100644 (file)
@@ -1,30 +1,34 @@
 // zerop().
 
 // General includes.
-#include "cl_sysdep.h"
+#include "base/cl_sysdep.h"
 
 // Specification.
-#include "cl_complex.h"
+#include "cln/complex.h"
 
 
 // Implementation.
 
-#include "cl_C.h"
-#include "cl_real.h"
+#include "complex/cl_C.h"
+#include "cln/real.h"
 
-cl_boolean zerop (const cl_N& x)
+namespace cln {
+
+bool zerop (const cl_N& x)
 {
        if (realp(x)) {
                DeclareType(cl_R,x);
                return zerop(x);
        } else {
                DeclareType(cl_C,x);
-               // x komplex, teste ob Real- und Imaginärteil beide = 0 sind.
+               // x komplex, teste ob Real- und Imaginärteil beide = 0 sind.
                var const cl_R& a = realpart(x);
                var const cl_R& b = imagpart(x);
                if (zerop(a))
                        if (zerop(b))
-                               return cl_true;
-               return cl_false;
+                               return true;
+               return false;
        }
 }
+
+}  // namespace cln