@@ -39,7 +39,7 @@ function ExtendableSparseMatrix(::Type{Tv},::Type{Ti},m::Integer, n::Integer) wh
3939end
4040
4141"""
42- $(TYPEDSIGNATURES )
42+ $(SIGNATURES )
4343
4444Create empty ExtendablSparseMatrix.
4545This is a pendant to spzeros.
@@ -48,7 +48,7 @@ ExtendableSparseMatrix(::Type{Tv},m::Integer, n::Integer) where{Tv}=ExtendableSp
4848
4949
5050"""
51- $(TYPEDSIGNATURES )
51+ $(SIGNATURES )
5252
5353Create empty ExtendablSparseMatrix.
5454This is a pendant to spzeros.
6969
7070
7171"""
72- $(TYPEDSIGNATURES )
72+ $(SIGNATURES )
7373
7474Return index corresponding to entry (i,j) in the array of nonzeros,
7575if the entry exists, otherwise, return 0.
@@ -132,15 +132,15 @@ function Base.getindex(M::ExtendableSparseMatrix{Tv,Ti},i::Integer, j::Integer)
132132end
133133
134134"""
135- $(TYPEDSIGNATURES )
135+ $(SIGNATURES )
136136
137137Size of ExtendableSparseMatrix.
138138"""
139139Base. size (E:: ExtendableSparseMatrix ) = (E. cscmatrix. m, E. cscmatrix. n)
140140
141141
142142"""
143- $(TYPEDSIGNATURES )
143+ $(SIGNATURES )
144144
145145Number of nonzeros of ExtendableSparseMatrix.
146146"""
@@ -165,13 +165,12 @@ end
165165Base. isless (x:: ColEntry{Tv, Ti} ,y:: ColEntry{Tv, Ti} ) where {Tv,Ti<: Integer } = (x. i< y. i)
166166
167167
168+ # Create new CSC matrix with sorted entries from CSC matrix S and matrix extension E.
169+ #
170+ # This method assumes that there are no entries with the same
171+ # indices in E and S, therefore it appears too dangerous for general use and
172+ # so we don't export it. Generalizations appear to be possible, though.
168173function _splice (E:: SparseMatrixExtension{Tv,Ti} ,S:: SparseMatrixCSC{Tv,Ti} ) where {Tv,Ti<: Integer }
169- # Create new CSC matrix with sorted entries from CSC matrix S and matrix extension E.
170- #
171- # This method assumes that there are no entries with the same
172- # indices in E and S, therefore it appears too dangerous for general use and
173- # so we don't export it. Generalizations appear to be possible, though.
174-
175174 @assert (S. m== E. m)
176175 @assert (S. n== E. n)
177176
@@ -191,8 +190,8 @@ function _splice(E::SparseMatrixExtension{Tv,Ti},S::SparseMatrixCSC{Tv,Ti}) wher
191190 end
192191 E_maxcol= max (lcol,E_maxcol)
193192 end
194-
195- # pre-allocate column
193+
194+ # pre-allocate column data
196195 col= [ColEntry {Tv,Ti} (0 ,0 ) for i= 1 : E_maxcol]
197196
198197
265264
266265
267266"""
268- $(TYPEDSIGNATURES )
267+ $(SIGNATURES )
269268
270269Flush and delegate to cscmatrix.
271270"""
276275
277276
278277
279-
280278"""
281- $(TYPEDSIGNATURES )
279+ $(SIGNATURES )
282280
283281Flush and delegate to cscmatrix.
284282"""
@@ -289,29 +287,18 @@ end
289287
290288
291289"""
292- $(TYPEDSIGNATURES)
293-
294- Flush and delegate to cscmatrix.
295- """
296- function xcolptrs (E:: ExtendableSparseMatrix )
297- @inbounds flush! (E)
298- return E. cscmatrix. colptr
299- end
300-
301-
302- """
303- $(TYPEDSIGNATURES)
290+ $(SIGNATURES)
304291
305292Flush and delegate to cscmatrix.
306293"""
307294function colptrs (E:: ExtendableSparseMatrix )
308- flush! (E)
295+ @inbounds flush! (E)
309296 return E. cscmatrix. colptr
310297end
311298
312299
313300"""
314- $(TYPEDSIGNATURES )
301+ $(SIGNATURES )
315302
316303Flush and delegate to cscmatrix.
317304"""
322309
323310
324311"""
325- $(TYPEDSIGNATURES )
312+ $(SIGNATURES )
326313
327314Delegating LU factorization.
328315"""
@@ -332,7 +319,7 @@ function LinearAlgebra.lu(E::ExtendableSparseMatrix)
332319end
333320
334321"""
335- $(TYPEDSIGNATURES )
322+ $(SIGNATURES )
336323
337324Delegating Matrix multiplication
338325"""
343330
344331
345332"""
346- $(TYPEDSIGNATURES )
333+ $(SIGNATURES )
347334
348335Delegating Matrix ldiv
349336"""
@@ -353,7 +340,7 @@ function LinearAlgebra.ldiv!(r::AbstractArray{T,1} where T, E::ExtendableSparse
353340end
354341
355342"""
356- $(TYPEDSIGNATURES )
343+ $(SIGNATURES )
357344
358345Delegating Matrix multiplication
359346"""
364351
365352
366353"""
367- $(TYPEDSIGNATURES )
354+ $(SIGNATURES )
368355
369356Delegating Matrix ldiv
370357"""
0 commit comments