| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The goal of WTF is to provide a small domain-specific language (DSL) that can be used to unify interfaces involving floating-point types. Using WTF the user writes their interfaces in terms of "weakly typed" objects like Float and FloatBuffer, and determination of the actual floating-point type is deferred to runtime.
Create and activate a virtual environment, then install the package in editable (dev) mode. This builds the Python bindings and the C++ test suite:
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"The editable install keeps its build tree in build/ (configured via build-dir in pyproject.toml). Run CTest directly from there:
cd build && ctest --output-on-failureWith the virtual environment active:
pytest tests/python/Full description: (TODO: Add link to the documentation)
Depending on the standard, C++ already natively has a lot of floating-point types, e.g., float, double, long double, std::complex<float>, and std::complex<double>. This is before considering custom floating-point types, such as those needed for automatic differentiation, or hardware-specific types. When attempting to maintain interfaces with explicit types (such as is required for C-style interfaces) this leads to a combinatorial explosion in the number of interfaces.
| Back | FazBrowse Home | New Git URL |