From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Allocated aligned arrays
Date: Sun, 20 Nov 2005 12:21:13 +0100
Date: 2005-11-20T12:21:13+01:00 [thread overview]
Message-ID: <1353624.Z8BU3rgR8I@linux1.krischik.com> (raw)
In-Reply-To: 1132353112.226494.256380@f14g2000cwb.googlegroups.com
ldb wrote:
> However, if I do that, won't that essentially break every current
> implementation of Matrix already in the code? (The code isn't small,
> and it's a very commonly used datatype... ).
>
> Ie, is that going to require me to overload +, -, etc to work with Real
> and Floats, etc?
No. You can convert from and to Float:
http://en.wikibooks.org/wiki/Ada_Programming/Subtypes#Checked_conversion
> And/or functions that pass in a float, currently, will
> need to be overloaded to also work with real, and so on? That seems
> like alot of work just to get a memory allocation that is 8 bytes
> farther north or south. Is there any other way, or I am up a creek?
No again: all standart functions are also available as generic variants.
http://en.wikibooks.org/wiki/Ada_Programming/Mathematical_calculations#Exponential_calculations
Martin
--
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com
next prev parent reply other threads:[~2005-11-20 11:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-18 21:35 Allocated aligned arrays ldb
2005-11-18 22:06 ` jimmaureenrogers
2005-11-18 22:31 ` ldb
2005-11-20 11:21 ` Martin Krischik [this message]
2005-11-18 22:51 ` Simon Wright
2005-11-18 23:03 ` ldb
2005-11-19 7:36 ` Simon Wright
2005-11-19 13:12 ` Jeff Creem
2005-11-23 0:17 ` Randy Brukardt
2005-11-23 14:28 ` ldb
2005-11-24 1:39 ` Frank J. Lhota
2005-11-27 20:49 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox