Skip to main content

diffsol_tensor_ptr

Function diffsol_tensor_ptr 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn diffsol_tensor_ptr( tensor: *const Tensor, ) -> *const u8
Expand description

Return the raw data pointer stored by a array.

ยงSafety

tensor must be a valid pointer to an array created by this library. The returned pointer is borrowed and remains owned by the array.