Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Is spzeros deprecated for creating sparse matrix in Julialang?

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles