VectorTensorPair

Struct VectorTensorPair 

Source
pub struct VectorTensorPair<'l, const T: Tu, D: VeScalar, S: Stage, Chip: M, Cluster: M, Slice: M, SplitTime: M, Packet: M, const W: PacketMode = { Way8 }> { /* private fields */ }
Expand description

Pair of tensors that manages both groups together.

Unified operations apply to both groups simultaneously:

  • vector_fxp(), vector_logic(), vector_clip(), etc.
  • Each takes GroupOperand for both groups; None skips the operation for that group

Common operations (FxpToFp, Narrow, Widen, FpToFxp) apply to both sides simultaneously.

After a binary operation (vector_clip_zip, vector_fxp_zip, etc.), the pair is combined into a single VectorTensor with Zipped state.

Each group uses VeTensorData with Group state, which prevents:

  • stash() operations on individual groups
  • Common operations (fxp_to_fp, split, concat, fp_to_fxp) on individual groups

Implementations§

Source§

impl<'l, const T: Tu, S: Stage + CanTransitionTo<Logic>, Chip: M, Cluster: M, Slice: M, SplitTime: M, Packet: M> VectorTensorPair<'l, T, i32, S, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Source

pub fn vector_logic( self, op: LogicBinaryOpI32, group0_operand: impl IntoGroupOperand<i32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, group1_operand: impl IntoGroupOperand<i32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, ) -> VectorTensorPair<'l, T, i32, Logic, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Logic binary operation on both groups simultaneously. Requires Way8 mode.

§Arguments
  • op - The logic binary operation to apply
  • group0_operand - Operand for Group 0. Use () to skip, or i32 for constant
  • group1_operand - Operand for Group 1. Use () to skip, or i32 for constant
§Stage Transition

Both groups transition to stage::Logic regardless of whether operands are provided.

Source

pub fn vector_logic_with_mode( self, op: LogicBinaryOpI32, mode: BinaryArgMode, group0_operand: impl IntoGroupOperand<i32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, group1_operand: impl IntoGroupOperand<i32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, ) -> VectorTensorPair<'l, T, i32, Logic, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Logic binary operation on both groups simultaneously with explicit mode. Requires Way8 mode. In this paired form, BinaryArgMode is interpreted independently inside each group: 0 means that group’s stream and 1 means that group’s operand.

Source§

impl<'l, const T: Tu, S: Stage + CanTransitionTo<Logic>, Chip: M, Cluster: M, Slice: M, SplitTime: M, Packet: M> VectorTensorPair<'l, T, f32, S, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Source

pub fn vector_logic( self, op: LogicBinaryOpF32, group0_operand: impl IntoGroupOperand<f32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, group1_operand: impl IntoGroupOperand<f32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, ) -> VectorTensorPair<'l, T, f32, Logic, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Logic binary operation on both groups simultaneously. Requires Way8 mode.

§Arguments
  • op - The logic binary operation to apply
  • group0_operand - Operand for Group 0. Use () to skip, or f32 for constant
  • group1_operand - Operand for Group 1. Use () to skip, or f32 for constant
§Stage Transition

Both groups transition to stage::Logic regardless of whether operands are provided.

Source

pub fn vector_logic_with_mode( self, op: LogicBinaryOpF32, mode: BinaryArgMode, group0_operand: impl IntoGroupOperand<f32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, group1_operand: impl IntoGroupOperand<f32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, ) -> VectorTensorPair<'l, T, f32, Logic, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Logic binary operation on both groups simultaneously with explicit mode. Requires Way8 mode. In this paired form, BinaryArgMode is interpreted independently inside each group: 0 means that group’s stream and 1 means that group’s operand.

Source§

impl<'l, const T: Tu, S: Stage + CanTransitionTo<Fxp>, Chip: M, Cluster: M, Slice: M, SplitTime: M, Packet: M> VectorTensorPair<'l, T, i32, S, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Source

pub fn vector_fxp( self, op: FxpBinaryOp, group0_operand: impl IntoGroupOperand<i32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, group1_operand: impl IntoGroupOperand<i32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, ) -> VectorTensorPair<'l, T, i32, Fxp, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Fixed-point binary operation on both groups simultaneously. Requires Way8 mode.

§Arguments
  • op - The fixed-point binary operation to apply
  • group0_operand - Operand for Group 0. Use () to skip, or i32 for constant
  • group1_operand - Operand for Group 1. Use () to skip, or i32 for constant
