Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ pub fn add<T: Numeric<T>>(a: &Sprs<T>, b: &Sprs<T>, alpha: T, beta: T) -> Sprs<T
///
/// See: `schol(...)`
///
#[must_use]
pub fn chol<T: Numeric<T>>(a: &Sprs<T>, s: &mut Symb) -> Result<Nmrc<T>, Error> {
let mut top;
let mut d;
Expand Down Expand Up @@ -372,6 +373,7 @@ pub fn chol<T: Numeric<T>>(a: &Sprs<T>, s: &mut Symb) -> Result<Nmrc<T>, Error>
/// println!("{:?}", &b);
/// ```
///
#[must_use]
pub fn cholsol<T: Numeric<T>>(a: &Sprs<T>, b: &mut [T], order: i8) -> Result<(), Error> {
let n = a.n;
let mut s = schol(a, order); // ordering and symbolic analysis
Expand Down Expand Up @@ -513,6 +515,7 @@ pub fn ltsolve<T: Numeric<T>>(l: &Sprs<T>, x: &mut [T]) {
///
/// See: `sqr(...)`
///
#[must_use]
pub fn lu<T: Numeric<T>>(a: &Sprs<T>, s: &mut Symb, tol: T) -> Result<Nmrc<T>, Error> {
let n = a.n;
let mut col;
Expand Down Expand Up @@ -665,6 +668,7 @@ pub fn lu<T: Numeric<T>>(a: &Sprs<T>, s: &mut Symb, tol: T) -> Result<Nmrc<T>, E
/// ```

///
#[must_use]
pub fn lusol<T: Numeric<T>>(a: &Sprs<T>, b: &mut [T], order: i8, tol: T) -> Result<(), Error> {
let mut x = vec![T::zero(); a.n];
let mut s;
Expand Down