octave: update manual and CHANGES.current
This commit is contained in:
parent
125329466d
commit
290e2d3a5c
2 changed files with 19 additions and 0 deletions
|
|
@ -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> printf("%s\n",a);
|
|||
octave:4> 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>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue