Skip to main content

copy_into_col_major

Function copy_into_col_major 

Source
pub fn copy_into_col_major<T: Copy + Send + Sync + 'static>(
    dst: &mut StridedViewMut<'_, T>,
    src: &StridedView<'_, T>,
) -> Result<()>
Expand description

Copy elements from src to dst, optimized for col-major destination.

Delegates to the centralized permutation-copy dispatch for the actual work.

ยงErrors

The rejection set of that dispatch: StridedError::RankMismatch or StridedError::ShapeMismatch when the views describe different extents, StridedError::OffsetOverflow when the layout cannot be expressed in isize stride arithmetic or a fused extent overflows, and StridedError::NonInjectiveOutputLayout when the destination layout cannot be proven representable and injective. Nothing is written unless validation succeeds.