You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But as shown the operation using AxisArray returns an Array. Looking into the methods involved in these operations:
julia> y = rand(3, 3) * v_ax;
julia> @which v_ax' * y
*(A::AbstractArray{T,2}, x::AbstractArray{S,1}) where {T, S} in LinearAlgebra at /Applications/Julia-1.5.app/Contents/Resources/julia/share/julia/stdlib/v1.5/LinearAlgebra/src/matmul.jl:49
The method called by the multiplication of v_ax' and y is:
function (*)(A::AbstractMatrix{T}, x::AbstractVector{S}) where {T,S}
TS = promote_op(matprod, T, S)
mul!(similar(x,TS,axes(A,1)),A,x)
end
which shows why the return is an Array. A new method might be needed here so that v_ax' * y returns the expected scalar.
The text was updated successfully, but these errors were encountered:
Minimal example (using AxisArrays 0.4.3 and julia 1.5):
The expected return of the following operation would be a scalar.
But as shown the operation using
AxisArray
returns anArray
. Looking into the methods involved in these operations:The method called by the multiplication of
v_ax'
andy
is:which shows why the return is an
Array
. A new method might be needed here so thatv_ax' * y
returns the expected scalar.The text was updated successfully, but these errors were encountered: