pub trait NVariableStorage:
IndexMut<usize, Output = f64>
+ AsRef<[f64]>
+ AsMut<[f64]>
+ Clone {
type Data;
type Given<'a>: AsRef<[f64]>
where Self: 'a;
// Required methods
fn new_filled(data: &Self::Data, num: f64) -> Self;
fn borrow(&self) -> Self::Given<'_>;
}
Available on crate feature
regression
only.Expand description
A trait which allows storage of n-variable optimization, either on the stack through arrays
([f64; VARIABLE_COUNT]
) or allocated on the heap through Vec
.