Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9903e42
Add insertdims
roflmaostc Jun 23, 2022
0f93207
Update abstractarraymath.jl
roflmaostc Jun 23, 2022
bd6e45e
Fix some whitespaces and doctest [skip ci]
roflmaostc Jun 24, 2022
f4087a2
Handle merge [skip ci]
roflmaostc Jun 24, 2022
50ae007
Merge branch 'JuliaLang:master' into master
roflmaostc May 30, 2024
4f53621
Fix bug in _foldoneto call
roflmaostc May 30, 2024
1196b8f
Add test for multiple singleton dimensions at one dim
roflmaostc May 31, 2024
6f986dc
Update base/abstractarraymath.jl
roflmaostc Jul 25, 2024
16e0203
Update base/abstractarraymath.jl
roflmaostc Jul 25, 2024
cf23193
Update base/abstractarraymath.jl
roflmaostc Jul 25, 2024
6057e22
Add docs
roflmaostc Jul 25, 2024
84d0693
Update base/abstractarraymath.jl
roflmaostc Jul 25, 2024
aa51242
Merge branch 'JuliaLang:master' into master
roflmaostc Jul 25, 2024
8648d84
Add news
roflmaostc Jul 25, 2024
080c83c
Fix merge mistake
roflmaostc Jul 26, 2024
ec383d9
Rebase [skip ci]
roflmaostc Jul 27, 2024
66d0561
Update test/arrayops.jl [skip ci]
roflmaostc Jul 27, 2024
bdb3258
Update base/abstractarraymath.jl
roflmaostc Jul 27, 2024
0ddee55
Update comment in code [skip ci]
roflmaostc Jul 27, 2024
76b31f7
Remove parts in docstring [skip ci]
roflmaostc Jul 27, 2024
490b103
Adapt docstring
roflmaostc Jul 27, 2024
98283db
Remove trailing whitespace
roflmaostc Jul 27, 2024
c321d51
Remove trailing whitespace in test [skip ci]
roflmaostc Jul 27, 2024
2a9e3ac
Update base/abstractarraymath.jl [skip ci]
roflmaostc Jul 27, 2024
d7cb35c
Rewrite doc [skip ci]
roflmaostc Jul 27, 2024
514b4fc
Update test/arrayops.jl
roflmaostc Aug 1, 2024
4f07e18
Update test/arrayops.jl
roflmaostc Aug 1, 2024
cfa1465
Update base/abstractarraymath.jl
roflmaostc Aug 1, 2024
9f174b7
Update base/abstractarraymath.jl
roflmaostc Aug 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update base/abstractarraymath.jl
Co-authored-by: Neven Sajko <s@purelymail.com>
  • Loading branch information
roflmaostc and nsajko authored Jul 25, 2024
commit 6f986dcf189ab9d8e766526c0fd55ba01b33eebb
2 changes: 1 addition & 1 deletion base/abstractarraymath.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function _insertdims(A::AbstractArray{T, N}, dims::Tuple{Vararg{Int64, M}}) wher
issorted(dims) || throw(ArgumentError("dims=$(dims) are not sorted"))

# n is the amount of the dims already inserted
ax_n = Base._foldoneto(((ds, n, dims), _) ->
ax_n = Base._foldoneto(((ds, n, dims), _) ->
dims != Tuple(()) && n == first(dims) ?
((ds..., Base.OneTo(1)), n, Base.tail(dims)) :
((ds..., axes(A,n)), n+1, dims),
Expand Down