summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorKarl Wette <karl.wette@ligo.org>2016-02-07 20:20:42 +0100
committerKarl Wette <karl.wette@ligo.org>2016-02-07 20:22:39 +0100
commit290e2d3a5c1195faeeacb110eb64a92f4dc6360e (patch)
tree40a544b15f193a73ca2c2eab9d332cfd123a92a7 /Doc
parent125329466d0572e7aeca247434b91ef1616d81d9 (diff)
downloadswig-290e2d3a5c1195faeeacb110eb64a92f4dc6360e.tar.gz
octave: update manual and CHANGES.current
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Manual/Octave.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/Manual/Octave.html b/Doc/Manual/Octave.html
index efdd751ce..9b9744f65 100644
--- a/Doc/Manual/Octave.html
+++ b/Doc/Manual/Octave.html
@@ -66,6 +66,7 @@ Also, there are a dozen or so examples in the Examples/octave directory, and hun
<p>
As of SWIG 3.0.7, the Octave module is regularly tested with Octave versions 3.2.4, 3.8.1, and 4.0.0.
Use of older Octave versions is not recommended, as these versions are no longer tested with SWIG.
+The SWIG runtime exports the function <tt>swig_octave_prereq()</tt> for checking the version of Octave.
</p>
<H2><a name="Octave_nn3">32.2 Running SWIG</a></H2>
@@ -643,6 +644,15 @@ octave:3&gt; printf("%s\n",a);
octave:4&gt; a.__str__()
4
</pre></div>
+
+<p>
+Similarly, Octave can use the <tt>__float__</tt> method to convert an object to a numeric value.
+</p>
+
+<p>
+Octave 3.8.0 and later versions will also map unary functions X() to the corresponding <tt>__X__</tt> method, where X includes: abs(), acos(), acosh(), angle(), arg(), asin(), asinh(), atan(), atanh(), cbrt(), ceil(), conj(), cos(), cosh(), dawson(), erf(), erfc(), erfcinv(), erfcx(), erfi(), erfinv(), exp(), expm1(), finite(), fix(), floor(), gamma(), imag(), isalnum(), isalpha(), isascii(), iscntrl(), isdigit(), isgraph(), isinf(), islower(), isna(), isnan(), isprint(), ispunct(), isspace(), isupper(), isxdigit(), lgamma(), log(), log10(), log1p(), log2(), real(), round(), roundb(), signbit(), signum(), sin(), sinh(), sqrt(), tan(), tanh(), toascii(), tolower(), toupper()
+</p>
+
<H3><a name="Octave_nn20">32.3.11 C++ templates</a></H3>