§Stage Transition

Both groups transition to stage::Fxp regardless of whether operands are provided.

§Example
.vector_fxp(FxpBinaryOp::MulInt, 16384, ())  // Apply to group0 only
.vector_fxp(FxpBinaryOp::MulInt, (), 16384)  // Apply to group1 only
.vector_fxp(FxpBinaryOp::MulInt, 16384, 32768)  // Apply to both
Source

pub fn vector_fxp_with_mode( self, op: FxpBinaryOp, mode: BinaryArgMode, group0_operand: impl IntoGroupOperand<i32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, group1_operand: impl IntoGroupOperand<i32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, ) -> VectorTensorPair<'l, T, i32, Fxp, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Fixed-point binary operation on both groups simultaneously with explicit mode. Requires Way8 mode. In this paired form, BinaryArgMode is interpreted independently inside each group: 0 means that group’s stream and 1 means that group’s operand.

Source§

impl<'l, const T: Tu, S: Stage + CanTransitionTo<FxpToFp>, Chip: M, Cluster: M, Slice: M, SplitTime: M, Packet: M> VectorTensorPair<'l, T, i32, S, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Source

pub fn vector_fxp_to_fp( self, int_width: u32, ) -> VectorTensorPair<'l, T, f32, FxpToFp, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Converts i32 to f32 for both groups simultaneously. Requires Way8 mode. This is a common operation that must be applied to both groups.

Source§

impl<'l, const T: Tu, D: VeScalar, S: Stage + CanTransitionTo<Narrow>, Chip: M, Cluster: M, Slice: M, SplitTime: M, Packet: M> VectorTensorPair<'l, T, D, S, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Source

pub fn vector_split<SplitTime2: M, Packet2: M>( self, ) -> VectorTensorPair<'l, T, D, Narrow, Chip, Cluster, Slice, SplitTime2, Packet2, { Way4 }>

Narrow layer (split) operation for both groups simultaneously. Requires Way8 mode.

Takes an 8-element packet in each group, splits it into front 4 + back 4. The factor of 2 goes into SplitTime, output is Way4 with 4-element packets. Output: SplitTime2 = SplitTime × 2, Packet2 = front 4 of Packet (size 4).

Source§

impl<'l, const T: Tu, S: Stage + CanTransitionTo<Fp>, Chip: M, Cluster: M, Slice: M, SplitTime: M, Packet: M> VectorTensorPair<'l, T, f32, S, Chip, Cluster, Slice, SplitTime, Packet, { Way4 }>

Source

pub fn vector_fp_unary( self, op: FpUnaryOp, group0_apply: bool, group1_apply: bool, ) -> VectorTensorPair<'l, T, f32, Fp, Chip, Cluster, Slice, SplitTime, Packet, { Way4 }>

Floating-point unary operation on both groups simultaneously.

§Arguments
  • op - The floating-point unary operation to apply
  • group0_apply - Whether to apply to Group 0
  • group1_apply - Whether to apply to Group 1
Source

pub fn vector_fp_unary_with_mode( self, op: FpUnaryOp, mode: UnaryArgMode, group0_apply: bool, group1_apply: bool, ) -> VectorTensorPair<'l, T, f32, Fp, Chip, Cluster, Slice, SplitTime, Packet, { Way4 }>

Floating-point unary operation on both groups with explicit mode.

Source

pub fn vector_fp_binary( self, op: FpBinaryOp, group0_operand: impl IntoGroupOperand<f32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, group1_operand: impl IntoGroupOperand<f32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, ) -> VectorTensorPair<'l, T, f32, Fp, Chip, Cluster, Slice, SplitTime, Packet, { Way4 }>

Floating-point binary operation on both groups simultaneously.

§Arguments
  • op - The floating-point binary operation to apply
  • group0_operand - Operand for Group 0. Use () to skip
  • group1_operand - Operand for Group 1. Use () to skip
Source

pub fn vector_fp_binary_with_mode( self, op: FpBinaryOp, mode: BinaryArgMode, group0_operand: impl IntoGroupOperand<f32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, group1_operand: impl IntoGroupOperand<f32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, ) -> VectorTensorPair<'l, T, f32, Fp, Chip, Cluster, Slice, SplitTime, Packet, { Way4 }>

