On 29 April 2013 19:40, David Korn <[email protected]> wrote:
> cc: [email protected]
> Subject: Re: [ast-users] enum arrays can not be initalised if dimension > 1
> --------
>
>> I have tried to use enums for reduced matrix calculations but I can't
>> get the initialisation to work. Can someone help, please?
>>
>> enum le_matrix=( neg null pos )
>> compound container
>> le_matrix -a container.m1=( [4][4][4][4][4][4][4][4]=pos )
>> print -v container
>>
>> I would expect that container.m1 is an eight dimensional array but the
>> print -v container gives me a one dimensional array with the wrong
>> value:
>> (
>> le_matrix -a m1=(
>> [4]=neg
>> )
>> )
>>
>> Wendy
>>
>
> This is a bug which will be fixed in the next alpha release.
The output is now
(
le_matrix -a m1=(
typeset -a [4]=(
typeset -a [4]=(
typeset -a [4]=(
typeset -a [4]=(
typeset -a [4]=(
typeset -a [4]=(
typeset -a [4]=(
[4]=pos
)
)
)
)
)
)
)
)
)
which looks correct.
Thank you
Wendy
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users