Skip to main content

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


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

tiny_solver-0.2.0-cp311-cp311-macosx_11_0_arm64.whl (252.5 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page