Still more enhancement suggestions for APL+Win

General discussions on potential enhancements to the APL+Win system.

Re: Still more enhancement suggestions for APL+Win

Postby Ajay Askoolum » February 25th, 2017, 3:33 am

Re 13 & 14: Unless the left- and right- arguments are conformable AND are both vectors, the Dyalog built-in function does not work.
Code: Select all
      a←1 4⍴2 1 3 4
      b←6 2 10 0 10
      a∩b
RANK ERROR
      a∩b
     ∧
I think that a user-defined function is more expedient than a built in function in that the developer can control both the conformance of the arguments and the rank/shape of the result.
Ajay Askoolum
 
Posts: 636
Joined: February 22nd, 2007, 2:16 am
Location: United Kingdom

Re: Still more enhancement suggestions for APL+Win

Postby Davin Church » February 25th, 2017, 11:39 am

Ajay Askoolum wrote:I think that a user-defined function is more expedient than a built in function in that the developer can control both the conformance of the arguments and the rank/shape of the result.

Since Union and Intersection are mathematically "set" operations, and sets are just lists of objects, I can't think why you'd want these defined for anything but vectors (and scalars). I can't think of any reasonable meaning or procedure for using these with matrices. Even if you wanted them done line-by-line you could split it into a vector of vectors for eaching and mix them back together again in-line at least as easily as building a separate function.
Davin Church
 
Posts: 394
Joined: February 24th, 2007, 1:46 am

Previous

Return to APL+Win Wish-List

Who is online

Users browsing this forum: No registered users and 0 guests

cron