Thank you for explaining the sparse array.  I misread the dictionary of j.  Yes, this is fine:

   A=:1$.2e6 2e6;0 1;2*0
   A=:(<;~1e6) 1:`[`]}A

Date: Tue, 10 Dec 2019 21:58:08 +1100
From: Ben Gorte<[email protected]>
To:[email protected]
Subject: Re: [Jprogramming] Bug?
Message-ID:
        <CANfB6j5KCWN=w1k=ajfddhodvb_ub4oc4qe4vw25ykrhneu...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hi,

What is the empty string in the first sentence supposed to be for, no
sparse axes?
I'm getting:

A=:1$.10 10;''

77 (<3 4) } A

scheck i type

|system error


Is that right or wrong?

Without the ;'' everything is fine, even with very large arrays:

A=:1$.1e8 1e8

]A=:77 (<3 4) } A

3 4 │ 77

Ben

On Tue, 10 Dec 2019 at 15:57, David Lambert<[email protected]>  wrote:

I had expected the following assignment to succeed because (I thought)
this amend form is done in place in beta-s.


     A=:1$.2e6 2e6;'';2*0
     A=:(<;~1e6) 1:`[`]}A
|limit error
|   A=:(<;~1000000)    1:`[`]}A


Use case: AOC December 3.


     JVERSION
Engine: j901/j64avx2/linux
Beta-s: commercial/2019-12-02T11:57:20
Library: 9.01.13
Platform: Linux 64
Installer: unknown
InstallPath: /usr/share/j/9.01
Contact:www.jsoftware.com

----------------------------------------------------------------------
For information about J forums seehttp://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to