Hello,
I have 2*N arrays (let's say 2 arrays of length 4) that I combine using
np.meshgrid
xxA, yyA = np.meshgrid(xA, yA)
xxB, yyB = np.meshgrid(xB, yB)
which gives me two meshes
xx.shape = yy.shape = (4,4)
wish represent N-dimensional mesh with 16 elements.
Now I want to evaluate a function
Hey,
Am 27.03.2017 um 16:09 schrieb Sebastian Berg:
> On Mon, 2017-03-27 at 13:06 +0200, Florian Lindner wrote:
>> Hey,
>>
>> I've timed the two versions, one basisfunction being a function:
>>
>> 1 loop, best of 3: 17.3 s per loop
>>
>> the
row loop there.
Best,
Florian
Am 25.03.2017 um 22:31 schrieb Sebastian Berg:
> On Sat, 2017-03-25 at 18:46 +0100, Florian Lindner wrote:
>> Hello,
>>
>> I have this function:
>>
>> def eval_BF(self, meshA, meshB):
>> """ Evaluates s
Hello,
I have this function:
def eval_BF(self, meshA, meshB):
""" Evaluates single BF or list of BFs on the meshes. """
if type(self.basisfunction) is list:
A = np.empty((len(meshA), len(meshB)))
for i, row in enumerate(meshA):
for j, col in