Skip to content
Snippets Groups Projects
user avatar
Kaushik Kulkarni authored
* mimic numpy's norm when ord==None

- When ord==None, numpy ravels the array and then computes the euclidean
  norm.

* test norm when ord is None

* fixup! mimic numpy's norm when ord==None

Co-authored-by: default avatarAndreas Klöckner <inform@tiker.net>
195b9416
History

arraycontext: Choose your favorite numpy-workalike

Gitlab Build Status Github Build Status Python Package Index Release Page

GPU arrays? Deferred-evaluation arrays? Just plain numpy arrays? You'd like your code to work with all of them? No problem! Comes with pre-made array context implementations for:

  • numpy
  • PyOpenCL
  • Pytato (for lazy/deferred evaluation)
  • Debugging
  • Profiling

arraycontext started life as an array abstraction for use with the meshmode unstrucuted discretization package.

Distributed under the MIT license.

Links