pub trait AsInputMatrix1D {
// Required method
fn as_input_matrix(&self) -> InputMatrix<'_>;
}Expand description
Conversion helper trait for 1D-like first-order inputs.
This trait normalizes different containers into a 1 x N InputMatrix view.
It is used by APIs such as with_s() and with_constraint_1order().
Required Methods§
Sourcefn as_input_matrix(&self) -> InputMatrix<'_>
fn as_input_matrix(&self) -> InputMatrix<'_>
Borrow input data as a 1 x N matrix view.