raddy/
types.rs

1#![allow(non_camel_case_types)]
2
3use crate::Ad;
4
5pub(crate) type vec<const L: usize> = na::SVector<f64, L>;
6pub(crate) type mat<const RC: usize> = na::SMatrix<f64, RC, RC>;
7
8/// Automatic differentiated vector (from nalgebra)
9/// N is the variable size the vector is w.r.t.
10pub type advec<const N: usize, const L: usize> = na::SVector<Ad<N>, L>;
11/// Automatic differentiated matrix (from nalgebra)
12/// N is the variable size the matrix is w.r.t.
13pub type admat<const N: usize, const R: usize, const C: usize> = na::SMatrix<Ad<N>, R, C>;