[Jprogramming] Boxing sparse arrays?
Vijay Lulla
vijaylulla at gmail.com
Sat Dec 23 14:47:21 UTC 2017
Knowing that J/APL developers and users are thorough I should have looked
more carefully! Thank you, Martin.
On Sat, Dec 23, 2017 at 9:27 AM, Martin Kreuzer <info at airkreuzer.com> wrote:
> ... and the Dictionary in the Notes section of ($.) says:
> "Sparse literal and boxed arrays not yet implemented. "
> -M
>
> At 2017-12-23 13:35, you wrote:
>
> Hi all,
>> Why can't I box sparse arrays? I was exploring sparse arrays after it
>> came
>> up on the mailing list and was surprised to get a nonce error when I tried
>> to box a sparse error. Using the example given on the dictionary entry
>> for
>> $. to demonstrate the issue:
>>
>> ] d=: (?. 3 4$2) * ?. 3 4$100
>> 0 56 0 6
>> 85 0 0 96
>> 0 0 33 0
>> ] s=: $. d
>> 0 1 │ 56
>> 0 3 │ 6
>> 1 0 │ 85
>> 1 3 │ 96
>> 2 2 │ 33
>> s ; d
>> |nonce error
>> | s ;d
>> <s
>> |nonce error
>> | <s
>> <d
>> ┌───────────┠│ 0 56 0 6│
>> │85 0 0 96│
>> │ 0 0 33 0│
>> └───────────┘
>>
>> I could not find any mention of this nonce error in the dictionary.
>> Please
>> let me know if I have overlooked something obvious. And I am curious how
>> Roger Stokes managed to box sparse arrays in his LJ book.
>>
>> Thanks,
>> Vijay.
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Vijay Lulla, Ph.D.
Assistant Professor,
Dept. of Geography, IUPUI
425 University Blvd, CA-207C.
Indianapolis, IN-46202
vlulla at iupui.edu
<http://vijaylulla.com>
http://vijaylulla.com
More information about the Programming
mailing list