Skip to content

Conversation

@tylerjereddy
Copy link
Contributor

  • bring the multiply() ufunc up to the array API standard and turn the matching test on in the CI

  • similar to other recent binary ufunc PRs, with the usual drawbacks like broadcasting copies

* bring the `multiply()` ufunc up to the array API standard
and turn the matching test on in the CI

* similar to other recent binary ufunc PRs, with the usual drawbacks
like broadcasting copies

@pk.workunit
def multiply_impl_1d_double(tid: int, viewA: pk.View1D[pk.double], viewB: pk.View1D[pk.double], out: pk.View1D[pk.double], ):
out[tid] = viewA[tid] * viewB[tid % viewB.extent(0)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the modulo operator is leftover from before here--it seems harmless in local testing but should probably be removed (though it may have some merit depending on how broadcasting evolves I suppose..)

@NaderAlAwar NaderAlAwar changed the base branch from develop to main May 24, 2023 20:23
@gliga
Copy link
Contributor

gliga commented Jan 27, 2026

We plan to deprecated views and ufuncs on views: #356

@gliga gliga closed this Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants