No project description provided
Project description
tiny-solver-rs
Inspired by ceres-solver and tiny-solver. This is a re-implemented version of tiny-solver in rust.
Usage
You need to implement the cost function of TinySolver<NUM_PARAMETERS, NUM_RESIDUALS>
.
Just like ceres-solver.
See full example in examples/example_solve.rs
.
impl TinySolver<3, 2> for ExampleStatic {
fn cost_function(
params: nalgebra::SVector<num_dual::DualSVec64<3>, 3>,
) -> nalgebra::SVector<num_dual::DualSVec64<3>, 2> {
let x = params[0];
let y = params[1];
let z = params[2];
return nalgebra::SVector::from([x + y.mul(2.0) + z.mul(4.0), y * z]);
}
}
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for tiny_solver-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfb196dd38814f6f5ae8585608df4fcdd5e15046d56209889be8af2bd68120d7 |
|
MD5 | 626f27676c6c44c65fe590d06d9ced35 |
|
BLAKE2b-256 | 954f2818d82557266af0cdf7ab73fea22fed3fb89d33a90d6efb111f2f12dfeb |