Skip to main content

matexp

This program solves systems of differential equations for the NEURON simulator using the approximate matrix exponential method of integration. This is a new method of integration. The solution is faster and more accurate than NEURONs built in "sparse" solver. This method is only applicable to systems which are linear and time-invariant, such as Markov kinetic models. This method is also limited to systems with one or two inputs.

This program uses the NMODL file format (".mod" files). The input kinetic model is an NMODL file, and the solution is written to a new NMODL file.

Installation

Prerequisites:

  • Linux
  • The g++ compiler
$ pip install matexp

Usage

$ matexp --help
usage: matexp [-h] [-v] [--plot] -t TIME_STEP [-c CELSIUS] [-e ERROR]
              [-i NAME MIN MAX] [--log [INPUT]] [--target {host,cuda}]
              [-f {32,64}]
              INPUT_PATH OUTPUT_PATH

positional arguments:
  INPUT_PATH            input path for unsolved NMODL file
  OUTPUT_PATH           output path for solved NMODL file

options:
  -h, --help            show this help message and exit
  -v, --verbose         print diagnostic information, give twice for trace mode

simulation parameters:
  --dt DT, --time_step DT
                        milliseconds, default: 0.025
  -t TEMPERATURE, --temperature TEMPERATURE
                        degrees celsius, default: 37
  -e ERROR, --error ERROR
                        maximum absolute error per millisecond. default: 10^-3

input specification:
  -i NAME MIN MAX, --input NAME MIN MAX
  --log [INPUT]         scale input logarithmically, for chemical concentrations

computer specification:
  --target {host,cuda}  default: host

Metadata

Release files for matexp 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for matexp 1.1.0
File Size Uploaded Provenance Actions
matexp-1.1.0.tar.gz 27.3 kB Without provenance Details for matexp-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for matexp 1.1.0
File Interpreter ABI Platform Actions
matexp-1.1.0-py3-none-any.whl Python 3 none any Details for matexp-1.1.0-py3-none-any.whl

Total release size: 57.0 kB

Release files / matexp-1.1.0.tar.gz

Download URL matexp-1.1.0.tar.gz
Size 27.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9b5515a8eac79815aa9c952bf0c59666843a1e8f0ddbff597e11f1319b07aecc
BLAKE2b-256 checksum
How to use checksums
9669d3ea1f282f35a623a596f0ec2a874228f763c54a71414feb452b46537764
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / matexp-1.1.0-py3-none-any.whl

Download URL matexp-1.1.0-py3-none-any.whl
Size 29.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e47caba469f621a2eeb7fbca0a598dd41c0ae5870a9ab711cc99b7c495372732
BLAKE2b-256 checksum
How to use checksums
1494daaa66045129a9ae5098ac9d59d63ae69d82b2eab60435678dfe29b47d3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for matexp 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page