ArrayFire.jl and chol

265 Views Asked by At

I have installed Julia-1.0.0 on a windows 10 box, and then installed ArrayFire.jl. It seems to work (random numbers get generated, and LU factorization seems to work fine). However, chol is claimed to be undefined:

julia> cholesky_fact= chol(a * a')
ERROR: UndefVarError: chol not defined

The same error prevents benchmark.jl from running. The other benchmark (nonnegative matrix factorization) also fails, but with a different error (no surprise):

julia> include("nmf_benchmark.jl")
ERROR: LoadError: UndefVarError: T not defined

Any words of wisdom would be appreciated.

1

There are 1 best solutions below

5
On BEST ANSWER

chol is not defined in julia 1.0.0. It is now in LinearAlgebra under the name cholesky.

As for the chol defined in ArrayFire for AFArrays, since it is no longer able to extend chol function in Julia which does not exist, the package should instead extend the function cholesky or export their chol function. You may want to create an issue on the ArrayFire.jl GitHub repository.

The names of other matrix factorization functions have also been changed.

You should take a look at the corresponding section in the documentation.

Also it would help if you use julia 0.7.0 before migrating to 1.0. Julia 0.7 is feature equivalent to 1.0 but with deprecations.

For your other question, it would be better if you could post a separate question with the corresponding code that generates the error.