Skip to content

Commit

Permalink
added matrix function for synapses
Browse files Browse the repository at this point in the history
  • Loading branch information
aquaresima committed Nov 29, 2024
1 parent 20f4889 commit 33f53cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function connect!(c, j, i, μ = 1e-6)
return nothing
end

function matrix(c)
function matrix(c::C) where C <: AbstractConnection
return sparse(c.I, c.J, c.W, length(c.rowptr) - 1, length(c.colptr) - 1)
end

Expand Down

0 comments on commit 33f53cf

Please sign in to comment.