bug-apl
[Top][All Lists]
Advanced

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

Re: Different behavior of defined functions and primitive functions in i


From: Dr . Jürgen Sauermann
Subject: Re: Different behavior of defined functions and primitive functions in inner product
Date: Sat, 14 May 2022 13:45:56 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

Hi M,

thanks, fixed in SVN 1553.

Best Regards,
Jürgen


On 5/12/22 8:56 AM, m_misaki@autistici.org wrote:
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]