Floating-point binary operation on both groups with explicit mode. In this paired form, BinaryArgMode is interpreted independently inside each group: 0 means that group’s stream and 1 means that group’s operand.

Source

pub fn vector_fp_ternary( self, op: FpTernaryOp, group0_operand: impl IntoGroupTernaryOperand<Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, group1_operand: impl IntoGroupTernaryOperand<Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, ) -> VectorTensorPair<'l, T, f32, Fp, Chip, Cluster, Slice, SplitTime, Packet, { Way4 }>

Floating-point ternary operation on both groups simultaneously.

§Arguments
  • op - The floating-point ternary operation to apply
  • group0_operand - Operand for Group 0. Use () to skip, or (f32, f32) for constants
  • group1_operand - Operand for Group 1. Use () to skip, or (f32, f32) for constants
§Example
// Apply ternary op only to group0
pair.vector_fp_ternary(op, (2.0f32, 3.0f32), ())

// Apply to both groups with different operands
pair.vector_fp_ternary(op, (2.0f32, 3.0f32), (4.0f32, 5.0f32))

// With stash as operand0 for group0
pair.vector_fp_ternary(op, (Stash, 3.0f32), ())
Source

pub fn vector_fp_ternary_with_mode( self, op: FpTernaryOp, mode: TernaryArgMode, group0_operand: impl IntoGroupTernaryOperand<Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, group1_operand: impl IntoGroupTernaryOperand<Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, ) -> VectorTensorPair<'l, T, f32, Fp, Chip, Cluster, Slice, SplitTime, Packet, { Way4 }>

Floating-point ternary operation on both groups with explicit mode.

Source§

impl<'l, const T: Tu, S: Stage + CanTransitionTo<FpDiv>, Chip: M, Cluster: M, Slice: M, SplitTime: M, Packet: M> VectorTensorPair<'l, T, f32, S, Chip, Cluster, Slice, SplitTime, Packet, { Way4 }>

Source

pub fn vector_fp_div( self, op: FpDivBinaryOp, group0_operand: impl IntoGroupOperand<f32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, group1_operand: impl IntoGroupOperand<f32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, ) -> VectorTensorPair<'l, T, f32, FpDiv, Chip, Cluster, Slice, SplitTime, Packet, { Way4 }>

Floating-point division on both groups simultaneously.

§Arguments
  • op - The fp div binary operation to apply
  • group0_operand - Operand for Group 0. Use () to skip, or f32 for constant
  • group1_operand - Operand for Group 1. Use () to skip, or f32 for constant
§Stage Transition

Both groups transition to stage::FpDiv regardless of whether operands are provided.

Source

pub fn vector_fp_div_with_mode( self, op: FpDivBinaryOp, mode: BinaryArgMode, group0_operand: impl IntoGroupOperand<f32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, group1_operand: impl IntoGroupOperand<f32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, ) -> VectorTensorPair<'l, T, f32, FpDiv, Chip, Cluster, Slice, SplitTime, Packet, { Way4 }>

Floating-point division on both groups simultaneously with explicit mode. In this paired form, BinaryArgMode is interpreted independently inside each group: 0 means that group’s stream and 1 means that group’s operand.

Source§

impl<'l, const T: Tu, D: VeScalar, S: Stage + CanTransitionTo<Widen>, Chip: M, Cluster: M, Slice: M, SplitTime: M, Packet: M> VectorTensorPair<'l, T, D, S, Chip, Cluster, Slice, SplitTime, Packet, { Way4 }>

Source

pub fn vector_concat<SplitTime2: M, Packet2: M>( self, ) -> VectorTensorPair<'l, T, D, Widen, Chip, Cluster, Slice, SplitTime2, Packet2, { Way8 }>

Widen layer (concat) operation for both groups simultaneously. Requires Way4 mode.

Reverse of split. Takes 4-element packets from 2 consecutive time steps, merges them into one 8-element packet and transitions to Way8. SplitTime2 = SplitTime / 2, Packet2 = Packet combined with factor of 2 from Time.

Source§

impl<'l, const T: Tu, S: Stage + CanTransitionTo<FpToFxp>, Chip: M, Cluster: M, Slice: M, SplitTime: M, Packet: M> VectorTensorPair<'l, T, f32, S, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Source

