[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: int* uint* types as indexes
From: |
David Bateman |
Subject: |
Re: int* uint* types as indexes |
Date: |
Sun, 8 Aug 2004 23:25:45 +0200 |
User-agent: |
Mutt/1.4.1i |
How about the attached patch. Not the most efficient as it converts
the int/uint types to NDArrays before then reconverting them to
idx_vectors, but something like this works fine. Doing it directly,
will be a pain, since all of the constructors like
idx_vector::idx_vector(ArrayN<octave_uint64>) will need to be written.
That plus the scalar versions means 16 new constructors in idx-vector.h.
I think I prefer the patch below :-)
Cheers
David
2004-08-08 David Bateman <address@hidden>
* src/ov-intx.h (OCTAVE_VALUE_INT_MATRIX_T::index_vector (void),
OCTAVE_VALUE_INT_SCALAR_T::index_vector (void)): Convert to index
vector
--
David Bateman address@hidden
Motorola CRM +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax)
91193 Gif-Sur-Yvette FRANCE
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
patch.index
Description: Text document