bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] inner product


From: Nick Lobachevsky
Subject: Re: [Bug-apl] inner product
Date: Sat, 18 Mar 2017 07:57:49 +0100

Thank you.

Forgot to mention scalar extension.  When a scalar is supplied as an
argument, it's lengthened to match the inner dimension of the other
argument.
      (3 4⍴'cattrattfatt') +.= 't'
2 2 2
      (3 4⍴'cattrattfatt') +.= 'tttt'
2 2 2
      'a' +.= 3 4⍴'catratfatbat'
1 1 1 1
      'aaa' +.= 3 4⍴'catratfatbat'
1 1 1 1
If both arguments are scalar (a silly case) then it would be same as
if only the second function was used.
      2+.×6
12



reply via email to

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