pub fn vector_fp_to_fxp( self, int_width: u32, ) -> VectorTensorPair<'l, T, i32, FpToFxp, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Converts f32 to i32 for both groups simultaneously. Requires Way8 mode. This is a common operation that must be applied to both groups.

Source§

impl<'l, const T: Tu, S: Stage + CanTransitionTo<Clip>, Chip: M, Cluster: M, Slice: M, SplitTime: M, Packet: M> VectorTensorPair<'l, T, i32, S, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Source

pub fn vector_clip( self, op: ClipBinaryOpI32, group0_operand: impl IntoGroupOperand<i32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, group1_operand: impl IntoGroupOperand<i32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, ) -> VectorTensorPair<'l, T, i32, Clip, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Clip binary operation on both groups simultaneously. Requires Way8 mode.

§Arguments
  • op - The clip binary operation to apply
  • group0_operand - Operand for Group 0. Use () to skip, or i32 for constant
  • group1_operand - Operand for Group 1. Use () to skip, or i32 for constant
§Stage Transition

Both groups transition to stage::Clip regardless of whether operands are provided.

Source

pub fn vector_clip_with_mode( self, op: ClipBinaryOpI32, mode: BinaryArgMode, group0_operand: impl IntoGroupOperand<i32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, group1_operand: impl IntoGroupOperand<i32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, ) -> VectorTensorPair<'l, T, i32, Clip, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Clip binary operation on both groups simultaneously with explicit mode. Requires Way8 mode. In this paired form, BinaryArgMode is interpreted independently inside each group: 0 means that group’s stream and 1 means that group’s operand.

Source§

impl<'l, const T: Tu, S: Stage + CanTransitionTo<Clip>, Chip: M, Cluster: M, Slice: M, SplitTime: M, Packet: M> VectorTensorPair<'l, T, f32, S, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Source

pub fn vector_clip( self, op: ClipBinaryOpF32, group0_operand: impl IntoGroupOperand<f32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, group1_operand: impl IntoGroupOperand<f32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, ) -> VectorTensorPair<'l, T, f32, Clip, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Clip binary operation on both groups simultaneously. Requires Way8 mode.

§Arguments
  • op - The clip binary operation to apply
  • group0_operand - Operand for Group 0. Use () to skip, or f32 for constant
  • group1_operand - Operand for Group 1. Use () to skip, or f32 for constant
§Stage Transition

Both groups transition to stage::Clip regardless of whether operands are provided.

Source

pub fn vector_clip_with_mode( self, op: ClipBinaryOpF32, mode: BinaryArgMode, group0_operand: impl IntoGroupOperand<f32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, group1_operand: impl IntoGroupOperand<f32, Pair<Chip, Pair<Cluster, Pair<Slice, Pair<SplitTime, Packet>>>>>, ) -> VectorTensorPair<'l, T, f32, Clip, Chip, Cluster, Slice, SplitTime, Packet, { Way8 }>

Clip binary operation on both groups simultaneously with explicit mode. Requires Way8 mode. In this paired form, BinaryArgMode is interpreted independently inside each group: 0 means that group’s stream and 1 means that group’s operand.

Source§

impl<'l, const T: Tu, S: Stage + CanTransitionTo<Logic>, Chip: M, Cluster: M, Slice: M, Time: M, Packet: M> VectorTensorPair<'l, T, i32, S, Chip, Cluster, Slice, Time, Packet, { Way8 }>

Source

pub fn vector_logic_zip( self, op: LogicBinaryOpI32, ) -> VectorLogicTensor<'l, T, i32, Chip, Cluster, Slice, Time, Packet, i32, NoTensor, { VeOrder::IntraFirst }, Zipped, { Way8 }>

Binary logic operation merging Group 0 and Group 1. Requires Way8 mode. Result = op(group0, group1), result is placed in Group 1 positions. Returns VectorTensor with Zipped state (filter/stash not available).

Source

pub fn vector_logic_zip_with_mode( self, op: LogicBinaryOpI32, mode: BinaryArgMode, ) -> VectorLogicTensor<'l, T, i32, Chip, Cluster, Slice, Time, Packet, i32, NoTensor, { VeOrder::IntraFirst }, Zipped, { Way8 }>

Binary logic operation merging Group 0 and Group 1 with explicit mode. Requires Way8 mode. In this zipped form, BinaryArgMode uses the two grouped streams directly: 0 means Group 0 and 1 means Group 1.

Source§

impl<'l, const T: Tu, S: Stage + CanTransitionTo<Logic>, Chip: M, Cluster: M, Slice: M, Time: M, Packet: M> VectorTensorPair<'l, T, f32, S, Chip, Cluster, Slice, Time, Packet, { Way8 }>

Source

pub fn vector_logic_zip( self, op: LogicBinaryOpF32, ) -> VectorLogicTensor<'l, T, f32, Chip, Cluster, Slice, Time, Packet, f32, NoTensor, { VeOrder::IntraFirst }, Zipped, { Way8 }>

Binary logic operation merging Group 0 and Group 1. Requires Way8 mode. Result = op(group0, group1), result is placed in Group 1 positions. Returns VectorTensor with Zipped state (filter/stash not available).

Source

pub fn vector_logic_zip_with_mode( self, op: LogicBinaryOpF32, mode: BinaryArgMode, ) -> VectorLogicTensor<'l, T, f32, Chip, Cluster, Slice, Time, Packet, f32, NoTensor, { VeOrder::IntraFirst }, Zipped, { Way8 }>

Binary logic operation merging Group 0 and Group 1 with explicit mode. Requires Way8 mode. In this zipped form, BinaryArgMode uses the two grouped streams directly: 0 means Group 0 and 1 means Group 1.

Source§

impl<'l, const T: Tu, S: Stage + CanTransitionTo<Fxp>, Chip: M, Cluster: M, Slice: M, Time: M, Packet: M> VectorTensorPair<'l, T, i32, S, Chip, Cluster, Slice, Time, Packet, { Way8 }>

Source

pub fn vector_fxp_zip( self, op: FxpBinaryOp, ) -> VectorFxpTensor<'l, T, i32, Chip, Cluster, Slice, Time, Packet, i32, NoTensor, { VeOrder::IntraFirst }, Zipped, { Way8 }>

Binary fxp operation merging Group 0 and Group 1. Requires Way8 mode. Result = op(group0, group1), result is placed in Group 1 positions. Returns VectorTensor with Zipped state (filter/stash not available).

Source

pub fn vector_fxp_zip_with_mode( self, op: FxpBinaryOp, mode: BinaryArgMode, ) -> VectorFxpTensor<'l, T, i32, Chip, Cluster, Slice, Time, Packet, i32, NoTensor, { VeOrder::IntraFirst }, Zipped, { Way8 }>

Binary fxp operation merging Group 0 and Group 1 with explicit mode. Requires Way8 mode. In this zipped form, BinaryArgMode uses the two grouped streams directly: 0 means Group 0 and 1 means Group 1.

Source§

impl<'l, const T: Tu, S: Stage + CanTransitionTo<Fp>, Chip: M, Cluster: M, Slice: M, Time: M, Packet: M> VectorTensorPair<'l, T, f32, S, Chip, Cluster, Slice, Time, Packet, { Way4 }>

Source

pub fn vector_fp_zip( self, op: FpBinaryOp, ) -> VectorFpTensor<'l, T, f32, Chip, Cluster, Slice, Time, Packet, f32, NoTensor, { VeOrder::IntraFirst }, Zipped, { Way4 }>

Binary fp operation merging Group 0 and Group 1. Result = op(group0, group1), result is placed in Group 1 positions. Returns VectorTensor with Zipped state (filter/stash not available).

Source

pub fn vector_fp_zip_with_mode( self, op: FpBinaryOp, mode: BinaryArgMode, ) -> VectorFpTensor<'l, T, f32, Chip, Cluster, Slice, Time, Packet, f32, NoTensor, { VeOrder::IntraFirst }, Zipped, { Way4 }>

Binary fp operation merging Group 0 and Group 1 with explicit mode. In this zipped form, BinaryArgMode uses the two grouped streams directly: 0 means Group 0 and 1 means Group 1.

Source§

impl<'l, const T: Tu, S: Stage + CanTransitionTo<Clip>, Chip: M, Cluster: M, Slice: M, Time: M, Packet: M> VectorTensorPair<'l, T, i32, S, Chip, Cluster, Slice, Time, Packet, { Way8 }>

Source

pub fn vector_clip_zip( self, op: ClipBinaryOpI32, ) -> VectorClipTensor<'l, T, i32, Chip, Cluster, Slice, Time, Packet, i32, NoTensor, { VeOrder::IntraFirst }, Zipped, { Way8 }>

Binary clip operation merging Group 0 and Group 1. Requires Way8 mode. Result = op(group0, group1), result is placed in Group 1 positions. Returns VectorTensor with Zipped state (filter/stash not available).

Source

pub fn vector_clip_zip_with_mode( self, op: ClipBinaryOpI32, mode: BinaryArgMode, ) -> VectorClipTensor<'l, T, i32, Chip, Cluster, Slice, Time, Packet, i32, NoTensor, { VeOrder::IntraFirst }, Zipped, { Way8 }>

Binary clip operation merging Group 0 and Group 1 with explicit mode. Requires Way8 mode. In this zipped form, BinaryArgMode uses the two grouped streams directly: 0 means Group 0 and 1 means Group 1.

Source§

impl<'l, const T: Tu, S: Stage + CanTransitionTo<Clip>, Chip: M, Cluster: M, Slice: M, Time: M, Packet: M> VectorTensorPair<'l, T, f32, S, Chip, Cluster, Slice, Time, Packet, { Way8 }>

Source

pub fn vector_clip_zip( self, op: ClipBinaryOpF32, ) -> VectorClipTensor<'l, T, f32, Chip, Cluster, Slice, Time, Packet, f32, NoTensor, { VeOrder::IntraFirst }, Zipped, { Way8 }>

Binary clip operation merging Group 0 and Group 1. Requires Way8 mode. Result = op(group0, group1), result is placed in Group 1 positions. Returns VectorTensor with Zipped state (filter/stash not available).

Source

pub fn vector_clip_zip_with_mode( self, op: ClipBinaryOpF32, mode: BinaryArgMode, ) -> VectorClipTensor<'l, T, f32, Chip, Cluster, Slice, Time, Packet, f32, NoTensor, { VeOrder::IntraFirst }, Zipped, { Way8 }>

Binary clip operation merging Group 0 and Group 1 with explicit mode. Requires Way8 mode. In this zipped form, BinaryArgMode uses the two grouped streams directly: 0 means Group 0 and 1 means Group 1.

Trait Implementations§

Source§

impl<'l, const T: Tu, D: Debug + VeScalar, S: Debug + Stage, Chip: Debug + M, Cluster: Debug + M, Slice: Debug + M, SplitTime: Debug + M, Packet: Debug + M, const W: PacketMode> Debug for VectorTensorPair<'l, T, D, S, Chip, Cluster, Slice, SplitTime, Packet, W>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'l, const T: Tu, D, S, Chip, Cluster, Slice, SplitTime, Packet, const W: PacketMode> Freeze for VectorTensorPair<'l, T, D, S, Chip, Cluster, Slice, SplitTime, Packet, W>

§

impl<'l, const T: Tu, D, S, Chip, Cluster, Slice, SplitTime, Packet, const W: PacketMode> RefUnwindSafe for VectorTensorPair<'l, T, D, S, Chip, Cluster, Slice, SplitTime, Packet, W>
where S: RefUnwindSafe, D: RefUnwindSafe, Chip: RefUnwindSafe, Cluster: RefUnwindSafe, Slice: RefUnwindSafe, SplitTime: RefUnwindSafe, Packet: RefUnwindSafe,

§

impl<'l, const T: Tu, D, S, Chip, Cluster, Slice, SplitTime, Packet, const W: PacketMode> Send for VectorTensorPair<'l, T, D, S, Chip, Cluster, Slice, SplitTime, Packet, W>
where S: Send, D: Send, Chip: Send, Cluster: Send, Slice: Send, SplitTime: Send, Packet: Send,

§

impl<'l, const T: Tu, D, S, Chip, Cluster, Slice, SplitTime, Packet, const W: PacketMode> Sync for VectorTensorPair<'l, T, D, S, Chip, Cluster, Slice, SplitTime, Packet, W>
where S: Sync, D: Sync, Chip: Sync, Cluster: Sync, Slice: Sync, SplitTime: Sync, Packet: Sync,

§

impl<'l, const T: Tu, D, S, Chip, Cluster, Slice, SplitTime, Packet, const W: PacketMode> Unpin for VectorTensorPair<'l, T, D, S, Chip, Cluster, Slice, SplitTime, Packet, W>
where S: Unpin, D: Unpin, Chip: Unpin, Cluster: Unpin, Slice: Unpin, SplitTime: Unpin, Packet: Unpin,

§

impl<'l, const T: Tu, D, S, Chip, Cluster, Slice, SplitTime, Packet, const W: PacketMode = { Way8 }> !UnwindSafe for VectorTensorPair<'l, T, D, S, Chip, Cluster, Slice, SplitTime, Packet, W>

Blanket Implementations§

§

impl<T> AlignerFor<1> for T

§

type Aligner = AlignTo1<T>

The AlignTo* type which aligns Self to ALIGNMENT.
§

impl<T> AlignerFor<1024> for T

§

type Aligner = AlignTo1024<T>

The AlignTo* type which aligns Self to ALIGNMENT.
§

impl<T> AlignerFor<128> for T

§

type Aligner = AlignTo128<T>

The AlignTo* type which aligns Self to ALIGNMENT.
§

impl<T> AlignerFor<16> for T

§

type Aligner = AlignTo16<T>

The AlignTo* type which aligns Self to ALIGNMENT.
§

impl<T> AlignerFor<16384> for T

§

type Aligner = AlignTo16384<T>

The AlignTo* type which aligns Self to ALIGNMENT.
§

impl<T> AlignerFor<2> for T

§

type Aligner = AlignTo2<T>

The AlignTo* type which aligns Self to ALIGNMENT.
§

impl<T> AlignerFor<2048> for T

§

type Aligner = AlignTo2048<T>

The AlignTo* type which aligns Self to ALIGNMENT.
§

impl<T> AlignerFor<256> for T

§

type Aligner = AlignTo256<T>

The AlignTo* type which aligns Self to ALIGNMENT.
§

impl<T> AlignerFor<32> for T

§

type Aligner = AlignTo32<T>

The AlignTo* type which aligns Self to ALIGNMENT.
§

impl<T> AlignerFor<32768> for T

§

type Aligner = AlignTo32768<T>

The AlignTo* type which aligns Self to ALIGNMENT.
§

impl<T> AlignerFor<4> for T

§

type Aligner = AlignTo4<T>

The AlignTo* type which aligns Self to ALIGNMENT.
§

impl<T> AlignerFor<4096> for T

§

type Aligner = AlignTo4096<T>

The AlignTo* type which aligns Self to ALIGNMENT.
§

impl<T> AlignerFor<512> for T

§

type Aligner = AlignTo512<T>

The AlignTo* type which aligns Self to ALIGNMENT.
§

impl<T> AlignerFor<64> for T

§

type Aligner = AlignTo64<T>

The AlignTo* type which aligns Self to ALIGNMENT.
§

impl<T> AlignerFor<8> for T

§

type Aligner = AlignTo8<T>

The AlignTo* type which aligns Self to ALIGNMENT.
§

impl<T> AlignerFor<8192> for T

§

type Aligner = AlignTo8192<T>

The AlignTo* type which aligns Self to ALIGNMENT.
Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, W> HasTypeWitness<W> for T
where W: MakeTypeWitness<Arg = T>, T: ?Sized,

§

const WITNESS: W = W::MAKE

A constant of the type witness
§

impl<T> Identity for T
where T: ?Sized,

§

const TYPE_EQ: TypeEq<T, <T as Identity>::Type> = TypeEq::NEW

Proof that Self is the same type as Self::Type, provides methods for casting between Self and Self::Type.
§

type Type = T

The same type as Self, used to emulate type equality bounds (T == U) with associated type equality constraints (T: Identity<Type = U>).
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<S> ROExtAcc for S

§

fn f_get<F>(&self, offset: FieldOffset<S, F, Aligned>) -> &F

Gets a reference to a field, determined by offset. Read more
§

fn f_get_mut<F>(&mut self, offset: FieldOffset<S, F, Aligned>) -> &mut F

Gets a muatble reference to a field, determined by offset. Read more
§

fn f_get_ptr<F, A>(&self, offset: FieldOffset<S, F, A>) -> *const F

Gets a const pointer to a field, the field is determined by offset. Read more
§

fn f_get_mut_ptr<F, A>(&mut self, offset: FieldOffset<S, F, A>) -> *mut F

Gets a mutable pointer to a field, determined by offset. Read more
§

impl<S> ROExtOps<Aligned> for S

§

fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Aligned>, value: F) -> F

Replaces a field (determined by offset) with value, returning the previous value of the field. Read more
§

