bugfix sparse algo visibility

This commit is contained in:
Magnus Ulimoen 2021-01-25 20:53:56 +01:00
parent 0f261ef507
commit 1069bad145
1 changed files with 2 additions and 2 deletions

View File

@ -404,7 +404,7 @@ pub(crate) fn diff_op_row(
} }
#[cfg(feature = "sparse")] #[cfg(feature = "sparse")]
fn sparse_from_block( pub(crate) fn sparse_from_block(
block: &[&[Float]], block: &[&[Float]],
diag: &[Float], diag: &[Float],
symmetry: Symmetry, symmetry: Symmetry,
@ -472,7 +472,7 @@ fn sparse_from_block(
} }
#[cfg(feature = "sparse")] #[cfg(feature = "sparse")]
fn h_matrix(diag: &[Float], n: usize, is_h2: bool) -> sprs::CsMat<Float> { pub(crate) fn h_matrix(diag: &[Float], n: usize, is_h2: bool) -> sprs::CsMat<Float> {
let h = if is_h2 { let h = if is_h2 {
1.0 / (n - 2) as Float 1.0 / (n - 2) as Float
} else { } else {