According to https://www.jsoftware.com/help/dictionary/d211.htm
"A sparse array y may be boolean, integer, floating point, complex, literal, or boxed, ..." and "Sparse literal and boxed arrays not yet implemented." FYI, -- Raul On Fri, Sep 10, 2021 at 1:43 AM Jan-Pieter Jacobs <[email protected]> wrote: > > j902 does do what seems to make sense though: considering both axes, > including the first, are sparse, the boxes should be in a sparse array. > > sa=: 1(<1 1)}1$. 2 2;0 01;00 > sa > 1 1 │ 1 > <@(4&$.)"1 sa > 1 │ ┌─┐ > │ │1│ > │ └─┘ > $.inv <@(4&$.)"1 sa > ┌─┬─┐ > │ │1│ > └─┴─┘ > JVERSION > Engine: j902/j32/android > Release-a: commercial/2020-12-24T11:35:03 > Library: 9.02.08 > Platform: Android 32 (armeabi-v7a) > Installer: unknown > InstallPath: /mnt/sdcard/Android/data/com.jsoftware.j.android/files > Contact: www.jsoftware.com > > I'm a bit baffled by the fact that the sparse element is set as (<0 1$0) > though: > > (<0 1$0) -: 3 $. <@(4&$.)"1 sa > 1 > > But seemingly sparse boxed were not intended to exist in the first place, > as one can't seem to create nor amend one: > 1 $. 1;0;<a: > |nonce error > | 1 $.1;0;<a: > (<1 2)0} <@(4&$.)"1 sa > |nonce error > | (<1 2) 0}<@(4&$.)"1 sa > > Jan-Pieter > > On Thu, Sep 9, 2021, 16:24 Henry Rich <[email protected]> wrote: > > > I think you are right. In 6.02 the leading value was also omitted. It > > appears that sparse rank, which uses a separate code path, does not > > execute the verb on cells that have no non-sparse values. > > > > It is unlikely that I will work on this any time soon. Please add the > > error to the bug list. > > > > Henry Rich > > > > On 9/9/2021 3:40 AM, Igor Zhuravlov wrote: > > > sa=. 1 (< 1 1)} 1 $. 2 2 ; 0 01 ; 00 > > > <@(4&$.)"1 sa > > > +-+ > > > |1| > > > +-+ > > > > > > Shouldn't be the following result instead?: > > > +-+-+ > > > | |1| > > > +-+-+ > > > > > > JVERSION > > > Engine: j903/j64avx2/linux > > > Beta-o: commercial/2021-08-24T19:02:02 > > > Library: 9.03.06 > > > Qt IDE: 1.9.2/5.9.5(5.12.7) > > > Platform: Linux 64 > > > Installer: J903 install > > > InstallPath: /home/jip/j903 > > > Contact: www.jsoftware.com > > > > > > > > > -- > > This email has been checked for viruses by AVG. > > https://www.avg.com > > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
