pub struct TransformationMatrix {
pub matrix: Vec<Vec<i64>>,
pub offset: Vec<i64>,
}Expand description
Transformation matrix for affine scheduling
Fields§
§matrix: Vec<Vec<i64>>Matrix coefficients (row-major)
offset: Vec<i64>Constant vector
Implementations§
Source§impl TransformationMatrix
impl TransformationMatrix
Sourcepub fn interchange(size: usize, i: usize, j: usize) -> Self
pub fn interchange(size: usize, i: usize, j: usize) -> Self
Create loop interchange (swap dimensions i and j)
Sourcepub fn skew(size: usize, i: usize, j: usize, factor: i64) -> Self
pub fn skew(size: usize, i: usize, j: usize, factor: i64) -> Self
Create skewing transformation
Sourcepub fn apply_schedule(&self, schedule: &AffineSchedule) -> AffineSchedule
pub fn apply_schedule(&self, schedule: &AffineSchedule) -> AffineSchedule
Apply to affine schedule
Trait Implementations§
Source§impl Clone for TransformationMatrix
impl Clone for TransformationMatrix
Source§fn clone(&self) -> TransformationMatrix
fn clone(&self) -> TransformationMatrix
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TransformationMatrix
impl RefUnwindSafe for TransformationMatrix
impl Send for TransformationMatrix
impl Sync for TransformationMatrix
impl Unpin for TransformationMatrix
impl UnsafeUnpin for TransformationMatrix
impl UnwindSafe for TransformationMatrix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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