Skip to content

Commit

Permalink
add something
Browse files Browse the repository at this point in the history
  • Loading branch information
panghui121212@163.com committed Oct 18, 2023
1 parent 4668a1b commit 1b4fa6c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ func main() {

```go
func (sm *SparseMatrix) MatrixMultiplication(other *SparseMatrix) *SparseMatrix {
if sm.rows != other.cols {
panic("sm.rows != other.cols")
if sm.cols != other.rows {
panic("sm.cols != other.rows")
}

// 初始化结果矩阵
Expand Down

0 comments on commit 1b4fa6c

Please sign in to comment.