Content-Type: |
multipart/alternative; boundary=001a11c2e68e50a89004e11ad2d0 |
Sender: |
|
Subject: |
|
From: |
|
Date: |
Tue, 9 Jul 2013 17:27:00 -0400 |
In-Reply-To: |
|
MIME-Version: |
1.0 |
Reply-To: |
|
Parts/Attachments: |
|
|
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]
>>
>>
>
|
|
|