Vendor dependencies for 0.3.0 release

This commit is contained in:
2025-09-27 10:29:08 -05:00
parent 0c8d39d483
commit 82ab7f317b
26803 changed files with 16134934 additions and 0 deletions

View File

@@ -0,0 +1 @@
{"files":{"Cargo.toml":"4059f220c736b6f8462f439079a05a7fda77fffb6215bc9e955b6afca3b9209d","README.md":"ca7fd771ad7ead0110483a8d3ff1afe74c9243b76cfd2d29ba3c538a86fc1ad6","src/comptime.rs":"1cffd04787a6e52a241cb8914d939b702613d08c265b4e1ceb7578ae977007de","src/lib.rs":"6619bac32b6998490128a6ba0ca0e5fb47b0d19deff0c3fff0c9479e08d57307","src/runtime.rs":"1b123a6429ec21f846fbe0a9b98fd2fd153239484b01272736f9cb93b4b8e07b"},"package":"e1aaf9b65849a68662ac6c0810c8893a765c960b907dd7cfab9c4a50bf764fbc"}

34
vendor/constgebra/Cargo.toml vendored Normal file
View File

@@ -0,0 +1,34 @@
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2021"
name = "constgebra"
version = "0.1.4"
description = "Const Linear Algebra"
readme = "README.md"
keywords = [
"const",
"linear",
"matrix",
"vector",
"math",
]
categories = ["no-std"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/knickish/constgebra"
[dependencies.const_soft_float]
version = "^0.1.2"
features = ["no_std"]
[dev-dependencies.pretty_assertions]
version = "1"

39
vendor/constgebra/README.md vendored Normal file
View File

@@ -0,0 +1,39 @@
# Const Linear Algebra
[![Crates.io][crates_img]][crates_lnk]
[crates_img]: https://img.shields.io/crates/v/constgebra.svg
[crates_lnk]: https://crates.io/crates/constgebra
Do your math ahead of time and embed the result in the binary. Floating-point code is from `compiler_builtins` and `libm` via the [const_soft_float](https://crates.io/crates/const_soft_float) crate. Uses const generics to check shape of inputs, and is `no_std`.
Please file an issue or make a test PR if your use case is not supported.
```rust
const START: CMatrix<2, 2> = CMatrix::new([
[4.0, 1.0],
[2.0, 3.0]
]);
const ADD: CMatrix<2, 2> = CMatrix::new([
[0.0, 6.0],
[0.0, 3.0]]
);
const EXPECTED: [[f64; 2]; 2] = [
[0.6, -0.7],
[-0.2, 0.4]
];
const RESULT: [[f64; 2]; 2] = START
.add(ADD)
.pinv(f64::EPSILON)
.finish();
for i in 0..2 {
for j in 0..2 {
assert!(float_equal(RESULT[i][j], EXPECTED[i][j], 1e-5));
}
}
```

1219
vendor/constgebra/src/comptime.rs vendored Normal file

File diff suppressed because it is too large Load Diff

8
vendor/constgebra/src/lib.rs vendored Normal file
View File

@@ -0,0 +1,8 @@
#![cfg_attr(not(test), no_std)]
#[cfg(test)]
pub mod runtime;
mod comptime;
pub use comptime::{CMatrix, CVector, Operation};
pub use const_soft_float;

1238
vendor/constgebra/src/runtime.rs vendored Normal file

File diff suppressed because it is too large Load Diff