fixed dot calc
This commit is contained in:
parent
4881ce5e4d
commit
c7e4ffb07d
|
@ -18,10 +18,10 @@ proc fillMatrix*(matrix: var seq[seq[float]], row, col: int) =
|
|||
|
||||
## calculate dot product
|
||||
proc dot*(matrix1: seq[seq[float]], matrix2: seq[seq[float]]): seq[seq[float]] =
|
||||
let col1: int = matrix1.len
|
||||
let row1: int = matrix1[0].len
|
||||
let col2: int = matrix2.len
|
||||
let row2: int = matrix2[0].len
|
||||
let col1: int = matrix1[0].len
|
||||
let row1: int = matrix1.len
|
||||
let col2: int = matrix2[0].len
|
||||
let row2: int = matrix2.len
|
||||
var col, row: int
|
||||
|
||||
if col1 == row2:
|
||||
|
|
Loading…
Reference in a new issue