2d frictionless contact almost workign.

This commit is contained in:
Jukka Aho
2015-12-29 17:50:41 +02:00
parent e3ffe6188d
commit ac33036bda
4 changed files with 641 additions and 851 deletions
+4
View File
@@ -23,6 +23,10 @@ function SparseMatrixCOO()
SparseMatrixCOO([], [], [])
end
function Base.convert(::Type{SparseMatrixCOO}, A::SparseMatrixCSC)
return SparseMatrixCOO(findnz(A)...)
end
function Base.sparse(A::SparseMatrixIJV, args...)
return sparse(A.I, A.J, A.V, args...)
end