Summary
In this chapter we learned:
About
tic
andtoc
.How you can optimize your Octave code.
To use the function macro
DEFUN_DLD
.About the most common high-level classes in the Octave C++ library like
Matrix, ColumnVector
, andSparseMatrix
.To use the
feval
C++ function in order to call user-supplied functions.How to access global variables (defined in the Octave work space) inside your C++ function.
That you should use the C++ functionality that comes with the library, that is, you should also vectorize your C++ code.
How you can optimize your C++ code by accessing the data stored in the classes directly.
This chapter concludes the book. The book is meant to give you an introduction to Octave and you should now be able to move on and exploit the more advanced features of Octave. I recommend that you look through the official Octave manual where most of Octave's functionality is described in detail. If you have questions or problems, browse through the posts listed on the usergroup web page to...