JuliaGPU / JuliaGPU/ArrayFire.jl

dot falls back to `LinearAlgebra/src/generic.jl`

Open
#212 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
207
Forks
33
PR merge metrics
No merged PRs in 30d

Description

Hi,

I have another difficulty. It seems `dot` falls back to `LinearAlgebra/src/generic.jl` in both 0.7 and 0.6.4

Can it be fixed by?

`import Base.LinAlg: dot, norm
dot(a::ArrayFire.AFArray,b::ArrayFire.AFArray) = ArrayFire.dot(a,b,UInt32(0),UInt32(0))[1]`

Also I had to extract the first element, it would be better for ArrayFire.dot to return a scalar.

Thank you

Best regards

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.