Mixed views on mix

How to move APL code to Dyalog

Mixed views on mix

Postby sjt on Thu Apr 02, 2015 10:01 am

A little startled to discover mix appears to have different definitions in Dyalog and APL+Win and APLX. (A long-standing divergence from APL2?)

The rule appears to be the width of the result is in Dyalog and in APL+Win and APLX.

Ugly migration issue, I fear. Thoughts on handling it?
sjt
 
Posts: 21
Joined: Fri Nov 05, 2010 6:26 am

Re: Mixed views on mix

Postby DanB|Dyalog on Thu Apr 02, 2015 8:12 pm

Did you mean ⍴↑⍴¨V? (⍴↑⍴V would be ,1)
Since ⍴ will return an 0 or 1 element for each shouldn't the result be a 5x1?
DanB|Dyalog
 

Re: Mixed views on mix

Postby sjt on Tue Apr 07, 2015 9:04 am

Oops. No (typo) I mean:
sjt
 
Posts: 21
Joined: Fri Nov 05, 2010 6:26 am

Re: Mixed views on mix

Postby Phil Last on Tue Apr 07, 2015 9:26 am

User avatar
Phil Last
 
Posts: 460
Joined: Thu Jun 18, 2009 6:29 pm

Re: Mixed views on mix

Postby sjt on Tue Apr 07, 2015 11:17 am

To. (You crazy?)
sjt
 
Posts: 21
Joined: Fri Nov 05, 2010 6:26 am

Re: Mixed views on mix

Postby Jay|Dyalog on Wed Apr 08, 2015 8:20 am

Jay|Dyalog
 
Posts: 16
Joined: Mon Aug 09, 2010 10:45 am

Re: Mixed views on mix

Postby sjt on Wed Apr 08, 2015 11:56 am

Thanks to all for corrections and comments.

Any thoughts on how to deal with this difference when migrating to Dyalog?
sjt
 
Posts: 21
Joined: Fri Nov 05, 2010 6:26 am

Re: Mixed views on mix

Postby Phil Last on Wed Apr 08, 2015 2:36 pm

If you really want it to go on doing that after migration then

OK for mix of vectors and scalars but length error for situation mentioned by Jay. Could be worked in.
User avatar
Phil Last
 
Posts: 460
Joined: Thu Jun 18, 2009 6:29 pm


Return to Migrating from other Systems

Who is online

Users browsing this forum: No registered users and 1 guest