bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] assigning a scalar to several index in a matrix


From: Christian Robert
Subject: [Bug-apl] assigning a scalar to several index in a matrix
Date: Mon, 09 Mar 2015 21:55:00 -0400
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]