From help-octave-request at bevo dot che dot wisc dot edu Fri Jan 19 04:55:13 2001 Subject: .oct-files/ library-wrapper From: Daniel Heiserer To: "help-octave at bevo dot che dot wisc dot edu" Date: Fri, 19 Jan 2001 11:54:34 +0100 This is a multi-part message in MIME format. --------------53043FDF34420B29F5793930 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I have some questions according wrapping c/fortran libraries into octave. I have seen the example: (and some others) #include DEFUN_DLD (oregonator, args, , "The `oregonator'.") { ColumnVector dx (3); ColumnVector x = args(0).vector_value (); dx(0) = 77.27 * (x(1) - x(0)*x(1) + x(0) - 8.375e-06*pow (x(0), 2)); dx(1) = (x(2) - x(0)*x(1) - x(1)) / 77.27; dx(2) = 0.161*(x(0) - x(2)); return octave_value (dx); } obviously args is a list or something of the arguments and int nargin=args.length(); takes care of input parsing. How do I know what kind of datatype is args(j)? How do I define multiple output arguments is it the same by just creating a list? retval(1) = a; retval(0) = b; return retval; Did anybody create a mechanism how to automatically wrap whole bunch of libraries into octave using some script? thanks daniel -- Mit freundlichen Gruessen Daniel Heiserer -------------------------------------------------------------- Dipl.-Phys. Daniel Heiserer, BMW AG, Knorrstrasse 147, 80788 Muenchen Abteilung EK-20 Tel.: 089-382-21187, Fax.: 089-382-42820 mailto:daniel dot heiserer at bmw dot de Lageplan Standort FIZ: http://www.stadtplandienst.de/query?ORT=M&STR=Knorrstr.&HNR=147 --------------53043FDF34420B29F5793930 Content-Type: text/x-vcard; charset=us-ascii; name="daniel.heiserer.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Daniel Heiserer Content-Disposition: attachment; filename="daniel.heiserer.vcf" begin:vcard n:Daniel;Heiserer, tel;fax:41696 tel;home:1409782 tel;work:21187 x-mozilla-html:FALSE adr:;;;;;; version:2.1 email;internet:daniel dot heiserer at bmw dot de x-mozilla-cpt:;-3136 fn:Heiserer, Daniel end:vcard --------------53043FDF34420B29F5793930-- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------