Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dedztbh committed Oct 11, 2020
1 parent eef49de commit 0a2033d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/kotlin/com/dedztbh/kuantum/jblas/matrix/op.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ infix fun CMatrix.kron(B: CMatrix) = CMatrix(rows * B.rows, columns * B.columns)
var r = ibrow
for (rowB in 0 until B.rows) {
// r = ibrow + rowB
C.put(r++, c, a * (B.get(rowB, colB)))
C.put(r++, c, a.mul(B.get(rowB, colB)))
}
++c
}
Expand All @@ -48,6 +48,4 @@ val CNum.magnitude2
val r = real()
val i = imag()
r * r + i * i
}

inline operator fun CNum.times(B: CNum): CNum = mul(B)
}

0 comments on commit 0a2033d

Please sign in to comment.