-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dof_array.flat_norm is CL-specific #219
Comments
Why does In [2]: a = np.random.rand(3, 3)
In [3]: np.linalg.norm(a)
Out[3]: 1.899203808354709
In [4]: np.linalg.norm(a.reshape(-1))
Out[4]: 1.899203808354709 |
Oops forgot my 450 here. Feel free to ignore this. Numpy's default norm being Frobenius norm, didn't help :P. |
To be fair, I think numpy defaults to Frobenius, which is equivalent to a flattened 2-norm for 2D arrays. For (say 3D) tensor product elements, the shape will likely be |
cf.
meshmode/meshmode/dof_array.py
Lines 645 to 646 in f87576d
The text was updated successfully, but these errors were encountered: