Skip to content

Commit d666c52

Browse files
committed
Remove superfluous definition
1 parent b455f76 commit d666c52

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

src/pdiagmat.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ LinearAlgebra.cholesky(a::PDiagMat) = cholesky(Diagonal(a.diag))
3030

3131
### Inheriting from AbstractMatrix
3232

33-
Base.size(a::PDiagMat) = (a.dim, a.dim)
3433
function Base.getindex(a::PDiagMat, i::Integer)
3534
ncol, nrow = fldmod1(i, a.dim)
3635
ncol == nrow ? a.diag[nrow] : zero(eltype(a))

src/pdmat.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ LinearAlgebra.cholesky(a::PDMat) = a.chol
3434

3535
### Inheriting from AbstractMatrix
3636

37-
Base.size(a::PDMat) = size(a.mat)
3837
Base.getindex(a::PDMat, i::Int) = getindex(a.mat, i)
3938
Base.getindex(a::PDMat, I::Vararg{Int, N}) where {N} = getindex(a.mat, I...)
4039

src/pdsparsemat.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ LinearAlgebra.cholesky(a::PDSparseMat) = a.chol
3232

3333
### Inheriting from AbstractMatrix
3434

35-
Base.size(a::PDSparseMat) = (a.dim, a.dim)
3635
Base.getindex(a::PDSparseMat,i::Integer) = getindex(a.mat, i)
3736
Base.getindex(a::PDSparseMat,I::Vararg{Int, N}) where {N} = getindex(a.mat, I...)
3837

src/scalmat.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ LinearAlgebra.cholesky(a::ScalMat) = cholesky(Diagonal(fill(a.value, a.dim)))
2222

2323
### Inheriting from AbstractMatrix
2424

25-
Base.size(a::ScalMat) = (a.dim, a.dim)
2625
function Base.getindex(a::ScalMat, i::Integer)
2726
ncol, nrow = fldmod1(i, a.dim)
2827
ncol == nrow ? a.value : zero(eltype(a))

0 commit comments

Comments
 (0)