summaryrefslogtreecommitdiff
path: root/Examples/octave/operator
Commit message (Collapse)AuthorAgeFilesLines
* Reenable and fix octave horzcat operator testMarkus Friedrich2022-09-182-6/+8
| | | | | | | | | | This test was disabled with 0a0743f25cc0bbb395d03a27ac62887c8cbee5cf since it fails with octave 7.2.0 The test function horzcat now uses a variable length argument list to fix this. Before octave 7 it seems to be possible to call a N-argument octave function with > N arguments without any error. With octave 7 this seems no longer to be possible which caused the test failure.
* Temporarily remove Octave concatenation test broken in octave-7.2.0William S Fulton2022-09-091-3/+4
|
* Fixed octave version check and enabled VPATH build for check-octave-operator ↵Markus Friedrich2022-01-161-0/+3
| | | | example
* Added a octave test for the concatenation operator.Markus Friedrich2019-11-242-0/+10
| | | | | | | | Swig types can be used by the operators [a,b] or [a;b] if an octave overload functions horzcat.m or vertcat.m are added in a @swig_ref subdirectory. This requires that is_object() (isobject() for octave >= 4.4) returns true for swig types which is ensured by the swig octave runtime.
* Octave: do not dump Octave core in examples/test suite scriptsKarl Wette2017-01-011-0/+5
| | | | | - If Octave segfaults during cleanup, it usually cannot dump its core and therefore just freezes, which hold up e.g Travis build jobs
* octave: map unary functions to __...___ Python-style unary membersKarl Wette2016-02-072-0/+25
| | | | - Only available in Octave 3.8.0 and higher
* octave: recognize Python __float__ numeric conversion operatorKarl Wette2016-02-072-0/+9
|
* Octave: turn on autodoc in examples, so that feature is testedKarl Wette2014-10-041-0/+4
|
* Octave: use common example.mk for examples, patterned after javascriptKarl Wette2014-05-291-16/+2
|
* Allow examples and test-suite to be built out of source treeKarl Wette2014-05-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | - Examples/Makefile.in rules use SRCDIR as the relative source directory - ./config.status replicates Examples/ source directory tree in build directory, and copies each Makefile to build directory, prefixed with a header which sets SRCDIR to source directory - Examples/test-suite/.../Makefile.in set SRCDIR from Autoconf-set srcdir - Examples/test-suite/errors/Makefile.in needs to filter out source directory from SWIG error messages - Lua: embedded interpreters are passed location of run-time test - Python: copy run-time scripts to build directory because of 2to3 conversion; import_packages example copies __init__.py from source directory; test-suite sets SCRIPTDIR to location of run-time tests - Javascript: binding.gyp renamed to binding.gyp.in so that $srcdir can be substituted with SRCDIR; removed './' from require() statements so that NODE_PATH can be used to point Node.js to build directory
* Fixes to Octave examplesKarl Wette2013-05-084-13/+9
| | | | | | | | - rename example modules from "example" to "swigexample", to avoid a warning from shadowing the Octave built-in function "example" - remove deprecated "static" Makefile targets: there is no longer an option to build static Octave modules in the Examples Makefile - emacs whitespace cleanup run on all files
* Octave examples clean target fixed and makefiles use new RUNPIPE and general ↵William S Fulton2013-04-191-7/+6
| | | | consistency tidyup
* Added example of friend operator use to Examples/octave/operator, fixed ↵Xavier Delacour2011-08-313-6/+8
| | | | | | minor bug that causes a panic in octave 3.0.5. Tested examples work for octave 3.0.5, 3.2.4, and 3.4.0. (thanks to Karl Wette) git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12794 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Octave patches for 3.4.0 compatibility, etc. (sf 3387394, thanks for Karl Wette)Xavier Delacour2011-08-083-10/+11
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12774 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Initial commit of Octave module.Xavier Delacour2008-03-014-0/+105
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10290 626c5289-ae23-0410-ae9c-e8d60b6d4f22