use crate::DType;
mod bounded;
mod leastsq;
pub use bounded::least_squares_impl;
pub use leastsq::leastsq_impl;
use numr::runtime::Runtime;
use numr::tensor::Tensor;
#[derive(Debug, Clone)]
pub struct TensorLeastSquaresResult<R: Runtime<DType = DType>> {
pub x: Tensor<R>,
pub residuals: Tensor<R>,
pub cost: f64,
pub iterations: usize,
pub nfev: usize,
pub converged: bool,
}