Diff of /src/ov-mp.h [20b5d7] .. [14981e]  Maximize  Restore

  Switch to side-by-side view

--- a/src/ov-mp.h
+++ b/src/ov-mp.h
@@ -73,13 +73,14 @@
   {
     return mpfr_equal_p (scalar, s.scalar);
   }
-
+  
   int mp_neq_proxy(const octave_mp& s) const
   {
     return !mpfr_equal_p (scalar, s.scalar);
   }
-    
-  octave_value oct_binop_add (const octave_base_value& a1, const octave_base_value& a2);
+  
+  octave_value oct_binop_proxy (const octave_base_value& a1, const octave_base_value& a2, 
+                                int (*func) (mpfr_ptr rop, mpfr_srcptr op1, mpfr_srcptr op2, mpfr_rnd_t rnd));
   
   bool valid_as_scalar_index (void) const
   { 
@@ -94,9 +95,11 @@
   bool valid_as_zero_index (void) const
   { return mpfr_zero_p(scalar); }
 
-  bool is_true (void) const { return (mpfr_regular_p(scalar)); }
+  bool is_true (void) const { return (mpfr_regular_p (scalar)); }
 
-  double double_value (bool = false) const { return mpfr_get_d(scalar, rnd); }
+  double double_value (bool = false) const { return mpfr_get_d (scalar, rnd); }
+  
+  double mp_value (bool = false) const { return 42; }
 
   octave_value hermitian (void) const { return new octave_mp (*this); }
 
@@ -107,7 +110,7 @@
   void print (std::ostream& os, bool pr_as_read_syntax = false) const;
 
   octave_value map (unary_mapper_t umap) const;
-
+  
 private:
   
   mpfr_t scalar;

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks