simoncfr

10 Reputation

2 Badges

10 years, 133 days

MaplePrimes Activity


These are replies submitted by simoncfr

Ah, then a vector seems to be more in line with what I would want. Thanks.

Ah, then a vector seems to be more in line with what I would want. Thanks.

Thanks, this seems very helpful. One additional question: The program in question makes calls like

 

op(2..nops(A),A)

 

to a sub-indexed portion of the list. Again, with Arrays, there doesn't seem to be a convenient way to do this; using something such as

 

foo := Array([1,2,3,4]);
foo[2..4];

 

returns

 

Array(2..4, {2 = 2, 3 = 3, 4 = 4}, datatype = anything, storage = rectangular, order = Fortran_order)

 

and not the sublist that I would like to see. It seems frustrating that the syntax to manipulate lists is very intuitive, but that for Arrays is far more convoluted..

Thanks, this seems very helpful. One additional question: The program in question makes calls like

 

op(2..nops(A),A)

 

to a sub-indexed portion of the list. Again, with Arrays, there doesn't seem to be a convenient way to do this; using something such as

 

foo := Array([1,2,3,4]);
foo[2..4];

 

returns

 

Array(2..4, {2 = 2, 3 = 3, 4 = 4}, datatype = anything, storage = rectangular, order = Fortran_order)

 

and not the sublist that I would like to see. It seems frustrating that the syntax to manipulate lists is very intuitive, but that for Arrays is far more convoluted..

Page 1 of 1