Skip to main content

GPU-accelerated kernels for exotic / scientific math operators.

Project description

deln

GPU-accelerated kernels for exotic / scientific math — 174 operators across 34 domains (special functions, information theory, point processes, copulas, Bayesian & GP methods, PDE solvers, computational geometry, materials, medical imaging, and more), exposed as plain functions you call on torch tensors.

pip install deln

Quick start

import torch
import deln

deln.init("you@company.com")          # REQUIRED once, before any algorithm

from deln.specfun import bessel_i0
x = torch.linspace(0.0, 3.0, 1024, device="cuda")
y = bessel_i0(x)                       # runs on the GPU, returns on x's device

If you call any algorithm before deln.init(...), it raises deln.DelnNotInitializedError telling you to initialize first.

How it works

  • Every algorithm is a function grouped under its domain submodule: deln.specfun.bessel_i0, deln.quant-style domains, deln.pointproc.hawkes_log_likelihood, deln.medimg.radon_backprojection, …
  • Pass torch tensors (CUDA or CPU); the result comes back on the same device as the inputs — no host round-trips.
  • Each function is documented (help(bessel_i0)), with its parameters and the initialization requirement.

Discovering algorithms

import deln
deln.init("you@company.com")
deln.list_algorithms()                 # -> every available operator name
help(deln.specfun.bessel_i0)           # -> docstring, params, notes

Domains

bayesian_inference, bayesmc, compgeo, control, copula, csense, exactalg, funcanal, gametheory, geomproc, harmonics, hjb, homotopy, infogeo, infotheory, interval, ksg, materials, medimg, modred, npstats, numde, optimization, pointproc, prob_programming, qmc, randla, riemann, seqbio, specfun, stats, tdavec, tensordec, uq.

License

Apache-2.0.

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

deln-0.1.0.tar.gz (207.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deln-0.1.0-py3-none-any.whl (283.3 kB view details)

Uploaded Python 3

File details

Details for the file deln-0.1.0.tar.gz.

File metadata

  • Download URL: deln-0.1.0.tar.gz
  • Upload date:
  • Size: 207.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for deln-0.1.0.tar.gz
Algorithm Hash digest
SHA256 95cc6f79935bf7e93ba524f96c4a28a696e6d1c1d3b8f57ae50d36ad2051cec4
MD5 1418651dca43788596075d033ed8082d
BLAKE2b-256 3099afbc3d51fcdca1c81922f0cc727f6c5f97c6b7792cf801393c6023dc9688

See more details on using hashes here.

File details

Details for the file deln-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: deln-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 283.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for deln-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46238bfec4682855eab5b2d2ccb3a0c300fafee847a353a9a46144b83d0d2c84
MD5 3fc45e5b8280da7780a3cc2b78438acb
BLAKE2b-256 be70fb10d4263b94a7192b8db25d3de35755d2735db4d650a8a39361caef1ff6

See more details on using hashes here.

Supported by

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