JuliaArrays / JuliaArrays/AxisArrays.jl
Matrix division?
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 207
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the AxisArray matrix/vector division example shown in the issue and inspect existing Base method extensions for AxisArray. Confirm the intended axis compatibility and result axes, then add coverage for matching and mismatched axes if the project has a suitable test location. Done means the proposed division behavior is accepted and verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100