fix transpose

This commit is contained in:
alex-s168
2024-06-12 23:26:20 +02:00
parent 877a6f51e3
commit eb073ac469
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ class Matrix<T>(
}
fun transposeCopy(): Matrix<T> =
Matrix(width, height) { x, y -> this[y, x] }
Matrix(height, width) { x, y -> this[y, x] }
fun perfectSquareCopy(): Matrix<T> =
min(width, height).let { wh ->