use crate::FortranInteger;
pub type NonlinearFnF64 =
unsafe extern "C" fn(*const FortranInteger, *const f64, *mut f64, *mut FortranInteger);
pub type NonlinearFnF32 =
unsafe extern "C" fn(*const FortranInteger, *const f32, *mut f32, *mut FortranInteger);
pub type NonlinearJacF64 = unsafe extern "C" fn(
*const FortranInteger,
*const f64,
*const f64,
*mut f64,
*const FortranInteger,
*mut FortranInteger,
);
pub type NonlinearJacF32 = unsafe extern "C" fn(
*const FortranInteger,
*const f32,
*const f32,
*mut f32,
*const FortranInteger,
*mut FortranInteger,
);
#[cfg(feature = "raw-family-nonlinear-systems")]
pub type SosEquationF32 = unsafe extern "C" fn(*const f32, *const FortranInteger) -> f32;
#[cfg(feature = "raw-family-nonlinear-systems")]
pub type SosEquationF64 = unsafe extern "C" fn(*const f64, *const FortranInteger) -> f64;
unsafe extern "C" {
#[link_name = "dnsqe_"]
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/generated_docs/dnsqe.md"))]
pub fn dnsqe(
function: NonlinearFnF64,
jacobian: NonlinearJacF64,
iopt: *mut FortranInteger,
n: *mut FortranInteger,
x: *mut f64,
fvec: *mut f64,
tolerance: *mut f64,
nprint: *mut FortranInteger,
info: *mut FortranInteger,
workspace: *mut f64,
workspace_length: *mut FortranInteger,
);
#[link_name = "snsqe_"]
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/generated_docs/snsqe.md"))]
pub fn snsqe(
function: NonlinearFnF32,
jacobian: NonlinearJacF32,
iopt: *mut FortranInteger,
n: *mut FortranInteger,
x: *mut f32,
fvec: *mut f32,
tolerance: *mut f32,
nprint: *mut FortranInteger,
info: *mut FortranInteger,
workspace: *mut f32,
workspace_length: *mut FortranInteger,
);
#[link_name = "dnsq_"]
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/generated_docs/dnsq.md"))]
pub fn dnsq(
function: NonlinearFnF64,
jacobian: NonlinearJacF64,
iopt: *mut FortranInteger,
n: *mut FortranInteger,
x: *mut f64,
fvec: *mut f64,
fjac: *mut f64,
ldfjac: *mut FortranInteger,
xtol: *mut f64,
maxfev: *mut FortranInteger,
ml: *mut FortranInteger,
mu: *mut FortranInteger,
epsfcn: *mut f64,
diag: *mut f64,
mode: *mut FortranInteger,
factor: *mut f64,
nprint: *mut FortranInteger,
info: *mut FortranInteger,
nfev: *mut FortranInteger,
njev: *mut FortranInteger,
r: *mut f64,
lr: *mut FortranInteger,
qtf: *mut f64,
wa1: *mut f64,
wa2: *mut f64,
wa3: *mut f64,
wa4: *mut f64,
);
#[link_name = "snsq_"]
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/generated_docs/snsq.md"))]
pub fn snsq(
function: NonlinearFnF32,
jacobian: NonlinearJacF32,
iopt: *mut FortranInteger,
n: *mut FortranInteger,
x: *mut f32,
fvec: *mut f32,
fjac: *mut f32,
ldfjac: *mut FortranInteger,
xtol: *mut f32,
maxfev: *mut FortranInteger,
ml: *mut FortranInteger,
mu: *mut FortranInteger,
epsfcn: *mut f32,
diag: *mut f32,
mode: *mut FortranInteger,
factor: *mut f32,
nprint: *mut FortranInteger,
info: *mut FortranInteger,
nfev: *mut FortranInteger,
njev: *mut FortranInteger,
r: *mut f32,
lr: *mut FortranInteger,
qtf: *mut f32,
wa1: *mut f32,
wa2: *mut f32,
wa3: *mut f32,
wa4: *mut f32,
);
#[link_name = "dckder_"]
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/generated_docs/dckder.md"))]
pub fn dckder(
m: *mut FortranInteger,
n: *mut FortranInteger,
x: *mut f64,
fvec: *mut f64,
fjac: *mut f64,
ldfjac: *mut FortranInteger,
xp: *mut f64,
fvecp: *mut f64,
mode: *mut FortranInteger,
error: *mut f64,
);
#[link_name = "chkder_"]
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/generated_docs/chkder.md"))]
pub fn chkder(
m: *mut FortranInteger,
n: *mut FortranInteger,
x: *mut f32,
fvec: *mut f32,
fjac: *mut f32,
ldfjac: *mut FortranInteger,
xp: *mut f32,
fvecp: *mut f32,
mode: *mut FortranInteger,
error: *mut f32,
);
#[cfg(feature = "raw-family-nonlinear-systems")]
#[link_name = "sos_"]
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/generated_docs/sos.md"))]
pub fn sos(
function: SosEquationF32,
equation_count: *mut FortranInteger,
solution: *mut f32,
relative_x_tolerance: *mut f32,
absolute_x_tolerance: *mut f32,
residual_tolerance: *mut f32,
status: *mut FortranInteger,
real_workspace: *mut f32,
real_workspace_length: *mut FortranInteger,
integer_workspace: *mut FortranInteger,
integer_workspace_length: *mut FortranInteger,
);
#[cfg(feature = "raw-family-nonlinear-systems")]
#[link_name = "dsos_"]
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/generated_docs/dsos.md"))]
pub fn dsos(
function: SosEquationF64,
equation_count: *mut FortranInteger,
solution: *mut f64,
relative_x_tolerance: *mut f64,
absolute_x_tolerance: *mut f64,
residual_tolerance: *mut f64,
status: *mut FortranInteger,
real_workspace: *mut f64,
real_workspace_length: *mut FortranInteger,
integer_workspace: *mut FortranInteger,
integer_workspace_length: *mut FortranInteger,
);
}
#[cfg(feature = "raw-family-nonlinear-systems")]
pub mod systems {
pub use super::{dsos, sos, SosEquationF32, SosEquationF64};
}
#[cfg(feature = "raw-family-nonlinear-jacobian")]
#[path = "batch_a/nonlinear.rs"]
mod canonical_bindings;
#[cfg(feature = "raw-family-nonlinear-jacobian")]
pub use canonical_bindings::*;