Skip to content
fn

multiply_storages

→Storage
int multiply_storages(const int & a, const int & b, int numel, Dtype dt, Device device)

Element-wise multiplication: returns a * b.

Parameters

a, bconst Storage&
Input buffers (must match numel and dt).
numelstd::size_t
Number of elements.
dtDtype
Element dtype.
deviceDevice
Target device.

Returns

Storage

New storage holding the element-wise product.