raddy 0.0.0-beta2

An automatic differentiation system for geometry and simulation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![allow(non_camel_case_types)]

use crate::Ad;

pub(crate) type vec<const L: usize> = na::SVector<f64, L>;
pub(crate) type mat<const RC: usize> = na::SMatrix<f64, RC, RC>;

/// Automatic differentiated vector (from nalgebra)
/// N is the variable size the vector is w.r.t.
pub type advec<const N: usize, const L: usize> = na::SVector<Ad<N>, L>;
/// Automatic differentiated matrix (from nalgebra)
/// N is the variable size the matrix is w.r.t.
pub type admat<const N: usize, const R: usize, const C: usize> = na::SMatrix<Ad<N>, R, C>;