From b5672016d692aac16a6e1a7fe2d55e57b9310c1b Mon Sep 17 00:00:00 2001 From: Matt Fishman Date: Fri, 6 Oct 2023 14:37:17 -0400 Subject: [PATCH 1/3] Format Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- NDTensors/src/BlockSparseArrays/src/blocksparsearray.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NDTensors/src/BlockSparseArrays/src/blocksparsearray.jl b/NDTensors/src/BlockSparseArrays/src/blocksparsearray.jl index 505117be5f..5d9ce08396 100644 --- a/NDTensors/src/BlockSparseArrays/src/blocksparsearray.jl +++ b/NDTensors/src/BlockSparseArrays/src/blocksparsearray.jl @@ -17,7 +17,9 @@ struct BlockZero{Axes} axes::Axes end -function (f::BlockZero)(arraytype::Type{<:AbstractArray{T,N}}, I::CartesianIndex{N}) where {T,N} +function (f::BlockZero)( + arraytype::Type{<:AbstractArray{T,N}}, I::CartesianIndex{N} +) where {T,N} return fill!(arraytype(undef, block_size(f.axes, Block(Tuple(I)))), false) end From 945d826296932111a0e4fa94517328bef552f8e4 Mon Sep 17 00:00:00 2001 From: Matt Fishman Date: Fri, 6 Oct 2023 14:37:24 -0400 Subject: [PATCH 2/3] Format Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- NDTensors/src/BlockSparseArrays/src/blocksparsearray.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NDTensors/src/BlockSparseArrays/src/blocksparsearray.jl b/NDTensors/src/BlockSparseArrays/src/blocksparsearray.jl index 5d9ce08396..572ed929e2 100644 --- a/NDTensors/src/BlockSparseArrays/src/blocksparsearray.jl +++ b/NDTensors/src/BlockSparseArrays/src/blocksparsearray.jl @@ -24,7 +24,9 @@ function (f::BlockZero)( end # Fallback to Array if it is abstract -function (f::BlockZero)(arraytype::Type{AbstractArray{T,N}}, I::CartesianIndex{N}) where {T,N} +function (f::BlockZero)( + arraytype::Type{AbstractArray{T,N}}, I::CartesianIndex{N} +) where {T,N} return fill!(Array{T,N}(undef, block_size(f.axes, Block(Tuple(I)))), false) end From 997221aa5c65c4722c5589ca885f4b881b3fa325 Mon Sep 17 00:00:00 2001 From: Matt Fishman Date: Fri, 6 Oct 2023 14:37:31 -0400 Subject: [PATCH 3/3] Format Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- NDTensors/src/SmallVectors/src/BaseExt/sort.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NDTensors/src/SmallVectors/src/BaseExt/sort.jl b/NDTensors/src/SmallVectors/src/BaseExt/sort.jl index b128fe4478..e1b13fd795 100644 --- a/NDTensors/src/SmallVectors/src/BaseExt/sort.jl +++ b/NDTensors/src/SmallVectors/src/BaseExt/sort.jl @@ -15,7 +15,9 @@ function sort!( if VERSION < v"1.8.4" Base.sort!(v, alg, order) else - Base.Sort._sort!(v, Base.Sort.maybe_apply_initial_optimizations(alg), order, (; scratch)) + Base.Sort._sort!( + v, Base.Sort.maybe_apply_initial_optimizations(alg), order, (; scratch) + ) end return v end