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

Working with Vectors and Matrixes #21

Open
penacristian opened this issue May 13, 2019 · 1 comment
Open

Working with Vectors and Matrixes #21

penacristian opened this issue May 13, 2019 · 1 comment

Comments

@penacristian
Copy link

Are there any plans for vectors/matrixes compatibility?
making this work:
sin([1, 2, 3])
--> [0.8414, 0.9092, 0.1411]

Same for matrixes. Basically changing evaluate() -> Double to either evaluate() -> T or evaluate() -> [Double]

@nicklockwood
Copy link
Owner

@penacristian you should be able to implement this yourself currently by providing custom operator implementations. The problem with making it part of the standard library is that + is currently used as a concatenate operator when dealing with arrays, so changing it to a memberwise addition would be a significant breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants