Skip to content

arity of function 'd*-1-1' #49

Closed Answered by cage2
cage2 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

I think i have found the reason for my mistake: the function prim2 returns a function that accepts an arbitrary number of argument:

https://github.com/themetaschemer/malt/blob/main/nested-tensors/autodiff/B-prims.rkt#L30

and the same will be true for d-1-1 (see the definition above) and d*

https://github.com/themetaschemer/malt/blob/main/nested-tensors/ext-ops/A-scalar-ops.rkt#L83

In my code i was forcing these functions to take only two parameters and this change leads to the error.

I hope this thread could help same other person, by the way!

Bye!
C.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cage2
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants