[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: firstname.lastname@example.org (Erann Gat)
- Date: 27 Nov 91 17:32:32 GMT
- Newsgroups: comp.lang.lisp.mcl
- Organization: Jet Propulsion Laboratory
- References: <email@example.com>
- Sender: firstname.lastname@example.org (Usenet)
In article <email@example.com> firstname.lastname@example.org (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.