[PR #1202] [MERGED] Fix incorrect matrix multiplication computation in notebook example #18715

Closed
opened 2026-05-28 22:20:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/harvard-edge/cs249r_book/pull/1202
Author: @adityamulik
Created: 2/25/2026
Status: Merged
Merged: 2/25/2026
Merged by: @profvjreddi

Base: devHead: module_1_doc_fix


📝 Commits (1)

  • e5d8395 The multiplication process example is corrected

📊 Changes

1 file changed (+5 additions, -5 deletions)

View changed files

📝 tinytorch/src/01_tensor/01_tensor.py (+5 -5)

📄 Description

Corrected arithmetic error in matrix multiplication example.

The previous implementation had an incorrect term in the computation of C[1,1]
(second row, second column).
Updated the calculation to correctly follow row × column dot product logic.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/harvard-edge/cs249r_book/pull/1202 **Author:** [@adityamulik](https://github.com/adityamulik) **Created:** 2/25/2026 **Status:** ✅ Merged **Merged:** 2/25/2026 **Merged by:** [@profvjreddi](https://github.com/profvjreddi) **Base:** `dev` ← **Head:** `module_1_doc_fix` --- ### 📝 Commits (1) - [`e5d8395`](https://github.com/harvard-edge/cs249r_book/commit/e5d83952654e6112f90f618b5fe3c0aa24b86ae3) The multiplication process example is corrected ### 📊 Changes **1 file changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `tinytorch/src/01_tensor/01_tensor.py` (+5 -5) </details> ### 📄 Description Corrected arithmetic error in matrix multiplication example. The previous implementation had an incorrect term in the computation of C[1,1] (second row, second column). Updated the calculation to correctly follow row × column dot product logic. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-28 22:20:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/cs249r_book#18715