Skip to main content

An extension class to allocate memory easily with cython

Project description

MemoryAllocator

An extension class to allocate memory easily with cython.

This extension class started as part of the Sage software.

It provides a single extension class MemoryAllocator with cdef methods

  • malloc,
  • calloc,
  • alloarray,
  • realloc,
  • reallocarray,
  • aligned_malloc,
  • aligned_calloc,
  • aligned_allocarray.

Memory is freed when the instance of MemoryAllocator is deallocated. On failure to allocate the memory, a proper error is raised.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

memory_allocator-0.1.0.tar.gz (92.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page