Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distributed matrices and vectors with DistributedArrays.jl #298

Open
vlc1 opened this issue Jun 1, 2021 · 0 comments
Open

Distributed matrices and vectors with DistributedArrays.jl #298

vlc1 opened this issue Jun 1, 2021 · 0 comments

Comments

@vlc1
Copy link

vlc1 commented Jun 1, 2021

I'm trying to use DistributedArrays.jl, but to no avail.

Here is a MWE, where I try to invert a diagonal positive definite matrix using CG :

using LinearAlgebra, IterativeSolvers, DistributedArrays
n = 100
A = Diagonal(drand(n) .^ 2 .+ √eps())
b = drand(n)
cg(A, b)

The error message mentions some ambiguities in the methods definition, and proposes to implement the following method

copyto!(::DistributedArrays.DArray, ::Base.Broadcast.Broadcasted{T, Axes, F, Args} where {T<:Base.Broadcast.AbstractArrayStyle{0}, Axes, F, Args<:Tuple})

Any tips on how to do this would be greatly appreciated. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant