Skip to content

Commit

Permalink
fixing one minor bug :(
Browse files Browse the repository at this point in the history
  • Loading branch information
angelip2303 committed Sep 15, 2023
1 parent 7ab422f commit a5cad56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/remote_hdt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub trait Engine {

fn get_second_term(&self, array: ArcArray3, size: usize, term: usize) -> ArcArray1<u8> {
let mut factor: Array2<u8> = Array2::zeros((size, size));
factor[[term, 0]] = 1;
factor[[term, term]] = 1; // we place it in the main diagonal

array
.axis_iter(Axis(0))
Expand All @@ -137,7 +137,7 @@ pub trait Engine {

fn get_third_term(&self, array: ArcArray3, size: usize, term: usize) -> ArcArray1<u8> {
let mut factor: Array2<u8> = Array2::zeros((size, size));
factor[[0, term]] = 1;
factor[[term, term]] = 1; // we place it in the main diagonal

array
.axis_iter(Axis(0))
Expand Down

0 comments on commit a5cad56

Please sign in to comment.