Change transpose method to take an immutable reference

This commit is contained in:
Palash Tyagi 2025-07-06 00:38:14 +01:00
parent f39c678192
commit 7a68d13eb3

View File

@ -473,7 +473,7 @@ impl<T: Clone + PartialEq> Frame<T> {
/// Returns a new `Matrix` that is the transpose of the current frame's matrix.
pub fn transpose(&mut self) -> Matrix<T> {
pub fn transpose(&self) -> Matrix<T> {
self.matrix.transpose()
}