This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Solves Ae x = be | |
# using GC and Diagonal Scaling. | |
# tol is the tolerance. | |
# | |
# | |
function DSCG(Ae::SparseMatrixCSC{Float64,Int64},be::Array{Float64},tol::Float64) | |
# Number of equations | |
const n = size(be,1) |