ceres-solver 0.5.1

Safe Rust bindings for the Ceres Solver
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Residual-block related structures.

use ceres_solver_sys::cxx::SharedPtr;
use ceres_solver_sys::ffi;
use std::pin::Pin;

pub type ResidualBlockId = SharedPtr<ffi::ResidualBlockId>;

#[allow(dead_code)] // we use this struct to pin the parameter pointers array in memory
pub(crate) struct ResidualBlock {
    pub(crate) id: ResidualBlockId,
    pub(crate) parameter_pointers: Pin<Vec<*mut f64>>,
}