bug-apl
[Top][All Lists]
Advanced

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

Different behavior of defined functions and primitive functions in inner


From: m_misaki
Subject: Different behavior of defined functions and primitive functions in inner product
Date: Thu, 12 May 2022 06:56:58 +0000
User-agent: Roundcube Webmail

Dear maintainers,

In `)HELP .`, it is mentioned that `Z[i;j] is F/A[i;] G B[;j]`.
However, using defined functions and primitive functions as right operand of inner product may give different results.

      A←3 3⍴⍳9
      ,.≡⍨ A
0 0 0
0 0 0
0 0 0
      ∇Z←L F R
[1] Z←L≡R
[2] ∇
      ,.F⍨ A
 1 0 0  0 0 0  0 0 0
 0 0 0  0 1 0  0 0 0
 0 0 0  0 0 0  0 0 1

It seems that the defined function is applied to each cell of the vector. Similarly, direct function also does.

Thank you for your attention.

M Misaki



reply via email to

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