示例#1
0
 def mult(self, A, x, y):
     "y <- A * x"
     N, F = self.N, self.F
     # get 3D arrays from vectos
     xx = x.getArray(readonly=1).reshape(N, order='f')
     yy = y.getArray(readonly=0).reshape(N, order='f')
     # call Fortran subroutine
     del2apply(F, xx, yy)
示例#2
0
文件: del2mat.py 项目: rtorresca/ppde
 def mult(self, A, x, y):
     "y <- A * x"
     N, F = self.N, self.F
     # get 3D arrays from vectos
     xx = x[...].reshape(N, order='f')
     yy = y[...].reshape(N, order='f')
     # call Fortran subroutine
     del2apply(F, xx, yy)
示例#3
0
 def mult(self, A, x, y):
     "y <- A * x"
     N, F = self.N, self.F
     # get 3D arrays from vectos
     xx = x[...].reshape(N, order='f')
     yy = y[...].reshape(N, order='f')
     # call Fortran subroutine
     del2apply(F, xx, yy)