#NEWLINE# @ staticmethod #NEWLINE# def _matvec( v , alpha , cs , ds ) : #NEWLINE# #INDENT# ( axpy , scal , dotc ) = get_blas_funcs ( [ 'axpy' , 'scal' , 'dotc' ] , ( cs [ : 1 ] + [ v ] ) ) #NEWLINE# w = ( alpha * v ) #NEWLINE# for ( c , d ) in zip ( cs , ds ) : #NEWLINE# #INDENT# a = dotc ( d , v ) #NEWLINE# w = axpy ( c , w , w . size , a ) #NEWLINE# #UNINDENT# return w