[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: std in NDArrays
From: |
John W. Eaton |
Subject: |
Re: std in NDArrays |
Date: |
Thu, 26 Aug 2004 10:41:59 -0400 |
On 26-Aug-2004, David Bateman <address@hidden> wrote:
| I'm moving this discussion to the maintainers list..
OK.
| According to John W. Eaton <address@hidden> (on 08/26/04):
| > * bitcmp, bitget, and bitset should work for int64 types (currently
| > they won't because they rely on being able to convert to double
| > and/or perform arithmetic on the values. It would be best to
| > avoid using eval in these functions. Perhaps they should be
| > implemented in C++?
|
| Addressing this point, the only reason the existing bitcmp, bitget and
| bitset functions don't work for uint64 and int64 is lines like
I was really thinking about rewriting these operations in C++ in a way
that would avoid the need to do any evals or funny operations on the
names of the types.
Also, I don't think we should do any arithmetic on octave_int64 types
as long as the rules for those operations are not the same as for the
other octave_intX types because there is no simple way to implement the
saturation rules.
jwe