From 0a2033d3e2c3466a8c5ce6c7e31b59032217c0a0 Mon Sep 17 00:00:00 2001 From: DEDZTBH Date: Mon, 12 Oct 2020 00:54:23 +0800 Subject: [PATCH] minor fix --- src/main/kotlin/com/dedztbh/kuantum/jblas/matrix/op.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/com/dedztbh/kuantum/jblas/matrix/op.kt b/src/main/kotlin/com/dedztbh/kuantum/jblas/matrix/op.kt index 168e440..1507c90 100644 --- a/src/main/kotlin/com/dedztbh/kuantum/jblas/matrix/op.kt +++ b/src/main/kotlin/com/dedztbh/kuantum/jblas/matrix/op.kt @@ -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 } @@ -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) \ No newline at end of file + } \ No newline at end of file