fn f_swap<F>(&mut self, offset: FieldOffset<S, F, Aligned>, right: &mut S)

Swaps a field (determined by offset) with the same field in right. Read more
§

fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Aligned>) -> F
where F: Copy,

Gets a copy of a field (determined by offset). The field is determined by offset. Read more
§

impl<S> ROExtOps<Unaligned> for S

§

fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Unaligned>, value: F) -> F

Replaces a field (determined by offset) with value, returning the previous value of the field. Read more
§

fn f_swap<F>(&mut self, offset: FieldOffset<S, F, Unaligned>, right: &mut S)

Swaps a field (determined by offset) with the same field in right. Read more
§

fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Unaligned>) -> F
where F: Copy,

Gets a copy of a field (determined by offset). The field is determined by offset. Read more
§

impl<T> SelfOps for T
where T: ?Sized,

§

fn eq_id(&self, other: &Self) -> bool

Compares the address of self with the address of other. Read more
§

fn piped<F, U>(self, f: F) -> U
where F: FnOnce(Self) -> U, Self: Sized,

Emulates the pipeline operator, allowing method syntax in more places. Read more
§

fn piped_ref<'a, F, U>(&'a self, f: F) -> U
where F: FnOnce(&'a Self) -> U,

The same as piped except that the function takes &Self Useful for functions that take &Self instead of Self. Read more
§

fn piped_mut<'a, F, U>(&'a mut self, f: F) -> U
where F: FnOnce(&'a mut Self) -> U,

The same as piped, except that the function takes &mut Self. Useful for functions that take &mut Self instead of Self.
§

fn mutated<F>(self, f: F) -> Self
where F: FnOnce(&mut Self), Self: Sized,

Mutates self using a closure taking self by mutable reference, passing it along the method chain. Read more
§

fn observe<F>(self, f: F) -> Self
where F: FnOnce(&Self), Self: Sized,

Observes the value of self, passing it along unmodified. Useful in long method chains. Read more
§

fn into_<T>(self) -> T
where Self: Into<T>,

Performs a conversion with Into. using the turbofish .into_::<_>() syntax. Read more
§

fn as_ref_<T>(&self) -> &T
where Self: AsRef<T>, T: ?Sized,

Performs a reference to reference conversion with AsRef, using the turbofish .as_ref_::<_>() syntax. Read more
§

fn as_mut_<T>(&mut self) -> &mut T
where Self: AsMut<T>, T: ?Sized,

Performs a mutable reference to mutable reference conversion with AsMut, using the turbofish .as_mut_::<_>() syntax. Read more
§

fn drop_(self)
where Self: Sized,

Drops self using method notation. Alternative to std::mem::drop. Read more
§

impl<This> TransmuteElement for This
where This: ?Sized,

§

unsafe fn transmute_element<T>(self) -> Self::TransmutedPtr
where Self: CanTransmuteElement<T>,

Transmutes the element type of this pointer.. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> TypeIdentity for T
where T: ?Sized,

§

type Type = T

This is always Self.
§

fn into_type(self) -> Self::Type
where Self: Sized, Self::Type: Sized,

Converts a value back to the original type.
§

fn as_type(&self) -> &Self::Type

Converts a reference back to the original type.
§

fn as_type_mut(&mut self) -> &mut Self::Type

Converts a mutable reference back to the original type.
§

fn into_type_box(self: Box<Self>) -> Box<Self::Type>

Converts a box back to the original type.
§

fn into_type_arc(this: Arc<Self>) -> Arc<Self::Type>

Converts an Arc back to the original type. Read more
§

fn into_type_rc(this: Rc<Self>) -> Rc<Self::Type>

Converts an Rc back to the original type. Read more
§

fn from_type(this: Self::Type) -> Self
where Self: Sized, Self::Type: Sized,

Converts a value back to the original type.
§

fn from_type_ref(this: &Self::Type) -> &Self

Converts a reference back to the original type.
§

fn from_type_mut(this: &mut Self::Type) -> &mut Self

Converts a mutable reference back to the original type.
§

fn from_type_box(this: Box<Self::Type>) -> Box<Self>

Converts a box back to the original type.
§

fn from_type_arc(this: Arc<Self::Type>) -> Arc<Self>

Converts an Arc back to the original type.
§

fn from_type_rc(this: Rc<Self::Type>) -> Rc<Self>

Converts an Rc back to the original type.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V