Skip to content

Commit 3e36e9c

Browse files
authored
fix various typos in comments (JuliaArrays#1185)
1 parent 942a32f commit 3e36e9c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/lu.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ else
3838
(:(Val{true}), :(Val{false}))
3939
end
4040
for pv in pivot_options
41-
# ... define each `pivot::Val{true/false}` method individually to avoid ambiguties
41+
# ... define each `pivot::Val{true/false}` method individually to avoid ambiguities
4242
@eval function lu(A::StaticLUMatrix, pivot::$pv; check = true)
4343
L, U, p = _lu(A, pivot, check)
4444
LU(L, U, p)

test/inv.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ end
9898
end
9999

100100
#-------------------------------------------------------------------------------
101-
# More comprehensive but qualitiative testing for inv() accuracy
101+
# More comprehensive but qualitative testing for inv() accuracy
102102
#=
103103
using PyPlot
104104

test/linalg.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ end
6161
m1 = @SMatrix T[2 4; 6 8]
6262
m2 = @SMatrix T[4 3; 2 1]
6363

64-
# Use that these small integers can be represetnted exactly
64+
# Use that these small integers can be represented exactly
6565
# as floating point numbers. In general, the comparison of
6666
# floats should use `≈` instead of `===`.
6767
@test @inferred(muladd(c, v1, v2)) === @SVector T[8, 11, 14, 17]
@@ -79,7 +79,7 @@ end
7979
m1 = @SMatrix T[2 4; 6 8]
8080
m2 = @SMatrix T[4 3; 2 1]
8181

82-
# Use that these small integers can be represetnted exactly
82+
# Use that these small integers can be represented exactly
8383
# as floating point numbers. In general, the comparison of
8484
# floats should use `≈` instead of `===`.
8585
# These should be turned into `vfmadd...` calls

test/pinv.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using StaticArrays, Test, LinearAlgebra
22

33
tol = 1e-13
44

5-
@testset "Moore–Penrose inverse (Peseudo-inverse)" begin
5+
@testset "Moore–Penrose inverse (pseudoinverse)" begin
66
M1 = @SMatrix [1.5 1.3; 1.2 1.9]
77
N1 = pinv(M1)
88
@test norm(M1*N1*M1 - M1) < tol

0 commit comments

Comments
 (0)