Can't initialize sparse matrices in Julia v1.0.1


#1

Hello,

I’m new in julia and I’m using the new version v1.0.1 and working in Juno.

I was just trying to initialize a sparse matrix and I’m getting the following error:

A = sparse([1, 2, 3], [1, 2, 3], [0, 2, 0])
ERROR: UndefVarError: sparse not defined

I just picked a very simple example that is in Manual Julia v1.0.1 just to show my problem.

I have the LinearAlgebra package already installed and precompiled using the commands Pkg.add("Linear Algebra") and using LinearAlgebra.

Any solution for this error? I was searching in many places but whitout success.

Cheers,
Tiago


#2

Sparse functionality has moved to the SparseArrays stdlib.


#3

Thank you very much!

Sorry for the noob question :x
Tiago