Skip to content

Commit

Permalink
Tiny memory save
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjanan committed Oct 5, 2017
1 parent b3e9bdb commit 3a914bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/classical.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ function direct_interpolation(A, T, splitting)
fill!(T.nzval, 1.)
T = A .* T
Pp = rs_direct_interpolation_pass1(T, A, splitting)
Pp = Pp .+ 1
Pp .= Pp .+ 1

Px, Pj, Pp = rs_direct_interpolation_pass2(A, T, splitting, Pp)

# Px .= abs.(Px)
Pj = Pj .+ 1
Pj .= Pj .+ 1

R = SparseMatrixCSC(maximum(Pj), size(A, 1), Pp, Pj, Px)
P = R'
Expand Down
2 changes: 0 additions & 2 deletions src/splitting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ function RS_CF_splitting(S::SparseMatrixCSC, T::SparseMatrixCSC)

lambda[row] == 0 && continue

# assert(lambda[j] > 0);//this would cause problems!

# move j to the beginning of its current interval
lambda_j = lambda[row] + 1
old_pos = node_to_index[row]
Expand Down

0 comments on commit 3a914bf

Please sign in to comment.