Mojo function
product
product(src: Buffer[type, size, address_space]) -> SIMD[$0, 1]
Computes the product of the buffer elements.
Args:
- src (
Buffer[type, size, address_space]
): The buffer.
Returns:
The product of the buffer elements.
product[reduce_axis: Int](src: NDBuffer[type, rank, shape, strides, address_space], dst: NDBuffer[type, rank, shape, create_unknown[::Int](), 0])
Computes the product across reduce_axis of an NDBuffer.
Parameters:
- reduce_axis (
Int
): The axis to reduce across.
Args:
- src (
NDBuffer[type, rank, shape, strides, address_space]
): The input buffer. - dst (
NDBuffer[type, rank, shape, create_unknown[::Int](), 0]
): The output buffer.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
😔 What went wrong?