to_shape_assume_contig

Function to_shape_assume_contig 

Source
pub fn to_shape_assume_contig<R, T, B, D, D2>(
    tensor: &TensorBase<Storage<R, T, B>, D>,
    shape: D2,
) -> TensorBase<Storage<DataRef<'_, <B as DeviceRawAPI<T>>::Raw>, T, B>, D2>
where D: DimAPI, D2: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T>,
Expand description

Assuming contiguous array, reshapes an array without changing its data.

This function may return c-contiguous or f-contiguous array depending on crate feature f_prefer.

ยงSee also

Python array API standard: reshape