Skip to content

Commit be6b091

Browse files
committed
fixed issue in matAlgo13xDD
1 parent 9f4bdaa commit be6b091

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/type/matrix/utils/matAlgo13xDD.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ export const createMatAlgo13xDD = /* #__PURE__ */ factory(name, dependencies, ({
5252
// populate cdata, iterate through dimensions
5353
const cdata = broadcast(adata, bdata, asize, bsize, cf)
5454

55-
if (aIsMatrix) {
56-
const cMatrix = a.createDenseMatrix()
55+
if (aIsMatrix || bIsMatrix) {
56+
const cMatrix = aIsMatrix ? a.createDenseMatrix() : b.createDenseMatrix()
5757
cMatrix._data = cdata.data
5858
cMatrix._size = cdata.size
5959
cMatrix._datatype = dt

0 commit comments

Comments
 (0)