File: loadlib.mdc

package info (click to toggle)
freemat 4.2%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 141,800 kB
  • ctags: 14,082
  • sloc: ansic: 126,788; cpp: 62,046; python: 2,080; perl: 1,255; sh: 1,146; yacc: 1,019; lex: 239; makefile: 100
file content (31 lines) | stat: -rw-r--r-- 1,133 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

 Usage

The loadlib function allows a function in an external
library to be added to FreeMat dynamically. This interface
is generally to be used as last resort, as the form of the
function being called is assumed to match the internal
implementation. In short, this is not the interface
mechanism of choice. For all but very complicated functions,
the import function is the preferred approach. Thus, only a
very brief summary of it is presented here. The syntax for
loadlib is

    loadlib(libfile, symbolname, functionname, nargin,
  nargout)

where libfile is the complete path to the library to use,
symbolname is the name of the symbol in the library,
functionname is the name of the function after it is
imported into FreeMat (this is optional, it defaults to the
symbolname), nargin is the number of input arguments
(defaults to 0), and nargout is the number of output
arguments (defaults to 0). If the number of (input or
output) arguments is variable then set the corresponding
argument to -1.

* FreeMat_Documentation
* FreeMat_External_Interface
* Generated on Thu Jul 25 2013 17:17:14 for FreeMat by
  doxygen_ 1.8.1.1