Skip to main content

A library for working with Multivariate Taylor Functions.

Project description

mtflib: Multivariate Taylor Function Library

Documentation Status License: MIT

A Python library for creating, manipulating, and composing Multivariate Taylor Functions, with a C++ backend for performance-critical applications.

Installation

You can install mtflib directly from the source repository using pip. Ensure you have a C++17 compliant compiler (e.g., GCC, Clang, MSVC) for building the backend extensions.

pip install .

Quick Start

Here's a simple example to get you started with mtflib:

import numpy as np
from mtflib import MultivariateTaylorFunction, Var, sin_taylor

# 1. Initialize global settings (must be done once)
# This sets the max order of the Taylor series and the number of variables.
MultivariateTaylorFunction.initialize_mtf(max_order=5, max_dimension=2)

# 2. Define symbolic variables
# Var(1) corresponds to x, Var(2) to y
x = Var(1)
y = Var(2)

# 3. Create a Taylor series expression
# This creates a Taylor series for sin(x) + y^2
f = sin_taylor(x) + y**2

# 4. Evaluate the result at a point
# Let's evaluate f at (x=0.5, y=2.0)
eval_point = np.array([0.5, 2.0])
result = f.eval(eval_point)

print(f"f(x, y) = sin(x) + y^2")
print(f"Result of f(0.5, 2.0): {result[0]}")

# For comparison, the exact value is sin(0.5) + 2.0^2
exact_value = np.sin(0.5) + 4.0
print(f"Exact value: {exact_value}")

# You can also view the Taylor series coefficients
print("\\nTaylor Series Representation:")
print(f)

Running Tests

The project uses pytest for testing. First, install the test dependencies:

pip install -e .[test]

Then, run the test suite from the root of the repository:

pytest

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

mtflib-1.4.2-cp312-cp312-musllinux_1_2_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

