Skip to content

fix: correct random_matrix dimension parameter#4

Open
artemisTurintech wants to merge 1 commit into
mainfrom
fix-random-matrix-dimensions-6aeec
Open

fix: correct random_matrix dimension parameter#4
artemisTurintech wants to merge 1 commit into
mainfrom
fix-random-matrix-dimensions-6aeec

Conversation

@artemisTurintech

Copy link
Copy Markdown
Owner

Summary

Fix incorrect dimension parameter in random_matrix method that was using n instead of m for column count, causing matrices to always be square rather than the requested dimensions.

Changes

  • Correct random_list call to use m parameter for column dimension
  • Ensures random_matrix(n, m) generates n×m matrices as intended

Testing

  • Verify random_matrix(3, 5) generates 3 rows × 5 columns
  • Verify random_matrix(5, 3) generates 5 rows × 3 columns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant