Building matrix
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Locate the existing vect implementation and the expression-graph handling for array literals. Compare them with the Julia dump example, then verify that matrix values stored column-wise can be represented through hcat and vect as described.
Written by the indexing model from the issue text.
Description
To match the expression tree in Julia we should first construct each row with row and then combine them with vcat.
julia> dump(:([1 2; 3 4]))
Expr
head: Symbol vcat
args: Array{Any}((2,))
1: Expr
head: Symbol row
args: Array{Any}((2,))
1: Int64 1
2: Int64 2
2: Expr
head: Symbol row
args: Array{Any}((2,))
1: Int64 3
2: Int64 4
However, the reason this is given row-wise is kind of specific to the fact that the expression with [1 2; 3 4] is expressed left-to-right, top to bottom.
In practice, we will rather have Matrix that we want to represent in the expression graph and the matrices are stored column-wise. So it's probably better to implement hcat and combine it with the existing vect. The the matrix will be represented as hcat(vect(1, 3), vect(2, 4)).
- Dominant language
- Julia
- Stars
- 6
- Forks
- 0
- Avg merge
- 6d 22h
- Merged PRs (30d)
- 3
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.
More from blegat/ArrayDiff.jl
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
blegat/ArrayDiff.jl#83 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
blegat/ArrayDiff.jl#22 · 1 comment ·
All issues in blegat/ArrayDiff.jl
Similar issues
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
interpolate! from a Float32 LatitudeLongitudeGrid fails on Metal: Float64 division in find_λ_range Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
CliMA/Oceananigans.jl#6056 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
JuliaPluto/PlutoPlotly.jl#72 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
epiforecasts/BVDOutbreakSize#811 ·