mtflib-1.4.2-cp312-cp312-musllinux_1_2_i686.whl (4.4 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ i686

mtflib-1.4.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

mtflib-1.4.2-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl (3.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ i686

mtflib-1.4.2-cp311-cp311-musllinux_1_2_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

mtflib-1.4.2-cp311-cp311-musllinux_1_2_i686.whl (4.3 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ i686

mtflib-1.4.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

mtflib-1.4.2-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ i686

mtflib-1.4.2-cp310-cp310-musllinux_1_2_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

mtflib-1.4.2-cp310-cp310-musllinux_1_2_i686.whl (4.3 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ i686

mtflib-1.4.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

mtflib-1.4.2-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (3.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ i686

mtflib-1.4.2-cp39-cp39-musllinux_1_2_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.9musllinux: musl 1.2+ x86-64

mtflib-1.4.2-cp39-cp39-musllinux_1_2_i686.whl (4.3 MB view details)

Uploaded CPython 3.9musllinux: musl 1.2+ i686

mtflib-1.4.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

mtflib-1.4.2-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl (3.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ i686

mtflib-1.4.2-cp38-cp38-musllinux_1_2_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.8musllinux: musl 1.2+ x86-64

mtflib-1.4.2-cp38-cp38-musllinux_1_2_i686.whl (4.3 MB view details)

Uploaded CPython 3.8musllinux: musl 1.2+ i686

mtflib-1.4.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

mtflib-1.4.2-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl (3.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ i686

File details

Details for the file mtflib-1.4.2-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4b978b007e66b87e884cebb4fd41ac5e29454df09379122dacb51413e0de6cd9
MD5 5d29bf1c23aa966b121c3cc097928da9
BLAKE2b-256 efafe45ec7373c623b15ed59c4acfeb7d8d6f31ed8974fe048e96bf87415535b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp312-cp312-musllinux_1_2_x86_64.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp312-cp312-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp312-cp312-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 2912f31f7d8e305addb1f70ceccc069ef62c7d171ade824c5135d85d1ea795d5
MD5 4fff2e96a516df96ead3683984490efb
BLAKE2b-256 0d117ab41d4b1530b4be4ab4ccd199e47977d1e9cc6c923c93b6881050d8c2b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp312-cp312-musllinux_1_2_i686.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 040791ca60c45834b92a57a8c27fef91e5be1d8291ed3447245edcfc64e79533
MD5 a146017b51e527fddf9566702703e904
BLAKE2b-256 7dd5bc515ee28dff2c42dd4f515e7ec1be327c6824ba8d5aa2a25ff0ef48b2eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 1176a2a508ada8f2bd899c3a08d35fc157a51be5f4f5449ee7c7f703e7f8444f
MD5 87bd2b2da26bf6f85af1bfe488d36f16
BLAKE2b-256 5f460b7c81375a349f95dc008df3503b54524eb8d9e51f18b88eae2937e6d4b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a0b88f4f76f693b6b64ad9bf645a2a026c2d9a613532f5b83d5cd607daadb218
MD5 2a2a9b0ab467daf566b4a82c6dbf0dd8
BLAKE2b-256 83ed5150f14a2ee018838a9199ce0cefea63865cc9e1f7e0a6ab26fc786457c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp311-cp311-musllinux_1_2_x86_64.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp311-cp311-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp311-cp311-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 459c26cf8c5464ce2ffdf80f44ea67300915f092a86df4ee7fa434dbfd573ed3
MD5 a82214903cbca604b13f86cbbcd3cac3
BLAKE2b-256 8d75f69ee88ab2a1140ad52dfd608eaeb574421b3b5f9e746a6d9deb70707388

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp311-cp311-musllinux_1_2_i686.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 18cf651ede6e23febaeb5c87961a411a29ee59128e325c1a94a1fe82c2599aa7
MD5 0edb26c3eab1efc8196e88bc581df3de
BLAKE2b-256 514661f515f5a25c4ad43a4d8c043bd4f3848f65c9ba7a9c1f7d4a092c221cb4

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 b1e831974fe7eaf2a21b5ab5567e8ac95f3340d27e04f6979b5632c3c69192ef
MD5 0d70063f7cce804e5941532698cdf29d
BLAKE2b-256 1eff2c7c187efd5764ee851b2614ea2a3288cd94b3f2d9afd49a85ede4dd07cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2589996e2ddcdcb8e0d539041c8a7c6351d6925ef3561060a818ae05b0d983c6
MD5 a80b40c850514bba083490727955ac1f
BLAKE2b-256 3b324037a1a8c0232d09c944923d9b87dcd917c6bb69697fd38c7c6c8f485d15

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp310-cp310-musllinux_1_2_x86_64.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp310-cp310-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp310-cp310-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 c5686a588dcfc17cd6a803465dfa24f97ef741f90a0fd64eaddcdcaf69b236a9
MD5 3b06140b99af6a56419c771148830945
BLAKE2b-256 a4dd508b9113863472b5712add8598a4ee9e185f3811065f73f4328c31f7f1aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp310-cp310-musllinux_1_2_i686.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a8032904721cea91d5ebb05401521406c4e47506bc13580430c460112795ee07
MD5 69e15e95fc4f32c47a79282272d75494
BLAKE2b-256 35f09b0a820ec35b64e5877ff8db17832d9b4cc4d217134bda494b85179cfc8a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 d1b9f8cfa8c6a18300fd18a2149001b96d46f1f36aaf5fe751edae5cb178a26e
MD5 0de5488059e7ee1163b1ca3285a897f5
BLAKE2b-256 76e493d57397d9cfc2277d2012cdd45812a959955f4caa0f2e41a71f60e6aaec

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 91190e2dbf38cf9dba73f42face355018186b6add328912c9f2c93e7808da581
MD5 dc1ac4fb5069c6839e9b4d42001ad570
BLAKE2b-256 8d4c307bec4934b78f40e6b54e235a1d9b459c67ded41d34e35ea36674c7d35a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp39-cp39-musllinux_1_2_x86_64.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp39-cp39-musllinux_1_2_i686.whl.

File metadata

  • Download URL: mtflib-1.4.2-cp39-cp39-musllinux_1_2_i686.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 3.9, musllinux: musl 1.2+ i686
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mtflib-1.4.2-cp39-cp39-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 dd9c1b208a124e5c107ec5d59af742154a03e20435033766f5cb46d442555ede
MD5 f1d732d345450a1332773e9d28cb3e2c
BLAKE2b-256 e1ad95af062d97d500b390ec67e82fd4c33179625138af56d811e0d7988775eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp39-cp39-musllinux_1_2_i686.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 00edbe88e6f6ee3793a65cdde820357744117fceec40af4e2dd5f37358f9e9b9
MD5 55e47740f4416aeab17410321d7bcf70
BLAKE2b-256 7c44d49454a88ad0dd93f20c90d8e0aef58620bf716dc11033a136a7f0751720

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 62c5f37f16f5a10ecbc3b9d24a04e9c3b590a42f72c4c7ffa32f9b60d4f11c30
MD5 d8d3ffc3cc3dba503bd8b1a229c506e2
BLAKE2b-256 e844eb00237bf842d42e21c0b64a2b212d4b28b7e77420744fa01d5342426c13

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp38-cp38-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp38-cp38-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a215dade8430dc1d95567fce7c9c59b982f8dfc76123237284cc099acb76ca7e
MD5 dda19e1670640925ad34cb18ed9cf092
BLAKE2b-256 fc5cf42d21ddb3b0ff55a47c863068ba72055ae8cff5f82543213e508beee402

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp38-cp38-musllinux_1_2_x86_64.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp38-cp38-musllinux_1_2_i686.whl.

File metadata

  • Download URL: mtflib-1.4.2-cp38-cp38-musllinux_1_2_i686.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 3.8, musllinux: musl 1.2+ i686
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mtflib-1.4.2-cp38-cp38-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 a291ffd9d5a557990e2231d473a39bff03de767a1006da4a3f01c1dc74e7b212
MD5 25cbdef2cca18b81885b01c31e35559e
BLAKE2b-256 2608ff27d5d5b1aeed1cf11eed2acc34041bb4a1a884baacead8e22e8098e1a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp38-cp38-musllinux_1_2_i686.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a368c1fb8c62060aaf38dd74ebc1e104352eeac77f47025c965171c88d2b44c0
MD5 381361c5f0af8606c9b65dd1990d63d9
BLAKE2b-256 cfa7f5129d9599df81e8b958ce0964847f0c0bb58d62f971e32739fcfed48e7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mtflib-1.4.2-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for mtflib-1.4.2-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 7cba9f8e6b6f764e1dc97be7a80177f5e194694945b23592e402d4244a5abcbf
MD5 16f9c4416d2b8270226b5ee5f31f9c45
BLAKE2b-256 723e3ac845e78612989363cdaf97dc59a1726d15a4611b65ea8805ac9ae0670c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mtflib-1.4.2-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl:

Publisher: python-publish.yml on shashi-manikonda/MTFLibrary

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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