-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
let mut m = sparse21::Matrix::from_entries(vec![
(0, 0, 1.0),
(0, 1, -1.0),
(1, 0, -1.0),
(1, 1, 1.0),
(2, 0, 1.0),
// (2, 2, 1.0),
]);
let soln = m.solve(vec![-3.3, 3.3, 0.]).unwrap();The matrix is:
01 -1 = -3.3
-1 01 = 3.3
01 = 0.0
Am I holding it wrong? must the number of rows in the matrix equal the number of variables?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels