Skip to content

Commit 10cfb93

Browse files
committed
ability to extract raw data from SquareMatrix
1 parent c52e6e5 commit 10cfb93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/matrix.rs

+4
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ impl<T: FloatLike> SquareMatrix<T> {
242242
self.dim
243243
}
244244

245+
pub fn get_raw_data(self) -> SmallVec<[T; 36]> {
246+
self.data
247+
}
248+
245249
fn new_identity(dim: usize) -> Self {
246250
let mut res = Self::new_zeros(dim);
247251
for i in 0..dim {

0 commit comments

Comments
 (0)