//! Flip operation for reversing tensor elements along axes.
//!
//! With signed strides, flip is a zero-copy operation that simply negates
//! the stride and adjusts the start offset for each flipped axis.
use HostTensor;
/// Flip tensor elements along specified axes.
///
/// This is a zero-copy operation using negative strides.
// Tests kept here exercise flex-specific behavior: flip is a zero-copy
// stride-only operation in the flex backend, and the test below verifies
// the underlying buffer pointer is shared across the flip. Correctness
// tests for flip along various axes live in
// crates/ruda-backend-tests/tests/tensor/{float,int,bool}/ops/flip.rs and
// run against every backend.