We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
gather!
For gather you have the multi-index version
gather
julia> using SparseArray, NNlin julia> s = [1, 2, 3]; julia> t = [2, 3, 1]; julia> A = collect(sparse(s, t, [1.0, 1.0, 1.0], 3, 3)) 3×3 Matrix{Float64}: 0.0 1.0 0.0 0.0 0.0 1.0 1.0 0.0 0.0 julia> w = NNlib.gather(A, s, t) 3-element Vector{Float64}: 1.0 1.0 1.0
For the mutating version gather! instead, the method is missing
w = [0.0, 0.0, 0.0] NNlib.gather!(w, A, s, t) # method ERROR
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For
gather
you have the multi-index versionFor the mutating version
gather!
instead, the method is missingThe text was updated successfully, but these errors were encountered: