fix: minor refactoring

This commit is contained in:
Volodymyr Orlov
2020-03-31 18:24:01 -07:00
parent 8bb6013430
commit 5766364311
15 changed files with 49 additions and 52 deletions
+3 -3
View File
@@ -6,13 +6,13 @@ use crate::math::num::FloatExt;
use crate::linalg::BaseMatrix;
#[derive(Debug, Clone)]
pub struct QR<T: FloatExt + Debug, M: BaseMatrix<T>> {
pub struct QR<T: FloatExt, M: BaseMatrix<T>> {
QR: M,
tau: Vec<T>,
singular: bool
}
impl<T: FloatExt + Debug, M: BaseMatrix<T>> QR<T, M> {
impl<T: FloatExt, M: BaseMatrix<T>> QR<T, M> {
pub fn new(QR: M, tau: Vec<T>) -> QR<T, M> {
let mut singular = false;
@@ -112,7 +112,7 @@ impl<T: FloatExt + Debug, M: BaseMatrix<T>> QR<T, M> {
}
}
pub trait QRDecomposableMatrix<T: FloatExt + Debug>: BaseMatrix<T> {
pub trait QRDecomposableMatrix<T: FloatExt>: BaseMatrix<T> {
fn qr(&self) -> QR<T, Self> {
self.clone().qr_mut()