@@ -97,18 +97,6 @@ function counts_to_ptrs!(v)
9797 v[1 ] = 1
9898end
9999
100- function Base. similar (A:: SparseMatrixCSR{Bi} , m:: Integer , n:: Integer ) where Bi
101- return SparseMatrixCSR {1} (m, n, ones (eltype (A. rowptr), m+ 1 ), eltype (A. colval)[], eltype (A. nzval)[])
102- end
103-
104- function Base. similar (A:: SparseMatrixCSR{Bi} ) where Bi
105- return SparseMatrixCSR {Bi} (size (A)... , copy (A. rowptr), copy (colvals (A)), similar (nonzeros (A)))
106- end
107-
108- function Base. copy (A:: SparseMatrixCSR{Bi} ) where Bi
109- return SparseMatrixCSR {Bi} (size (A)... , copy (A. rowptr), copy (colvals (A)), copy (nonzeros (A)))
110- end
111-
112100function SparseMatricesCSR. sparsecsr (A:: SparseMatrixCSC )
113101 sparsecsr (findnz (A)... , size (A)... )
114102end
@@ -155,9 +143,6 @@ function strictly_equivalent(A::SparseMatrixCSR, B::SparseMatrixCSR)
155143end
156144
157145function strictly_equivalent (A:: SparseMatrixCSR ,B:: SparseMatrixCSC ) strictly_equivalent (B,A) end
158- function == (A:: SparseMatrixCSC ,B:: SparseMatrixCSR ) strictly_equivalent (A,B) end
159- function == (A:: SparseMatrixCSR ,B:: SparseMatrixCSC ) strictly_equivalent (B,A) end
160- function == (A:: SparseMatrixCSR ,B:: SparseMatrixCSR ) strictly_equivalent (A,B) end
161146
162147# Equality definition for SparseCSC and SparseCSR. If the size and lengths match, the CSR matrix is converted.
163148function approx_equivalent (A:: SparseMatrixCSC , B:: SparseMatrixCSR ,args... )
@@ -191,9 +176,6 @@ function approx_equivalent(A::SparseMatrixCSR, B::SparseMatrixCSR,args...)
191176end
192177
193178function approx_equivalent (A:: SparseMatrixCSR ,B:: SparseMatrixCSC ) approx_equivalent_equivalent (B,A) end
194- function ≈ (A:: SparseMatrixCSC ,B:: SparseMatrixCSR ) approx_equivalent (A,B) end
195- function ≈ (A:: SparseMatrixCSR ,B:: SparseMatrixCSC ) approx_equivalent (B,A) end
196- function ≈ (A:: SparseMatrixCSR ,B:: SparseMatrixCSR ) approx_equivalent (A,B) end
197179
198180function copy (At:: Transpose{Tv,SparseMatrixCSR{Bi,Tv,Ti}} ) where {Bi,Tv,Ti}
199181 A = At. parent
0 commit comments