From: "Khamenia, Valery" <V.Khamenia@biovision-discovery.de>
To: "'Richard Jones'" <rich@annexia.org>,
"Khamenia, Valery" <V.Khamenia@biovision-discovery.de>
Cc: "'caml-list@inria.fr'" <caml-list@inria.fr>
Subject: AW: [Caml-list] laconical input from a file for arrays and/or mat rices
Date: Mon, 2 Feb 2004 17:03:03 +0100 [thread overview]
Message-ID: <D15343265276D31197BC00A024A6C110774277@EXS_BDC> (raw)
> Can you define the problem some more?
> Do you have lots of existing files in this particular format which
> you'd like to be able to read? Or are you just looking for a reliable
> way to store and load your program data?
i have a lot of "R" and C/C++ code, where (especially at
math prototyping phase) i used text ascii files to I/O
with matrices/arrays.
Now I try to use ocaml a bit. I don't want change old code.
I'd like to use the same format. For example for matrices
I use format like here:
2 3
a b c
d e f
> If you've got a lot of existing files that you must read in, then
> you'll obviously need to write or find a reader for that format.
you are right, and I have posted this code in previous mail.
but i am not happy:
1. with error-proness of my code and
2. that these simple things kill that much time :)
> If you're just looking around for a suitable format for storing and
> loading your data, then locate some existing code which already does
> this and just use that.
no-no. I am already stuck to my old format.
> [...] Another is using input/output matrix functions.
?
any link?
> You could also try converting from the space-separated format to CSV
> format using either a quick Perl script,
I was thinking about perl/python scripts.
> or even using a spreadsheet
> program -- most spreadsheets will let you read in the space-separated
> format and write it out in CSV format, which can then be read using
> the ocaml-csv library.
conversion with spreadsheets is not reproducible and doubles
the number of files. not good.
thanks.
--
vak
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next reply other threads:[~2004-02-02 16:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-02 16:03 Khamenia, Valery [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-02-02 15:33 Khamenia, Valery
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D15343265276D31197BC00A024A6C110774277@EXS_BDC \
--to=v.khamenia@biovision-discovery.de \
--cc=caml-list@inria.fr \
--cc=rich@annexia.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox