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
quad(a, x) # compute x' * a * x when `x` is a vector.
X_A_Xt(a, x) # compute `x * a * x'` for a matrix `x`.
Right now, to take advantage of quad and X_A_Xt the user must ask for them directly.
Which is annoying because the user might not know they are dealing with a PDMat.
If the user wrote x' * a * x then it would not hit these methods.
But we could fix this via something like:
functionBase.(:*)(x::Union{Adjoint{<:AbstractVector}, Transpose{<:AbstractVector}, a::AbstractPDMat, y::AbstractVector)
ifpartent(x) == y
quad(a, x)
elseinvoke(...) # call the generic `*`endend
And similar for X_A_Xt
The text was updated successfully, but these errors were encountered:
Right now, to take advantage of
quad
andX_A_Xt
the user must ask for them directly.Which is annoying because the user might not know they are dealing with a PDMat.
If the user wrote
x' * a * x
then it would not hit these methods.But we could fix this via something like:
And similar for
X_A_Xt
The text was updated successfully, but these errors were encountered: