Skip to content

Commit cc21a72

Browse files
committed
Let CHOLMOD hand memory allocation. Increase test coverage and remove some unused methods.
1 parent 281e230 commit cc21a72

File tree

3 files changed

+900
-683
lines changed

3 files changed

+900
-683
lines changed

base/linalg/symmetric.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ typealias HermOrSym{T,S} Union(Hermitian{T,S}, Symmetric{T,S})
1313
typealias RealHermSymComplexHerm{T<:Real,S} Union(Hermitian{T,S}, Symmetric{T,S}, Hermitian{Complex{T},S})
1414

1515
size(A::HermOrSym, args...) = size(A.data, args...)
16-
getindex(A::Symmetric, i::Integer) = ((q, r) = divrem(i - 1, size(A, 1)); A[r + 1, q + 1])
16+
getindex(A::HermOrSym, i::Integer) = ((q, r) = divrem(i - 1, size(A, 1)); A[r + 1, q + 1])
1717
getindex(A::Symmetric, i::Integer, j::Integer) = (A.uplo == 'U') == (i < j) ? getindex(A.data, i, j) : getindex(A.data, j, i)
1818
getindex(A::Hermitian, i::Integer, j::Integer) = (A.uplo == 'U') == (i < j) ? getindex(A.data, i, j) : conj(getindex(A.data, j, i))
1919
full(A::Symmetric) = copytri!(copy(A.data), A.uplo)

0 commit comments

Comments
 (0)