Skip to main content Module tensor Copy item path Source binary_numeric_tensors Align two numeric tensors for a binary element-wise operation with scalar broadcasting. clamp_u8 Clamp a scalar f64 to the uint8 range [0, 255], rounding to the nearest integer. clamp_u16 Clamp a scalar f64 to the uint16 range [0, 65535], rounding to the nearest integer. clamp_u32 Clamp a scalar f64 to the uint32 range [0, 4294967295], rounding to the nearest integer. coerce_tensor_dtype Cast all elements of a tensor to the target dtype through typed constructors. complex_tensor_element_len Return a complex tensor’s element count, reading exact integer-complex
storage instead of the floating compatibility buffer when present. complex_tensor_into_values_complex64 Consume a complex tensor and return Complex64 values, preserving the fast
path for ordinary complex double tensors. complex_tensor_value_complex64 Return one complex tensor value as Complex64, reading typed integer-complex
storage exactly instead of using the compatibility backing buffer. complex_tensor_values_complex64 Return a complex tensor’s numeric values as Complex64, reading typed integer
real/imaginary storage exactly instead of using the compatibility buffer. default_shape_for Return a canonical 2-D shape for a tensor given its shape slice and element count. dimension_from_value_async Attempt to parse a dimension index from a scalar-like runtime value. dims_from_value_async Attempt to parse a dimension vector from a runtime value asynchronously. element_count Return the total number of elements for a given shape. integer_tensor_dimension_vector Parse every element of a typed integer tensor as a dimension selector without
routing through the tensor’s f64 compatibility backing store. integer_tensor_from_f64_like Converts floating-point values to an exact integer tensor using the
prototype class’s MATLAB assignment semantics. integer_tensor_to_f64 Normalize typed integer tensors to f64 at builtin boundaries that
intentionally compute double-valued numeric/statistical results. is_scalar_complex_tensor Return true when a complex tensor contains exactly one scalar element. is_scalar_tensor Return true when a tensor contains exactly one scalar element. logical_to_tensor Convert a logical array (0/1 bytes) into a numeric tensor. ones Construct an one-filled tensor with the provided shape. ones_with_dtype Construct a one-filled tensor with an explicit dtype flag. parse_dimension Convert an argument into a dimension index (1-based) if possible. scalar_f64_from_value_async Attempt to extract a scalar f64 from a runtime value asynchronously. scalar_integer_value Return an exact integer scalar from a scalar integer value or scalar typed
integer tensor. tensor_element_len tensor_into_host_f64_owned Consume a tensor at a provider API boundary that currently accepts only owned f64 storage. tensor_into_value Convert a Tensor back into a runtime value. tensor_into_values_f64 Consume a tensor and explicitly materialize its authoritative storage in
the f64 computation domain. tensor_value_f64 Read one authoritative numeric tensor value into the f64 computation domain.
Callers that admit integers are responsible for any required exactness check. tensor_values_f64 Materialize a tensor’s authoritative numeric values in the f64 computation domain.
Callers that admit integers are responsible for any required exactness check. tensor_values_f64_cow Return a borrowed view for native double tensors and explicitly materialize
every other numeric class in the f64 computation domain. value_into_tensor Convert a Value into an owned Tensor, defaulting error messages to "sum". value_into_tensor_for Convert a Value into a tensor while customising the builtin name in error messages. value_to_string Attempt to extract a string from a runtime value. value_to_tensor Clone a Value and coerce it into a tensor. zeros Construct a zero-filled tensor with the provided shape. zeros_with_dtype Construct a zero-filled tensor with an explicit dtype flag.