-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fix for issue 191 #196
Fix for issue 191 #196
Conversation
concatenate() should handle scalars
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs tests and a release note.
"stack", | ||
"sqrt", | ||
"where", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"sqrt",
"stack",
"where",
@@ -516,6 +532,40 @@ def multiply(x1: ArraySymbol, x2: ArraySymbol, *xi: ArraySymbol, | |||
raise RuntimeError("implementated by the op() decorator") | |||
|
|||
|
|||
def stack(xi: collections.abc.Iterable): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can apply for any number of dimensions, not just 0d. If we want to simplify, we could implement vstack
instead, so it's always concatenating along the 1st axis. But I am guessing the stack
isn't so bad.
Also -> ArraySymbol
for the output typing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah good points, will fix
concatenate() should handle scalars