I am trying to understand how to create a sparse matrix in Julialang. The example project that I am learning in GitHub, I spotted spzeros()
function which I believe it is going to create a sparse matrix. When I test following lines in Julialang terminal, it gave me error.
A = spzeros(20,0)
println(A)
but I got this error:
ERROR: UndefVarError: spzeros not defined
I looked into the documentation and curious how spzeros()
supposed to work in Julialang. Can anyone suggest me how should I create sparse matrix? Any idea? Thanks
Update: I tried SparseArrays(10,0)
but still not working. Why? any idea?
9 posts - 4 participants