Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test for inner product (R←Xf.gY) #75

Open
sloorush opened this issue Aug 9, 2024 · 4 comments
Open

Test for inner product (R←Xf.gY) #75

sloorush opened this issue Aug 9, 2024 · 4 comments
Labels
new test New primitives that will be added

Comments

@sloorush
Copy link
Member

sloorush commented Aug 9, 2024

Log for tests for inner product.

Dyalog docs: https://help.dyalog.com/latest/Content/Language/Primitive%20Operators/Inner%20Product.htm

@sloorush
Copy link
Member Author

sloorush commented Aug 9, 2024

Log from Silas' email:

Working on Mantis [21349] and think we're missing some tests for inner
product.
Believe the following should SYNTAX ERROR as f is monadic and does
with vectors as arguments.

       r f a
[1]  ra
[2]  ∇

      2 f.+ 4
6
      1 2 f.+ 4 5
SYNTAX ERROR: The function does not take a left argument
      1 2 f.+4 5
          
      1 f.+4 5
SYNTAX ERROR: The function does not take a left argument
      1 f.+4 5
        

Don't know where you've got to with ullu, but case that definitely should be checked!

@sloorush sloorush added the new test New primitives that will be added label Aug 9, 2024
@bear8642
Copy link

bear8642 commented Aug 9, 2024

Not an issue - due to the fact that 6 ≡ f/6
I.e. reduction of scalar doesn't apply the function, and so no error generated.

@sloorush
Copy link
Member Author

sloorush commented Aug 9, 2024 via email

@bear8642
Copy link

bear8642 commented Aug 9, 2024

yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new test New primitives that will be added
Projects
None yet
Development

No branches or pull requests

2 participants