@@ -809,15 +809,15 @@ get_perm(FC::FactorComponent) = get_perm(Factor(FC))
809
809
# ########################
810
810
811
811
# Convertion/construction
812
- function convert {T<:VTypes} (:: Type{Dense{T}} , A:: VecOrMat )
812
+ function convert {T<:VTypes} (:: Type{Dense{T}} , A:: StridedVecOrMat )
813
813
d = allocate_dense (size (A, 1 ), size (A, 2 ), stride (A, 2 ), T)
814
814
s = unsafe_load (d. p)
815
815
for i in eachindex (A)
816
816
unsafe_store! (s. x, A[i], i)
817
817
end
818
818
d
819
819
end
820
- function convert (:: Type{Dense} , A:: VecOrMat )
820
+ function convert (:: Type{Dense} , A:: StridedVecOrMat )
821
821
T = promote_type (eltype (A), Float64)
822
822
return convert (Dense{T}, A)
823
823
end
@@ -1464,7 +1464,7 @@ Ac_ldiv_B(L::FactorComponent, B) = ctranspose(L)\B
1464
1464
1465
1465
(\ ){T}(L:: Factor{T} , B:: Dense{T} ) = solve (CHOLMOD_A, L, B)
1466
1466
(\ )(L:: Factor{Float64} , B:: VecOrMat{Complex{Float64}} ) = L\ real (B) + L\ imag (B)
1467
- (\ )(L:: Factor , b:: Vector ) = Vector (L\ convert (Dense{eltype (L)}, b))
1467
+ (\ )(L:: Factor , b:: StridedVector ) = Vector (L\ convert (Dense{eltype (L)}, b))
1468
1468
(\ )(L:: Factor , B:: Matrix ) = Matrix (L\ convert (Dense{eltype (L)}, B))
1469
1469
(\ )(L:: Factor , B:: Sparse ) = spsolve (CHOLMOD_A, L, B)
1470
1470
# When right hand side is sparse, we have to ensure that the rhs is not marked as symmetric.
0 commit comments