Skip to content

Commit 5185334

Browse files
committed
fix(matrices): remove implied properties and sort remaining alphabetically
1 parent 3a3713d commit 5185334

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+54
-54
lines changed

src/matrices/cauchy.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Cauchy{T}(x::AbstractVector) where {T<:Number} = Cauchy{T}(x, x)
3939
Cauchy{T}(x::AbstractVector{S}, y::AbstractVector{N}) where {T<:Integer,S<:Number,N<:Number} = Cauchy{Rational{T}}(x, y)
4040

4141
# metadata
42-
@properties Cauchy [:symmetric, :inverse, :illcond, :posdef, :totpos, :infdiv]
42+
@properties Cauchy [:illcond, :infdiv, :inverse, :posdef, :totpos]
4343

4444
# properties
4545
size(A::Cauchy) = (length(A.x), length(A.y))

src/matrices/chow.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Chow(n::Integer, alpha::S, delta::T) where {S,T<:Number} = Chow{typejoin(S,T)}(n
3232
Chow{T}(n::Integer) where {T<:Number} = Chow{T}(n, 1, 0)
3333

3434
# metadata
35-
@properties Chow [:hessenberg, :toeplitz, :eigen, :inverse]
35+
@properties Chow [:eigen, :hessenberg, :inverse, :toeplitz]
3636

3737
# properties
3838
size(A::Chow) = (A.n, A.n)

src/matrices/circulant.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Circulant(n::Integer) = Circulant{Int}(n)
2626
Circulant{T}(n::Integer) where {T<:Number} = Circulant(T[1:n;])
2727

2828
# metadata
29-
@properties Circulant [:circulant, :toeplitz, :normal, :eigen]
29+
@properties Circulant [:circulant, :normal]
3030

3131
# properties
3232
size(A::Circulant) = (A.n, A.n)

src/matrices/clement.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ function Clement{T}(n::Integer, k::Integer) where {T}
4040
end
4141

4242
# metadata
43-
@properties Clement [:tridiagonal, :eigen, :nonneg, :singval] # :posdef if k = 0, :symmetric if k = 1.
43+
@properties Clement [:eigen, :nonneg, :singval, :tridiagonal] # :posdef if k = 0, :symmetric if k = 1.

src/matrices/companion.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Companion{T}(n::Integer) where {T<:Number} = Companion(T[1:n;])
3636
Companion{T}(polynomial::Polynomial) where {T<:Number} = Companion(T.(-polynomial.coeffs[end-1:-1:begin] ./ polynomial.coeffs[end]))
3737

3838
# metadata
39-
@properties Companion Property[]
39+
@properties Companion [:eigen, :sparse]
4040

4141
# properties
4242
size(A::Companion) = (A.n, A.n)

src/matrices/comparison.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ end
2727
Comparison(A::AbstractMatrix{T}) where {T<:Number} = Comparison(A, 0)
2828

2929
# metadata
30-
@properties Comparison Symbol[]
30+
@properties Comparison Property[]
3131

3232
# properties
3333
size(A::Comparison) = size(A.A)

src/matrices/cycol.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Cycol{T}(n::Integer) where {T<:Number} = Cycol{T}(n, round(Int, n / 4))
3434
Cycol{T}(n::Integer, k::Integer) where {T<:Number} = Cycol{T}(n, n, k)
3535

3636
# metadata
37-
@properties Cycol [:rectangular, :rankdef, :random]
37+
@properties Cycol [:random, :rankdef, :rectangular]
3838

3939
# properties
4040
size(A::Cycol) = (A.m, A.n)

src/matrices/dingdong.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ DingDong(n::Integer) = DingDong{Int}(n)
2727
DingDong{T}(n::Integer) where {T<:Integer} = DingDong{Rational{T}}(n)
2828

2929
# metadata
30-
@properties DingDong [:symmetric, :hankel, :eigen]
30+
@properties DingDong [:eigen, :hankel]
3131

3232
# properties
3333
size(A::DingDong) = (A.n, A.n)

src/matrices/dorr.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ function Dorr{T}(n::Integer, theta::T) where {T<:Number}
5050
end
5151

5252
# metadata
53-
@properties Dorr [:tridiagonal, :diagdom, :illcond, :sparse]
53+
@properties Dorr [:diagdom, :illcond, :sparse, :tridiagonal]

src/matrices/dramadah.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Dramadah(n::Integer, k::Integer) = Dramadah{Int}(n, k)
6060
Dramadah{T}(n::Integer) where {T<:Number} = Dramadah{T}(n, 1)
6161

6262
# metadata
63-
@properties Dramadah Symbol[:toeplitz, :integer, :nonneg, :illcond, :unimodular]
63+
@properties Dramadah [:illcond, :nonneg, :toeplitz, :unimodular]
6464

6565
# properties
6666
size(A::Dramadah) = (A.n, A.n)

src/matrices/fiedler.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Fiedler(n::Integer) = Fiedler{Int}(n)
2929
Fiedler{T}(n::Integer) where {T<:Number} = Fiedler(T[1:n;])
3030

3131
# metadata
32-
@properties Fiedler [:inverse, :indefinite, :symmetric, :eigen]
32+
@properties Fiedler [:eigen, :indefinite, :inverse, :symmetric]
3333

3434
# properties
3535
size(A::Fiedler) = (A.n, A.n)

src/matrices/forsythe.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function Forsythe(n::Integer, alpha::Number, lambda::Number)
3131
end
3232

3333
# metadata
34-
@properties Forsythe [:inverse, :illcond, :eigen]
34+
@properties Forsythe [:eigen, :illcond, :inverse]
3535

3636
# properties
3737
size(A::Forsythe) = (A.n, A.n)

src/matrices/frank.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Frank(n::Integer, k::Integer) = Frank{Int}(n, k)
3333
Frank{T}(n::Integer) where {T<:Number} = Frank{T}(n, 0)
3434

3535
# metadata
36-
@properties Frank [:hessenberg, :integer, :totnonneg, :illcond, :eigen]
36+
@properties Frank [:eigen, :hessenberg, :illcond, :integer, :totnonneg]
3737

3838
# properties
3939
size(A::Frank) = (A.n, A.n)

src/matrices/gcdmat.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ end
2020
GCDMat(n::Integer) = GCDMat{Int}(n)
2121

2222
# metadata
23-
@properties GCDMat [:symmetric, :posdef, :integer, :positive, :infdiv]
23+
@properties GCDMat [:infdiv, :integer, :posdef, :positive]
2424

2525
# properties
2626
size(A::GCDMat) = (A.n, A.n)

src/matrices/gearmat.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ GearMat(n::Integer, i::Integer, j::Integer) = GearMat{Int}(n, i, j)
3535
GearMat{T}(n::Integer) where {T<:Number} = GearMat{T}(n, n, -n)
3636

3737
# metadata
38-
@properties GearMat Symbol[:defective, :eigen, :rankdef, :integer, :sparse]
38+
@properties GearMat [:defective, :eigen, :integer, :rankdef, :sparse]
3939

4040
# properties
4141
size(A::GearMat) = (A.n, A.n)

src/matrices/grcar.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Grcar(n::Integer, k::Integer) = Grcar{Int}(n, k)
3131
Grcar{T}(n::Integer) where {T<:Number} = Grcar{T}(n, 3)
3232

3333
# metadata
34-
@properties Grcar [:hessenberg, :toeplitz, :integer, :eigen]
34+
@properties Grcar [:eigen, :hessenberg, :integer, :toeplitz]
3535

3636
# properties
3737
size(A::Grcar) = (A.n, A.n)

src/matrices/hadamard.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ end
3535
Hadamard(n::Integer) = Hadamard{Int}(n)
3636

3737
# metadata
38-
@properties Hadamard [:inverse, :integer, :fixedsize]
38+
@properties Hadamard [:fixedsize, :integer, :inverse]
3939

4040
# properties
4141
size(A::Hadamard) = (A.n, A.n)

src/matrices/hankel.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Hankel{T}(n::Integer) where {T<:Number} = Hankel(T[1:n;])
3636
Hankel(v::AbstractVector{T}) where {T<:Number} = Hankel(v, T[])
3737

3838
# metadata
39-
@properties Hankel [:symmetric, :hankel]
39+
@properties Hankel [:hankel]
4040

4141
# properties
4242
size(A::Hankel) = (A.m, A.n)

src/matrices/hanowa.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Hanowa(n::Integer, alpha::T) where {T<:Number} = Hanowa{T}(n, alpha)
2525
Hanowa{T}(n::Integer) where {T<:Number} = Hanowa{T}(n, T(-1))
2626

2727
# metadata
28-
@properties Hanowa Symbol[]
28+
@properties Hanowa [:eigen]
2929

3030
# properties
3131
size(A::Hanowa) = (A.n, A.n)

src/matrices/hilbert.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Hilbert{T}(n::Integer) where {T<:Number} = Hilbert{T}(n, n)
3838
Hilbert{T}(m::Integer, n::Integer) where {T<:Integer} = Hilbert{Rational{T}}(m, n)
3939

4040
# metadata
41-
@properties Hilbert [:symmetric, :inverse, :hankel, :illcond, :posdef, :totpos]
41+
@properties Hilbert [:hankel, :illcond, :inverse, :posdef, :totpos]
4242

4343
# properties
4444
size(A::Hilbert) = (A.m, A.n)

src/matrices/inversehilbert.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ InverseHilbert(n::Integer) = InverseHilbert{Int}(n)
3131
InverseHilbert{Rational{T}}(n::Integer) where {T<:Number} = InverseHilbert{T}(n)
3232

3333
# metadata
34-
@properties InverseHilbert [:symmetric, :inverse, :illcond, :posdef]
34+
@properties InverseHilbert [:illcond, :inverse, :posdef]
3535

3636
# properties
3737
size(A::InverseHilbert) = (A.n, A.n)

src/matrices/invhess.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Invhess(x::AbstractVector) = Invhess(x, -x[1:end-1])
2626
Invhess{T}(n::Integer) where {T<:Number} = Invhess(T[1:n;])
2727

2828
# metadata
29-
@properties Invhess Symbol[:integer]
29+
@properties Invhess [:integer]
3030

3131
# properties
3232
size(A::Invhess) = (A.n, A.n)

src/matrices/involutory.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Involutory(n::Integer) = Involutory{Int}(n)
2626
Involutory{T}(n::Integer) where {T<:Integer} = Involutory{Rational{T}}(n)
2727

2828
# metadata
29-
@properties Involutory [:involutory, :integer, :illcond, :eigen]
29+
@properties Involutory [:eigen, :illcond, :integer, :involutory]
3030

3131
# properties
3232
size(A::Involutory) = (A.n, A.n)

src/matrices/ipjfact.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Ipjfact(n::Integer, k::Integer) = Ipjfact{Int}(n, k)
3131
Ipjfact{T}(n::Integer) where {T<:Number} = Ipjfact{T}(n, 0)
3232

3333
# metadata
34-
@properties Ipjfact [:symmetric, :posdef, :hankel, :illcond, :positive]
34+
@properties Ipjfact [:hankel, :illcond, :posdef, :positive]
3535

3636
# properties
3737
size(A::Ipjfact) = (A.n, A.n)

src/matrices/jordbloc.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ JordBloc(n::Integer, lambda::Number) = JordBloc{Int}(n, lambda)
2323
JordBloc{T}(n::Integer) where {T<:Number} = JordBloc{T}(n, T(1))
2424

2525
# metadata
26-
@properties JordBloc Symbol[:bidiagonal, :eigen, :binary, :nonneg, :defective, :toeplitz]
26+
@properties JordBloc [:bidiagonal, :binary, :defective, :eigen, :nonneg, :toeplitz]
2727

2828
# properties
2929
size(A::JordBloc) = (A.n, A.n)

src/matrices/kahan.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function Kahan(m::Integer, n::Integer, theta::AbstractFloat, pert::AbstractFloat
4747
end
4848

4949
# metadata
50-
@properties Kahan [:rectangular, :triangular, :inverse, :illcond]
50+
@properties Kahan [:illcond, :inverse, :rectangular, :triangular]
5151

5252
# properties
5353
size(A::Kahan) = (A.m, A.n)

src/matrices/kms.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ KMS{T}(n::Integer) where {T<:Number} = KMS{T}(n, T(0.5))
3232
KMS{T}(n::Integer, rho::Number) where {T<:Number} = KMS{T}(n, convert(T, rho))
3333

3434
# metadata
35-
@properties KMS [:symmetric, :inverse, :posdef, :toeplitz]
35+
@properties KMS [:inverse, :posdef, :toeplitz]
3636

3737
# properties
3838
size(A::KMS) = (A.n, A.n)

src/matrices/lauchli.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Lauchli(n::Integer, mu::T) where {T<:Number} = Lauchli{T}(n, mu)
2929
Lauchli{T}(n::Integer) where {T<:Number} = Lauchli{T}(n, sqrt(eps(T)))
3030

3131
# metadata
32-
@properties Lauchli Symbol[:rectangular]
32+
@properties Lauchli [:rectangular]
3333

3434
# properties
3535
size(A::Lauchli) = (A.m, A.n)

src/matrices/lehmer.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Lehmer(n::Integer) = Lehmer{Int}(n)
3232
Lehmer{T}(n::Integer) where {T<:Integer} = Lehmer{Rational{T}}(n)
3333

3434
# metadata
35-
@properties Lehmer [:symmetric, :inverse, :posdef, :totnonneg, :infdiv]
35+
@properties Lehmer [:infdiv, :inverse, :posdef, :totnonneg]
3636

3737
# properties
3838
size(A::Lehmer) = (A.n, A.n)

src/matrices/leslie.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Leslie(n::Integer) = Leslie{Int}(n)
2424
Leslie{T}(n::Integer) where {T<:Number} = Leslie(ones(T, n), ones(T, n - 1))
2525

2626
# metadata
27-
@properties Leslie Symbol[:nonneg, :binary]
27+
@properties Leslie [:binary, :nonneg]
2828

2929
# properties
3030
size(A::Leslie) = (A.n, A.n)

src/matrices/lesp.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ end
1919
Lesp(n::Integer) = Lesp{Float64}(n)
2020

2121
# metadata
22-
@properties Lesp Symbol[:tridiagonal, :eigen]
22+
@properties Lesp [:eigen, :tridiagonal]
2323

2424
# properties
2525
size(A::Lesp) = (A.n, A.n)

src/matrices/lotkin.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Lotkin(n::Integer) = Lotkin{Int}(n)
2727
Lotkin{T}(n::Integer) where {T<:Integer} = Lotkin{Rational{T}}(n)
2828

2929
# metadata
30-
@properties Lotkin [:inverse, :illcond, :eigen]
30+
@properties Lotkin [:eigen, :illcond, :inverse]
3131

3232
# properties
3333
size(A::Lotkin) = (A.n, A.n)

src/matrices/minij.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ end
2626
Minij(n::Integer) = Minij{Int}(n)
2727

2828
# metadata
29-
@properties Minij [:symmetric, :inverse, :posdef, :infdiv, :eigen, :integer, :positive]
29+
@properties Minij [:eigen, :infdiv, :integer, :inverse, :posdef]
3030

3131
# properties
3232
size(A::Minij) = (A.n, A.n)

src/matrices/moler.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Moler{T}(n::Integer) where {T<:Number} = Moler{T}(n, -1)
3434
Moler{T}(n::Integer, alpha::Number) where {T<:Number} = Moler{T}(n, convert(T, alpha))
3535

3636
# metadata
37-
@properties Moler [:symmetric, :inverse, :illcond, :posdef, :integer]
37+
@properties Moler [:illcond, :integer, :inverse, :posdef]
3838

3939
# properties
4040
size(A::Moler) = (A.n, A.n)

src/matrices/neumann.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ end
4545
Neumann(n::Integer) = Neumann{Int}(n)
4646

4747
# metadata
48-
@properties Neumann [:eigen, :sparse, :rankdef, :diagdom]
48+
@properties Neumann [:diagdom, :eigen, :sparse, :rankdef]
4949

5050
# properties
5151
size(A::Neumann) = (A.n, A.n)

src/matrices/orthog.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Orthog(n::Integer, k::Integer) = Orthog{Float64}(n, k)
3737
Orthog{T}(n::Integer) where {T<:Number} = Orthog{T}(n, 1)
3838

3939
# metadata
40-
@properties Orthog Symbol[:orthogonal]
40+
@properties Orthog [:orthogonal]
4141

4242
# properties
4343
size(A::Orthog) = (A.n, A.n)

src/matrices/oscillate.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function Oscillate{T}(n::Integer, mode::Integer) where {T<:Number}
5454
end
5555

5656
# metadata
57-
@properties Oscillate [:illcond, :eigen, :random]
57+
@properties Oscillate [:eigen, :illcond, :random]
5858

5959
# properties
6060
size(A::Oscillate) = (A.n, A.n)

src/matrices/parter.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Parter(n::Integer) = Parter{Int}(n)
2828
Parter{T}(n::Integer) where {T<:Integer} = Parter{Rational{T}}(n)
2929

3030
# metadata
31-
@properties Parter [:toeplitz, :eigen]
31+
@properties Parter [:eigen, :toeplitz]
3232

3333
# properties
3434
size(A::Parter) = (A.n, A.n)

src/matrices/pascal.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ end
2929
Pascal(n::Integer) = Pascal{Int}(n)
3030

3131
# metadata
32-
@properties Pascal [:symmetric, :inverse, :illcond, :posdef, :eigen, :integer, :totpos]
32+
@properties Pascal [:eigen, :illcond, :integer, :inverse, :posdef, :totpos]
3333

3434
# properties
3535
size(A::Pascal) = (A.n, A.n)

src/matrices/pei.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Pei(n::Integer, alpha::T) where {T<:Number} = Pei{T}(n, alpha)
2828
Pei{T}(n::Integer) where {T<:Number} = Pei{T}(n, one(T))
2929

3030
# metadata
31-
@properties Pei [:symmetric, :inverse, :posdef, :integer, :positive]
31+
@properties Pei [:integer, :inverse, :posdef, :positive]
3232

3333
# properties
3434
size(A::Pei) = (A.n, A.n)

src/matrices/poisson.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ end
3838
Poisson(n::Integer) = Poisson{Int}(n)
3939

4040
# metadata
41-
@properties Poisson [:symmetric, :inverse, :posdef, :eigen, :sparse]
41+
@properties Poisson [:eigen, :inverse, :posdef, :sparse]
4242

4343
# properties
4444
size(A::Poisson) = (A.n, A.n)

src/matrices/prolate.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Prolate(n::Integer, w::T) where {T<:Number} = Prolate{T}(n, w)
3434
Prolate{T}(n::Integer) where {T<:Number} = Prolate{T}(n, T(0.25))
3535

3636
# metadata
37-
@properties Prolate [:symmetric, :posdef, :toeplitz, :illcond]
37+
@properties Prolate [:illcond, :posdef, :toeplitz]
3838

3939
# properties
4040
size(A::Prolate) = (A.n, A.n)

src/matrices/randcorr.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ end
5959
Randcorr(n::Integer) = Randcorr{Float64}(n)
6060

6161
# metadata
62-
@properties Randcorr [:symmetric, :random, :correlation]
62+
@properties Randcorr [:correlation, :random]
6363

6464
# properties
6565
size(A::Randcorr) = (A.n, A.n)

src/matrices/rando.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Rando{T}(n::Integer) where {T<:Number} = Rando{T}(n, 1)
4141
Rando{T}(n::Integer, k::Integer) where {T<:Number} = Rando{T}(n, n, k)
4242

4343
# metadata
44-
@properties Rando [:random, :rectangular, :integer]
44+
@properties Rando [:integer, :random, :rectangular]
4545

4646
# properties
4747
size(A::Rando) = (A.m, A.n)

src/matrices/randsvd.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ RandSVD{T}(n::Integer, kappa::T) where {T<:Number} = RandSVD{T}(n, kappa, 3)
7171
RandSVD{T}(n::Integer, kappa::T, mode::Integer) where {T<:Number} = RandSVD{T}(n, n, kappa, mode)
7272

7373
# metadata
74-
@properties RandSVD [:orthogonal, :rectangular, :illcond, :random]
74+
@properties RandSVD [:illcond, :orthogonal, :random, :rectangular]
7575

7676
# properties
7777
size(A::RandSVD) = (A.m, A.n)

0 commit comments

Comments
 (0)