Blitz logo

Blitz Support :

From: Xianlian Zhou (alex.xl.zhou_at_[hidden])
Date: 2004-12-11 15:05:43


Hi,

Does anyone know how to make a nonuniform subarray?

For a simple example:
        Array<int,1> A(3),B(5);
        A=0;
        B=1,2,3,4,5;
         How could I define a nonuniform idex such as {1,2,4};
and make A=B({1,2,4}) ?

The Range object only represent a set of uniform indices, and the
array indeirction require the lhs and rhs arrays must be the same
shape;

Alex Zhou