diff --git a/src/basic.jl b/src/basic.jl index 451566d..d446fbb 100644 --- a/src/basic.jl +++ b/src/basic.jl @@ -308,7 +308,7 @@ function _orthonormal_range_svd!( end _orthonormal_range_svd(A::AbstractMatrix; tol::Union{Real,Nothing} = nothing) = - _orthonormal_range_svd!(deepcopy(A); tol = tol) + _orthonormal_range_svd!(deepcopy(A); tol) function _orthonormal_range_qr(A::SA.AbstractSparseMatrix{T,M}; tol::Union{Real,Nothing} = nothing) where {T<:Number,M} dec = qr(A) @@ -332,7 +332,7 @@ function orthonormal_range( mode == 1 && SA.issparse(A) && throw(ArgumentError("SVD does not work with sparse matrices, use a dense matrix.")) mode == -1 && (mode = SA.issparse(A) ? 0 : 1) - return (mode == 0 ? _orthonormal_range_qr(A; tol = tol) : _orthonormal_range_svd(A; tol = tol)) + return (mode == 0 ? _orthonormal_range_qr(A; tol) : _orthonormal_range_svd(A; tol)) end export orthonormal_range diff --git a/test/basic.jl b/test/basic.jl index 6e80c2d..28850b8 100644 --- a/test/basic.jl +++ b/test/basic.jl @@ -109,6 +109,6 @@ @test collect(n_body_basis(0, 2)) == [I(4)] @test length(collect(n_body_basis(2, 3))) == 27 sb = [I(2), I(2), I(2)] - @test collect(n_body_basis(1, 3; eye = 2I(2), sb = sb)) == [4I(8) for _ in 1:9] + @test collect(n_body_basis(1, 3; eye = 2I(2), sb)) == [4I(8) for _ in 1:9] end end