Skip to content

Commit f50a6b8

Browse files
committed
Revise solve_triangular algorithm
1 parent 0d58102 commit f50a6b8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/impl2/triangular.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,8 @@ impl Triangular_ for $scalar {
3333
fn solve_triangular(al: Layout, bl: Layout, uplo: UPLO, diag: Diag, a: &[Self], mut b: &mut [Self]) -> Result<()> {
3434
let (n, _) = al.size();
3535
let lda = al.lda();
36-
let nrhs = bl.len();
37-
let ldb = match al {
38-
Layout::C(_) => bl.len() as i32,
39-
Layout::F(_) => bl.lda() as i32,
40-
};
36+
let (_, nrhs) = bl.size();
37+
let ldb = bl.lda();
4138
println!("al = {:?}", al);
4239
println!("bl = {:?}", bl);
4340
println!("n = {}", n);

0 commit comments

Comments
 (0)