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

Matrix division? #188

Open
bramtayl opened this issue Jul 23, 2020 · 0 comments
Open

Matrix division? #188

bramtayl opened this issue Jul 23, 2020 · 0 comments

Comments

@bramtayl
Copy link

I tried this out:

import Base: \
function \(x::AxisArray{T1, 2}, y::AxisArray{T2, 1}) where {T1, T2}
    x_rows = x.axes[1]
    y_rows = y.axes[1]
    if x_rows == y_rows
        AxisArray(x.data \ y.data, x.axes[2])
    else
        DimensionMismatch("Axes $x_rows and $y_rows don't match")
    end
end

And it seemed to work. I could make a pull request if it seems like a reasonable method?

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