Skip to content

Commit 6eb4b9b

Browse files
committed
Remove drop_{upper,lower}
1 parent 0d9e76d commit 6eb4b9b

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/triangular.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,3 @@ impl<A, S> IntoTriangular<ArrayBase<S, Ix2>> for ArrayBase<S, Ix2>
126126
self
127127
}
128128
}
129-
130-
pub fn drop_upper<A: Zero, S>(a: ArrayBase<S, Ix2>) -> ArrayBase<S, Ix2>
131-
where S: DataMut<Elem = A>
132-
{
133-
a.into_triangular(UPLO::Lower)
134-
}
135-
136-
pub fn drop_lower<A: Zero, S>(a: ArrayBase<S, Ix2>) -> ArrayBase<S, Ix2>
137-
where S: DataMut<Elem = A>
138-
{
139-
a.into_triangular(UPLO::Upper)
140-
}

tests/qr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fn test(a: Array2<f64>, n: usize, m: usize) {
1515
println!("r = \n{:?}", &r);
1616
assert_close_l2!(&q.t().dot(&q), &Array::eye(min(n, m)), 1e-7);
1717
assert_close_l2!(&q.dot(&r), &ans, 1e-7);
18-
assert_close_l2!(&drop_lower(r.clone()), &r, 1e-7);
18+
assert_close_l2!(&r.clone().into_triangular(UPLO::Upper), &r, 1e-7);
1919
}
2020

2121
#[test]

0 commit comments

Comments
 (0)