From help-octave-request at bevo dot che dot wisc dot edu Fri Jan 21 08:08:38 2000 Subject: external data-handling From: Daniel Heiserer To: "help-octave at bevo dot che dot wisc dot edu" Date: Fri, 21 Jan 2000 15:08:00 +0100 This is a multi-part message in MIME format. --------------11F505DACEAC48D6BB9A0AF1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, an additional question to the handling of external data with octave. I have many huge matrices I cannot keep in core. But I want to have them available THE SAME WAY AS THEY ARE IN CORE What I think how it works: ---------------------- Everytime octave accesses data, like passing it to a function or whatever at the very end it somehow has to be passed to a build in function. At that moment, the function has to know, where the data starts and what kind of data it is. e.g. pointer in core, some info about the datablock ....... RIGHT? What I think it could work with less coding effort: -------------------------------------------------- Wouldn't it be quite easy to lets say define some scratch directory /tmp/octave-2132312 were octave keeps big data. The only thing it does then, except passing a memory pointer to a function is, that it passes a file-identifier to the function. After the function is finished the file is closed again and the result(s) of the function are stored in the scratch directory. Or octave reads the data, passes it to the function in the same way it does right now and saves the result on disk. Which means, every time octave is not inside a build-in function the memory is almost empty. Of course to make this attempt shine one should be able to have some parameters to define how much is put on the disk and how much is in memory and .... The whole file-system could work as a sort of a database.... Wouldn't it be just another "method" of passing data to a function? Thanks Daniel --------------11F505DACEAC48D6BB9A0AF1 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, x-mozilla-html:FALSE version:2.1 email;internet:daniel dot heiserer at bmw dot de tel;fax:41696 tel;home:1409782 tel;work:21187 x-mozilla-cpt:;0 fn:Heiserer, Daniel end:vcard --------------11F505DACEAC48D6BB9A0AF1-- ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------