Fix clippy warnings (#139)
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
This commit is contained in:
@@ -12,7 +12,7 @@ pub struct HeapSelection<T: PartialOrd + Debug> {
|
|||||||
heap: Vec<T>,
|
heap: Vec<T>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, T: PartialOrd + Debug> HeapSelection<T> {
|
impl<T: PartialOrd + Debug> HeapSelection<T> {
|
||||||
pub fn with_capacity(k: usize) -> HeapSelection<T> {
|
pub fn with_capacity(k: usize) -> HeapSelection<T> {
|
||||||
HeapSelection {
|
HeapSelection {
|
||||||
k,
|
k,
|
||||||
|
|||||||
@@ -211,9 +211,7 @@ impl<T: RealNumber, M: Matrix<T>> InteriorPointOptimizer<T, M> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, T: RealNumber, M: Matrix<T>> BiconjugateGradientSolver<T, M>
|
impl<T: RealNumber, M: Matrix<T>> BiconjugateGradientSolver<T, M> for InteriorPointOptimizer<T, M> {
|
||||||
for InteriorPointOptimizer<T, M>
|
|
||||||
{
|
|
||||||
fn solve_preconditioner(&self, a: &M, b: &M, x: &mut M) {
|
fn solve_preconditioner(&self, a: &M, b: &M, x: &mut M) {
|
||||||
let (_, p) = a.shape();
|
let (_, p) = a.shape();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user