Trait gmt_dos_clients_fem::Model

source ·
pub trait Model {
Show 16 methods // Required methods fn in_position<U>(&self) -> Option<usize> where U: UniqueIdentifier, Vec<Option<Inputs>>: FemIo<U>; fn keep_input<U>(&mut self) -> Option<&mut Self> where U: UniqueIdentifier, Vec<Option<Inputs>>: FemIo<U>; fn keep_input_by<U, F>(&mut self, pred: F) -> Option<&mut Self> where U: UniqueIdentifier, Vec<Option<Inputs>>: FemIo<U>, F: Fn(&IOData) -> bool + Copy; fn out_position<U>(&self) -> Option<usize> where U: UniqueIdentifier, Vec<Option<Outputs>>: FemIo<U>; fn keep_output<U>(&mut self) -> Option<&mut Self> where U: UniqueIdentifier, Vec<Option<Outputs>>: FemIo<U>; fn keep_output_by<U, F>(&mut self, pred: F) -> Option<&mut Self> where U: UniqueIdentifier, Vec<Option<Outputs>>: FemIo<U>, F: Fn(&IOData) -> bool + Copy; fn in2modes<U>(&self) -> Option<Vec<f64>> where U: UniqueIdentifier, Vec<Option<Inputs>>: FemIo<U>; fn trim2in<U>(&self, matrix: &DMatrix<f64>) -> Option<DMatrix<f64>> where U: UniqueIdentifier, Vec<Option<Inputs>>: FemIo<U>; fn modes2out<U>(&self) -> Option<Vec<f64>> where U: UniqueIdentifier, Vec<Option<Outputs>>: FemIo<U>; fn trim2out<U>(&self, matrix: &DMatrix<f64>) -> Option<DMatrix<f64>> where U: UniqueIdentifier, Vec<Option<Outputs>>: FemIo<U>; fn switch_inputs( &mut self, switch: Switch, id: Option<&[usize]> ) -> &mut Self; fn switch_outputs( &mut self, switch: Switch, id: Option<&[usize]> ) -> &mut Self; fn switch_input<U>(&mut self, switch: Switch) -> Option<&mut Self> where U: UniqueIdentifier, Vec<Option<Inputs>>: FemIo<U>; fn switch_output<U>(&mut self, switch: Switch) -> Option<&mut Self> where U: UniqueIdentifier, Vec<Option<Outputs>>: FemIo<U>; fn switch_inputs_by_name<S: Into<String>>( &mut self, names: Vec<S>, switch: Switch ) -> Result<&mut Self>; fn switch_outputs_by_name<S: Into<String>>( &mut self, names: Vec<S>, switch: Switch ) -> Result<&mut Self>;
}

Required Methods§

source

fn in_position<U>(&self) -> Option<usize>

source

fn keep_input<U>(&mut self) -> Option<&mut Self>

source

fn keep_input_by<U, F>(&mut self, pred: F) -> Option<&mut Self>
where U: UniqueIdentifier, Vec<Option<Inputs>>: FemIo<U>, F: Fn(&IOData) -> bool + Copy,

source

fn out_position<U>(&self) -> Option<usize>

source

fn keep_output<U>(&mut self) -> Option<&mut Self>

source

fn keep_output_by<U, F>(&mut self, pred: F) -> Option<&mut Self>
where U: UniqueIdentifier, Vec<Option<Outputs>>: FemIo<U>, F: Fn(&IOData) -> bool + Copy,

source

fn in2modes<U>(&self) -> Option<Vec<f64>>

source

fn trim2in<U>(&self, matrix: &DMatrix<f64>) -> Option<DMatrix<f64>>

source

fn modes2out<U>(&self) -> Option<Vec<f64>>

source

fn trim2out<U>(&self, matrix: &DMatrix<f64>) -> Option<DMatrix<f64>>

source

fn switch_inputs(&mut self, switch: Switch, id: Option<&[usize]>) -> &mut Self

source

fn switch_outputs(&mut self, switch: Switch, id: Option<&[usize]>) -> &mut Self

source

fn switch_input<U>(&mut self, switch: Switch) -> Option<&mut Self>

source

fn switch_output<U>(&mut self, switch: Switch) -> Option<&mut Self>

source

fn switch_inputs_by_name<S: Into<String>>( &mut self, names: Vec<S>, switch: Switch ) -> Result<&mut Self>

source

fn switch_outputs_by_name<S: Into<String>>( &mut self, names: Vec<S>, switch: Switch ) -> Result<&mut Self>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Model for FEM

source§

fn in2modes<U>(&self) -> Option<Vec<f64>>

Returns the inputs 2 modes transformation matrix for an input type

source§

fn modes2out<U>(&self) -> Option<Vec<f64>>

Returns the modes 2 outputs transformation matrix for an output type

source§

fn switch_inputs(&mut self, switch: Switch, id: Option<&[usize]>) -> &mut Self

Inputs on/off switch

Either flips all inputs if id is None or only the inputs specified with id

source§

fn switch_outputs(&mut self, switch: Switch, id: Option<&[usize]>) -> &mut Self

Outputs on/off switch

Either flips all outputs if id is None or only the outputs specified with id

source§

fn switch_input<U>(&mut self, switch: Switch) -> Option<&mut Self>

Input on/off switch

Flips input of type U

source§

fn switch_output<U>(&mut self, switch: Switch) -> Option<&mut Self>

Output on/off switch

Flips output of type U

source§

fn switch_inputs_by_name<S: Into<String>>( &mut self, names: Vec<S>, switch: Switch ) -> Result<&mut Self>

Inputs on/off switch

Flips inputs with the given names

source§

fn switch_outputs_by_name<S: Into<String>>( &mut self, names: Vec<S>, switch: Switch ) -> Result<&mut Self>

Outputs on/off switch

Flips outputs with the given names

source§

fn in_position<U>(&self) -> Option<usize>

source§

fn keep_input<U>(&mut self) -> Option<&mut Self>

source§

fn keep_input_by<U, F>(&mut self, pred: F) -> Option<&mut Self>
where U: UniqueIdentifier, Vec<Option<Inputs>>: FemIo<U>, F: Fn(&IOData) -> bool + Copy,

source§

fn out_position<U>(&self) -> Option<usize>

source§

fn keep_output<U>(&mut self) -> Option<&mut Self>

source§

fn keep_output_by<U, F>(&mut self, pred: F) -> Option<&mut Self>
where U: UniqueIdentifier, Vec<Option<Outputs>>: FemIo<U>, F: Fn(&IOData) -> bool + Copy,

source§

fn trim2in<U>(&self, matrix: &DMatrix<f64>) -> Option<DMatrix<f64>>

source§

fn trim2out<U>(&self, matrix: &DMatrix<f64>) -> Option<DMatrix<f64>>

Implementors§