MCPcopy Create free account
hub / github.com/PerroEngine/Perro / transpose

Method transpose

perro_source/core/perro_structs/src/structs/matrix/mod.rs:1017–1030  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1015
1016 #[inline]
1017 pub fn transpose(&mut self) -> &mut Self
1018 where
1019 T: Copy + Default,
1020 {
1021 static_assert_square::<ROWS, COLS>();
1022 for r in 0..ROWS {
1023 for c in (r + 1)..COLS {
1024 let tmp = self.0[r][c];
1025 self.0[r][c] = self.0[c][r];
1026 self.0[c][r] = tmp;
1027 }
1028 }
1029 self
1030 }
1031
1032 #[inline]
1033 pub fn mul_generic<const K: usize>(self, rhs: Matrix<COLS, K, T>) -> Matrix<ROWS, K, T>

Callers 8

transposedMethod · 0.80
load_bytes_implFunction · 0.80
parse_audioFunction · 0.80
gltf_to_panim_commandFunction · 0.80
dev_web_commandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected