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

How do I set up a basis function consisting of three different inputs x, y, z? #268

Closed
Shota123-pixel opened this issue Dec 18, 2023 · 2 comments
Labels
feature (importance: low) Low-importance feature

Comments

@Shota123-pixel
Copy link

Shota123-pixel commented Dec 18, 2023

Feature Request

I would like to set up a basis function consisting of three different inputs x, y, z.
For example, what should we do when we want to set up the following basis functions?

function basis_1
return x + y + 2*z

I have been able to define a basis function with two variables using the binary_operators option, but I am having trouble setting up a basis function with three variables.
If you have any suggestions on how to do this, I'd appreciate it if you could let me know.

@MilesCranmer
Copy link
Owner

Hi @Shota123-pixel,

3-input operators are not yet allowed, but this is on the roadmap. I would recommend splitting the operator into two 2-input operators, like x + y and x + 2*y for your example, which would be composed to x + y + 2*z.

Cheers,
Miles

@MilesCranmer MilesCranmer added the feature (importance: low) Low-importance feature label Dec 19, 2023
@Shota123-pixel
Copy link
Author

Thank you very much for your kind answer!
I will try your recommendation!

MilesCranmer added a commit that referenced this issue Dec 25, 2023
[Diff since v0.22.5](v0.22.5...v0.23.0)

**Merged pull requests:**
- Automatically set heap size hint on workers (#270) (@MilesCranmer)

**Closed issues:**
- How do I set up a basis function consisting of three different inputs x, y, z? (#268)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature (importance: low) Low-importance feature
Projects
None yet
Development

No branches or pull requests

2 participants