Improved code
This commit is contained in:
@@ -29,8 +29,8 @@ impl Matrix {
|
|||||||
let n = data.iter().map(|x| x.v).max().unwrap_or(-1) + 1;
|
let n = data.iter().map(|x| x.v).max().unwrap_or(-1) + 1;
|
||||||
|
|
||||||
MfProblem {
|
MfProblem {
|
||||||
m: m,
|
m,
|
||||||
n: n,
|
n,
|
||||||
nnz: data.len() as i64,
|
nnz: data.len() as i64,
|
||||||
r: data.as_ptr()
|
r: data.as_ptr()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user