Skip to main content

AsInputMatrix1D

Trait AsInputMatrix1D 

Source
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§

Source

fn as_input_matrix(&self) -> InputMatrix<'_>

Borrow input data as a 1 x N matrix view.

Implementations on Foreign Types§

Source§

impl AsInputMatrix1D for Vec<f64>

Source§

impl AsInputMatrix1D for [f64]

Implementors§