MASON-INTEREST-L Archives

July 2013

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Joey Harrison <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Tue, 9 Jul 2013 17:27:00 -0400
Content-Type:
multipart/alternative
Parts/Attachments:
text/plain (778 bytes) , text/html (1729 bytes)
There could be another version of the function:

DoubleGrid2D.replace(double from, double to, double threshold);

Joey

On Tue, Jul 9, 2013 at 12:02 PM, Tony Bigbee <[log in to unmask]> wrote:

> Mark -- Direct equality comparisons between doubles/floats will
> potentially yield unexpected behavior--especially for novice
> programmers--except when comparing cells initialized to zero with non-zero
> values.   Just a thought.
>
>
> On Mon, Jul 8, 2013 at 6:46 PM, Mark Coletti <[log in to unmask]> wrote:
>
>> I'd like, as a convenience, for these member functions:
>>
>> IntGrid2D.replace(int from, int to); // change all values of 'from' to
>> 'to'
>> DoubleGrid2D.replace(double from, double to);
>>
>> (I'd do it myself, but this is outside GeoMason's bailiwick.)
>>
>> --
>> [log in to unmask]
>>
>>
>


ATOM RSS1 RSS2