Skip to content

Commit 2bd9037

Browse files
Merge pull request #97 from vpuri3/smallfix
small fix
2 parents c0bd6a6 + 5289d94 commit 2bd9037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tensor.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ function outer_mul!(v::AbstractVecOrMat, L::TensorProductOperator, u::AbstractVe
320320
C1 = first(L.cache)
321321

322322
m, _ = size(L)
323+
k = size(u, 2)
323324

324325
if L.outer isa IdentityOperator
325326
c1 = reshape(C1, (m, k))
@@ -333,7 +334,6 @@ function outer_mul!(v::AbstractVecOrMat, L::TensorProductOperator, u::AbstractVe
333334

334335
mi, _ = size(L.inner)
335336
mo, no = size(L.outer)
336-
k = size(u, 2)
337337

338338
if k == 1
339339
V = reshape(v, (mi, mo))

0 commit comments

Comments
 (0)