HF RL Explorer

matrices: fix bug

matrices: fix bug: a task in smol-software-harbor (Harbor dataset). transpose() in matrix.py only works for square matrices: a 2x3 matrix raises IndexError , which also breaks multiplication by a column vector. Fix it (see test transpose rectangular ) and run python3 -m pytest -q .

The task

`transpose()` in `matrix.py` only works for square matrices: a 2x3 matrix raises `IndexError`, which also breaks multiplication by a column vector. Fix it (see `test_transpose_rectangular`) and run `python3 -m pytest -q`.

Part of efederici/smol-software-harbor.