Skip to content

Commit 0eb9c04

Browse files
authored
fix typos (#414)
1 parent b4b0e72 commit 0eb9c04

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

docs/src/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ julia> R = sparsevec(I,V)
122122

123123
The inverse of the [`sparse`](@ref) and [`sparsevec`](@ref) functions is
124124
[`findnz`](@ref), which retrieves the inputs used to create the sparse array.
125-
[`findall(!iszero, x)`](@ref) returns the cartesian indices of non-zero entries in `x`
125+
[`findall(!iszero, x)`](@ref) returns the Cartesian indices of non-zero entries in `x`
126126
(including stored entries equal to zero).
127127

128128
```jldoctest sparse_function

src/higherorderfns.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const SpBroadcasted2{Style<:SPVM,Axes,F,Args<:Tuple{SparseVecOrMat,SparseVecOrMa
111111

112112
# (1) The definitions below provide a common interface to sparse vectors and matrices
113113
# sufficient for the purposes of map[!]/broadcast[!]. This interface treats sparse vectors
114-
# as n-by-one sparse matrices which, though technically incorrect, is how broacast[!] views
114+
# as n-by-one sparse matrices which, though technically incorrect, is how broadcast[!] views
115115
# sparse vectors in practice.
116116
@inline numrows(A::AbstractCompressedVector) = length(A)
117117
@inline numrows(A::AbstractSparseMatrixCSC) = size(A, 1)

src/linalg.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ kron(a::_SparseKronGroup, b::Number) = a * b
14131413

14141414
## det, inv, cond
14151415

1416-
inv(A::AbstractSparseMatrixCSC) = error("The inverse of a sparse matrix can often be dense and can cause the computer to run out of memory. If you are sure you have enough memory, please either convert your matrix to a dense matrix, e.g. by calling `Matrix` or if `A` can be factorized, use `\\` on the dense identity matrix, e.g. `A \\ Matrix{eltype(A)}(I, size(A)...)` restrictions of `\\` on sparse lhs applies. Altenatively, `A\\b` is generally preferable to `inv(A)*b`")
1416+
inv(A::AbstractSparseMatrixCSC) = error("The inverse of a sparse matrix can often be dense and can cause the computer to run out of memory. If you are sure you have enough memory, please either convert your matrix to a dense matrix, e.g. by calling `Matrix` or if `A` can be factorized, use `\\` on the dense identity matrix, e.g. `A \\ Matrix{eltype(A)}(I, size(A)...)` restrictions of `\\` on sparse lhs applies. Alternatively, `A\\b` is generally preferable to `inv(A)*b`")
14171417

14181418
# TODO
14191419

src/solvers/cholmod.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ Factor(FC::FactorComponent) = FC.F
404404
#################
405405

406406
# Dense wrappers
407-
# The ifelse here may be unecessary.
407+
# The ifelse here may be unnecessary.
408408
# nothing different actually occurs in cholmod_l_allocate vs cholmod_allocate AFAICT.
409409
# And CHOLMOD has no way of tracking the difference internally (no internal itype field).
410410
# This leads me to believe they can be mixed with long and int versions of sparse freely.

src/solvers/umfpack.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ UmfpackWS(F::ATLU, refinement::Bool=has_refinement(F)) = UmfpackWS(F.parent, ref
275275
A shallow copy of UmfpackLU to use in multithreaded solve applications.
276276
This function duplicates the working space, control, info and lock fields.
277277
"""
278-
# Not using simlar helps if the actual needed size has changed as it would need to be resized again
278+
# Not using similar helps if the actual needed size has changed as it would need to be resized again
279279
Base.copy(F::UmfpackLU{Tv, Ti}, ws=UmfpackWS(F)) where {Tv, Ti} =
280280
UmfpackLU(
281281
F.symbolic,
@@ -413,7 +413,7 @@ When `check = false`, responsibility for checking the decomposition's
413413
validity (via [`issuccess`](@ref)) lies with the user.
414414
415415
The permutation `q` can either be a permutation vector or `nothing`. If no permutation vector
416-
is proveded or `q` is `nothing`, UMFPACK's default is used. If the permutation is not zero based, a
416+
is provided or `q` is `nothing`, UMFPACK's default is used. If the permutation is not zero based, a
417417
zero based copy is made.
418418
419419
See also [`lu`](@ref)

test/sparsematrix_constructors_indexing.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ end
10771077
@test Base.isstored(A, c[1], c[2]) == false
10781078
end
10791079

1080-
# `isstored` for adjoint and tranposed matrices:
1080+
# `isstored` for adjoint and transposed matrices:
10811081
for trans in (adjoint, transpose)
10821082
B = trans(A)
10831083
stored_indices = [CartesianIndex(j, i) for (j, i) in zip(J, I)]
@@ -1390,7 +1390,7 @@ using Base: swaprows!, swapcols!
13901390
(swaprows!, 2, 3), # Test swapping rows of unequal length
13911391
(swaprows!, 2, 4), # Test swapping non-adjacent rows
13921392
(swapcols!, 1, 2), # Test swapping columns where one column is fully sparse
1393-
(swapcols!, 2, 3), # Test swapping coulms of unequal length
1393+
(swapcols!, 2, 3), # Test swapping columns of unequal length
13941394
(swapcols!, 2, 4)) # Test swapping non-adjacent columns
13951395
Scopy = copy(S)
13961396
Sdense = Array(S)

0 commit comments

Comments
 (0)