[Pkg-octave-commit] [SCM] octave-symbolic branch, master, updated. a718b53403d9f164f8c2a3df521385a01d28a11b

bensapp bensapp at 416fae20-06d0-4450-9b69-c6c34d4b5f03
Mon Jan 3 03:40:19 UTC 2011


The following commit has been merged in the master branch:
commit 9c98f0288e0010db614f04c5ca90bd6722c11f6f
Author: bensapp <bensapp at 416fae20-06d0-4450-9b69-c6c34d4b5f03>
Date:   Mon Mar 4 18:42:02 2002 +0000

    Added new constructors so we can have a more general macro define how ex_matrix
    type interects with other "scalar"(any thing not a matrix) types.
    
    
    git-svn-id: https://octave.svn.sourceforge.net/svnroot/octave/trunk/octave-forge/main/symbolic@148 416fae20-06d0-4450-9b69-c6c34d4b5f03

diff --git a/ov-ex.h b/ov-ex.h
index 0027ee9..c5875be 100644
--- a/ov-ex.h
+++ b/ov-ex.h
@@ -48,6 +48,16 @@ public:
       x = expression;
     }
   
+  octave_ex(Complex z)
+    {
+      x = z.real () + GiNaC::I*z.imag ();
+    }
+
+  octave_ex(double d)
+    {
+      x = d;
+    }
+
   ~octave_ex() {}
   
   octave_ex& operator=(const octave_ex&);

-- 
octave-symbolic



More information about the Pkg-octave-commit mailing list