1 2 3 4 5 6 7 8 9 10
use crate::LinearSolver; use super::Matrix; pub trait DefaultSolver: Matrix { type LS: LinearSolver<Self> + Default; fn default_solver() -> Self::LS { Self::LS::default() } }