A Code for Memory-Saving Dyadic Adaptivity in Optimization and Simulation
Project description
DyAda: A Code for Dyadic Adaptivity in Optimization, Simulation, and Machine Learning
Installation
It's as simple as
pip install dyada[drawing,matplotlib,opengl]
Or, if you would like to change the source code, do
git clone https://github.com/freifrauvonbleifrei/DyAda.git
# ... git checkout the required version ...
pip install -e DyAda[drawing,matplotlib,opengl]
Dyadic Adaptivity
Dyadic adaptivity means: A given hypercube of 2 or more dimensions may or may not be subdivided into two parts in any number of dimensions. Of the resulting sub-boxes, each may again be subdivided into two in any dimension, and so forth.
Why Dyadic Adaptivity?
Currently, the most common approach to adaptivity are octrees, which are a special type of dyadic adaptivity: Each box is either refined in every dimension or not at all. For a three-d domain, the tree and the resulting partitioning could look like this:
But maybe you didn't need all this resolution?
Maybe, in the finely-resolved areas, you only needed only some of the dimensions resolved finely:
This is what DyAda provides.
The tree will then look like this:
And you will only have to use 14 degrees of freedom instead of 29! This reduction will be even stronger if you go to higher dimensions.
Contributing
Feel free to request features or voice your intent to work on/with DyAda as an issue. Depending on what you are looking for, exciting features may be in preparation, or they may just be waiting for you to implement them!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dyada-0.0.7.tar.gz.
File metadata
- Download URL: dyada-0.0.7.tar.gz
- Upload date:
- Size: 115.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6d0e23cfac1a02e8772be5c3bf07890ba25810d11806797f7e4f09502119fb6
|
|
| MD5 |
5278034b8c27fa6778c5958fe69386b9
|
|
| BLAKE2b-256 |
847d37c507bab8994a5f4e839d63c29d836d863bc524738e03f0d603a61432ff
|
Provenance
The following attestation bundles were made for dyada-0.0.7.tar.gz:
Publisher:
publish-to-pypi.yml on freifrauvonbleifrei/DyAda
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dyada-0.0.7.tar.gz -
Subject digest:
a6d0e23cfac1a02e8772be5c3bf07890ba25810d11806797f7e4f09502119fb6 - Sigstore transparency entry: 897785242
- Sigstore integration time:
-
Permalink:
freifrauvonbleifrei/DyAda@b0405b9011d1f1ba8da49dfe7a628c1d8f130243 -
Branch / Tag:
refs/tags/v0.0.7 - Owner: https://github.com/freifrauvonbleifrei
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@b0405b9011d1f1ba8da49dfe7a628c1d8f130243 -
Trigger Event:
release
-
Statement type:
File details
Details for the file dyada-0.0.7-py3-none-any.whl.
File metadata
- Download URL: dyada-0.0.7-py3-none-any.whl
- Upload date:
- Size: 40.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2eb05b14a2e53bbbe36bb2d487bfa262ae0ca7b51ac67febaed274feb95d82f0
|
|
| MD5 |
077b07dba6f0466fe4bee88a75385171
|
|
| BLAKE2b-256 |
4713b4284bd69a483417bb8b5367d8ed555c14c3feacb66b85aa2ea869fbedd4
|
Provenance
The following attestation bundles were made for dyada-0.0.7-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on freifrauvonbleifrei/DyAda
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dyada-0.0.7-py3-none-any.whl -
Subject digest:
2eb05b14a2e53bbbe36bb2d487bfa262ae0ca7b51ac67febaed274feb95d82f0 - Sigstore transparency entry: 897785264
- Sigstore integration time:
-
Permalink:
freifrauvonbleifrei/DyAda@b0405b9011d1f1ba8da49dfe7a628c1d8f130243 -
Branch / Tag:
refs/tags/v0.0.7 - Owner: https://github.com/freifrauvonbleifrei
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@b0405b9011d1f1ba8da49dfe7a628c1d8f130243 -
Trigger Event:
release
-
Statement type: