Skip to content

Commit b849603

Browse files
authored
Merge pull request #46 from tensor4all/terasaki/relax-argument-type-in-_factorize
Use `AbstractMatrix` instead of `Matrix` in the `_factorize` function
2 parents 8c462dc + c643f0d commit b849603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tensortrain.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function tensortrain(tci)
9393
end
9494

9595
function _factorize(
96-
A::Matrix{V}, method::Symbol; tolerance::Float64, maxbonddim::Int
96+
A::AbstractMatrix{V}, method::Symbol; tolerance::Float64, maxbonddim::Int
9797
)::Tuple{Matrix{V},Matrix{V},Int} where {V}
9898
if method === :LU
9999
factorization = rrlu(A, abstol=tolerance, maxrank=maxbonddim)

0 commit comments

Comments
 (0)