Skip to content

Commit e6f3d00

Browse files
authored
Fix some typos (#254)
Signed-off-by: Alexander Seiler <[email protected]>
1 parent 1599633 commit e6f3d00

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/abstractblockarray.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function eachblock(A::AbstractBlockArray)
174174
(view(A, Block(Tuple(I))) for I in blockinds)
175175
end
176176

177-
# Use memory laout for sub-blocks
177+
# Use memory layout for sub-blocks
178178
@inline Base.getindex(A::AbstractMatrix, kr::Colon, jr::Block{1}) = ArrayLayouts.layout_getindex(A, kr, jr)
179179
@inline Base.getindex(A::AbstractMatrix, kr::Block{1}, jr::Colon) = ArrayLayouts.layout_getindex(A, kr, jr)
180180
@inline Base.getindex(A::AbstractMatrix, kr::Block{1}, jr::AbstractVector) = ArrayLayouts.layout_getindex(A, kr, jr)

src/blockarray.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct BlockArray{T, N, R <: AbstractArray{<:AbstractArray{T,N},N}, BS<:NTuple{N
6666
new{T, N, R, BS}(blocks, block_sizes)
6767
end
6868

69-
# Auxilary outer constructors
69+
# Auxiliary outer constructors
7070
@inline _BlockArray(blocks::R, block_sizes::Vararg{AbstractVector{<:Integer}, N}) where {T, N, R<:AbstractArray{<:AbstractArray{T,N},N}} =
7171
_BlockArray(blocks, map(blockedrange, block_sizes))
7272

@@ -97,7 +97,7 @@ end
9797
_BlockArray(R, block_sizes...)
9898

9999
"""
100-
Constructs a `BlockArray` with uninitialized blocks from a block type `R` with sizes defind by `block_sizes`.
100+
Constructs a `BlockArray` with uninitialized blocks from a block type `R` with sizes defined by `block_sizes`.
101101
102102
```jldoctest; setup = quote using BlockArrays end
103103
julia> BlockArray(undef_blocks, Matrix{Float64}, [1,3], [2,2])

src/blockindices.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ end
312312
313313
represents a cartesian range of blocks.
314314
315-
The relationship between `Block` and `BlockRange` mimicks the relationship between
315+
The relationship between `Block` and `BlockRange` mimics the relationship between
316316
`CartesianIndex` and `CartesianRange`.
317317
"""
318318
BlockRange

src/blockreduce.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ Base.mapfoldl(f::F, op::OP, B::PseudoBlockArray; kw...) where {F, OP} =
1717
Base.mapreduce(f::F, op::OP, B::PseudoBlockArray; kw...) where {F, OP} =
1818
mapreduce(f, op, B.blocks; kw...)
1919

20-
# support sum, need to return something analoguous to Base.OneTo(1) but same type
20+
# support sum, need to return something analogous to Base.OneTo(1) but same type
2121
Base.reduced_index(::BR) where BR<:BlockedUnitRange = convert(BR, Base.OneTo(1))

src/pseudo_blockarray.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Note: Functions surrounded by a comment blocks are there because `Vararg` is sitll allocating.
1+
# Note: Functions surrounded by a comment blocks are there because `Vararg` is still allocating.
22
# When Vararg is fast enough, they can simply be removed
33

44
####################

test/test_blockbroadcast.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ import BlockArrays: SubBlockIterator, BlockIndexRange, Diagonal
178178
@test blockisequal(axes(A .* Ones(axes(A))), axes(Ones(axes(A)) .* A), axes(A .* ones(6)))
179179
end
180180

181-
@testset "type inferrence" begin
181+
@testset "type inference" begin
182182
u = BlockArray(randn(5), [2,3]);
183183
@inferred(copyto!(similar(u), Base.broadcasted(exp, u)))
184184
@test exp.(u) == exp.(Vector(u))

0 commit comments

Comments
 (0)