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

Support for tensors #60

Open
mykelk opened this issue Jul 31, 2024 · 2 comments
Open

Support for tensors #60

mykelk opened this issue Jul 31, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@mykelk
Copy link
Collaborator

mykelk commented Jul 31, 2024

This package currently supports vectors and matrices like this:

@satvariable(z[1:5,1:5], Bool)

But, it doesn't currently support higher dimensional tensors. For example, this fails:

@satvariable(z[1:5,1:5,1:5], Bool)
@mykelk
Copy link
Collaborator Author

mykelk commented Jul 31, 2024

In order to support this, I think this function would need to be generalized:
https://github.com/elsoroka/Satisfiability.jl/blob/main/src/smt_macros.jl

@elsoroka
Copy link
Owner

elsoroka commented Aug 4, 2024

I merged the PR! Remaining tasks (that I can take on next week) are to:

  • Add unittests for this functionality
  • Update the documentation to mention it + add your example
  • Add it to the Release Notes page
  • Make a new release

@elsoroka elsoroka added the enhancement New feature or request label Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants