mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-28 12:37:53 +00:00
modal solver + tie contact works now. dirichlet boundary and mpcs are eliminated properly before solution to get reduced system
This commit is contained in:
+7
-4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user