Ejemplo n.º 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)
Ejemplo n.º 2
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)
Ejemplo n.º 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)