Skip to content

Conversation

@ammekk
Copy link
Contributor

@ammekk ammekk commented Jul 1, 2021

Added nd array map2 to correspond to existing scala nd array map2 ir. Also used map2 to facilitate writing user facing features hl.nd.maximum and hl.nd.minimum which echo np.maximum and np.minimum.

@typecheck_method(f=func_spec(1, expr_any))
def map(self, f):
"""Transform each element of an NDArray.
"""Applies an element-wise binary operation on an NDArray.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a binary operation for regular map.

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

Successfully merging this pull request may close these issues.

3 participants