|
From: | Blake McBride |
Subject: | Re: [Bug-apl] assigning a scalar to several index in a matrix |
Date: | Mon, 9 Mar 2015 21:03:50 -0500 |
I do not understand why assigning a scalar to several index in a matrix fail
Xtian.
ps: there should be a gnuapl users group somewhere where I can ask trivial questions like this one
if not, someone should create one.
]boxing 8
a
┌→─────────────────────┐
↓ │
│ 5 3 0 0 7 0 0 0 0 │
│ 6 0 0 1 9 5 0 0 0 │
│ 0 9 8 0 0 0 0 6 0 │
│ │
│ 8 0 0 0 6 0 0 0 3 │
│ 4 0 0 8 0 3 0 0 1 │
│ 7 0 0 0 2 0 0 0 6 │
│ │
│ 0 6 0 0 0 0 2 8 0 │
│ 0 0 0 4 1 9 0 0 5 │
│ 0 0 0 0 8 0 0 7 9 │
│ │
└──────────────────────┘
⍴a
┌→────┐
│13 22│
└─────┘
a[1;]←'x'
a[1;]←' '
a[1 5 9 13;]←'─'
INDEX ERROR
a[1 5 9 13;]←'─'
^ ^
⍴a
┌→────┐
│13 22│
└─────┘
I do not understand why assigning a scalar to several index in a matrix fail
[Prev in Thread] | Current Thread | [Next in Thread] |