[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Floating point types in MCL...
- To: info-mcl
- Subject: Re: Floating point types in MCL...
- From: email@example.com (Erann Gat)
- Date: 27 Nov 91 17:32:32 GMT
- Newsgroups: comp.lang.lisp.mcl
- Organization: Jet Propulsion Laboratory
- References: <firstname.lastname@example.org>
- Sender: email@example.com (Usenet)
In article <firstname.lastname@example.org> email@example.com (Bill Andersen) writes:
> Recently I built a toy neural net program using MCL. To my dismay,
>I discovered that all floats are of type double-float in MCL, no
>matter what you declare them. So, every time I run my net, doing many
>floating point additions and multiplications, I *CONS LIKE THERE'S NO
>TOMORROW*!!! For example:
> (time (* 1.0 1.0)) returns something about 16 bytes being allocated.
> This is unacceptable.
Check out FPC, a floating point accelerator program I wrote for MCL.
FPC speeds up floating point math, doesn't cons intermediate results,
and allows destructive floating point operations so you can do float
math without consing at all. FPC is available for anonymous FTP
in the contrib directory at brazil.cambridge.apple.com.