Skip to content

Commit

Permalink
v0.7 upgrade (#12)
Browse files Browse the repository at this point in the history
* julia v0.7

* Upgrade linear algebra to v0.7

* Only activate tests for linear algebra

* v0.7

* Remove builds on v0.6

* Upgrade v0.7

* Activate tests

* Name update

* Add export

* Update v0.7

* Resolve issue with namespace

* Update for v0.7

* Remove v0.6 compat

* v0.7 upgrade
  • Loading branch information
mtanneau authored Sep 19, 2018
1 parent c719dc7 commit cb9544f
Show file tree
Hide file tree
Showing 19 changed files with 786 additions and 641 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ os:
- linux
- osx
julia:
- 0.6
- 0.7
- nightly
notifications:
Expand Down
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
julia 0.6
julia 0.7
MathProgBase 0.5 0.8
35 changes: 33 additions & 2 deletions src/LinearAlgebra/LinearAlgebra.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,36 @@
module LinearAlgebra
module TLPLinearAlgebra

using LinearAlgebra

export factor_normaleq

"""
factor_normal_eqn(A, d)
Compute a Cholesky factorization of `A*D*A'`, where `D=Diag(d)`.
factor_normal_eq!(A, d, F)
Compute a Cholesky factorization of `A*D*A'`, where `D=Diag(d)`, and overwrite
`F` in the process.
"""
function factor_normaleq(
A::AbstractMatrix,
d::AbstractVector
) where{Ta<:Real}
F = LinearAlgebra.cholesky(Symmetric(A*Diagonal(d)*A'))
return F
end

function factor_normaleq!(
A::AbstractMatrix,
d::AbstractVector,
F
) where{Ta<:Real}
# update Cholesky factor
F = LinearAlgebra.cholesky!(F, Symmetric(A*Diagonal(d)*A'))
return F
end

"""
addcolumn!(A, c)
Expand All @@ -15,6 +47,5 @@ Add row `c` to matrix `A`.
addrow!(A::AbstractMatrix, r::AbstractVector) = (vcat(A, r'), size(A, 1) + 1)

include("denseBlockAngular.jl")
include("sparseLinearAlgebra.jl")

end # module
Loading

0 comments on commit cb9544f

Please sign in to comment.