@@ -319,11 +319,11 @@ If `pred` not given, it counts the number of `true` values.
319319count (pred, S:: SparseMatrixCSR ) = count (pred, nzvalview (S))
320320count (S:: SparseMatrixCSR ) = count (i-> true , nzvalview (S))
321321
322- function mul! (y:: AbstractVector ,A:: Adjoint{T, <: SparseMatrixCSR} ,v:: AbstractVector ) where T
322+ function mul! (y:: AbstractVector ,A:: SparseMatrixCSR ,v:: AbstractVector , α :: Number , β :: Number )
323323 if Threads. nthreads () > 1
324- tmul! (y, A, v)
324+ tmul! (y, A, v, α, β )
325325 else
326- smul! (y, A, v)
326+ smul! (y, A, v, α, β )
327327 end
328328end
329329
@@ -359,7 +359,7 @@ function tmul!(y::AbstractVector,A::SparseMatrixCSR,v::AbstractVector, α::Numbe
359359 return y
360360end
361361
362- function mul! (y:: AbstractVector ,A:: SparseMatrixCSR ,v:: AbstractVector ) where T
362+ function mul! (y:: AbstractVector ,A:: SparseMatrixCSR ,v:: AbstractVector )
363363 if Threads. nthreads () > 1
364364 tmul! (y, A, v)
365365 else
@@ -397,15 +397,15 @@ end
397397
398398* (A:: SparseMatrixCSR , v:: Vector ) = (y = similar (v,size (A,1 ));mul! (y,A,v))
399399
400- function mul! (y:: AbstractVector ,A:: Adjoint{T , <:SparseMatrixCSR} ,v:: AbstractVector ) where T
400+ function mul! (y:: AbstractVector ,A:: Adjoint{<:Any , <:SparseMatrixCSR} ,v:: AbstractVector )
401401 if Threads. nthreads () > 1
402402 tmul! (y, A, v)
403403 else
404404 smul! (y, A, v)
405405 end
406406end
407407
408- function smul! (y:: AbstractVector ,A:: Adjoint{T , <:SparseMatrixCSR} ,v:: AbstractVector ) where T
408+ function smul! (y:: AbstractVector ,A:: Adjoint{<:Any , <:SparseMatrixCSR} ,v:: AbstractVector )
409409 P = A. parent
410410 P. n == size (y, 1 ) || throw (DimensionMismatch ())
411411 P. m == size (v, 1 ) || throw (DimensionMismatch ())
@@ -420,7 +420,7 @@ function smul!(y::AbstractVector,A::Adjoint{T, <:SparseMatrixCSR},v::AbstractVec
420420 return y
421421end
422422
423- function tmul! (y:: AbstractVector ,A:: Adjoint{T , <:SparseMatrixCSR} ,v:: AbstractVector ) where T
423+ function tmul! (y:: AbstractVector ,A:: Adjoint{<:Any , <:SparseMatrixCSR} ,v:: AbstractVector )
424424 P = A. parent
425425 P. n == size (y, 1 ) || throw (DimensionMismatch ())
426426 P. m == size (v, 1 ) || throw (DimensionMismatch ())
0 commit comments