Function spdl::core::cpu_buffer¶
Defined in File buffer.h
Function Documentation¶
Create a CPU buffer with specified shape and data type.
- Parameters:
shape – Dimensions of the buffer.
elem_class – Element class (Int, UInt, or Float).
depth – Size of each element in bytes.
storage – Optional pre-allocated storage. If not provided, allocates new storage.
- Returns:
CPUBuffer instance.