modal solver + tie contact works now. dirichlet boundary and mpcs are eliminated properly before solution to get reduced system

This commit is contained in:
Jukka Aho
2016-06-22 01:39:28 +03:00
parent c02d510673
commit 67aeddb868
14 changed files with 887 additions and 120 deletions
+7 -4
View File
@@ -147,16 +147,19 @@ Returns
Ordered list of row indices.
"""
function get_nonzero_rows(A::SparseMatrixCSC)
# FIXME: This is probably a very inefficient way to do this.
return sort(unique(rowvals(A)))
end
function get_nonzero_rows(A::SparseMatrixCOO)
function get_nonzero_columns(A::SparseMatrixCSC)
return get_nonzero_rows(transpose(A))
end
function get_nonzero_rows(A::Union{SparseMatrixCOO, Matrix})
return get_nonzero_rows(sparse(A))
end
function get_nonzero_rows(A::Matrix)
return get_nonzero_rows(sparse(A))
function get_nonzero_columns(A::Union{SparseMatrixCOO, Matrix})
return get_nonzero_columns(sparse(A))
end
function size(A::SparseMatrixCOO)