bug-apl
[Top][All Lists]
Advanced

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

[Bug-apl] stacked rank operator


From: Xiao-Yong Jin
Subject: [Bug-apl] stacked rank operator
Date: Wed, 24 Aug 2016 16:16:33 -0500

This should work,

      (2 3 5 4⍴⍳24)(+⍤1⍤¯1)(2 4⍴⍳8)
VALUE ERROR
μ-Z__A_LO_RANK_X7_B[4]  →(μ-X7≢¯1)⍴μ-WITH_AXES
                          ^
You could use the axis operator generically

      (2 3 5 4⍴⍳24){⍺+[1,(⍴⍴⍺)⌈⍴⍴⍵]⍵}(2 4⍴⍳8)

but the rank operator seems cleaner.

Best,
Xiao-Yong




reply via email to

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