Skip to content

Commit

Permalink
README update
Browse files Browse the repository at this point in the history
- Moved `print_matrix` example function outside `main`
  • Loading branch information
RLado committed Apr 12, 2024
1 parent 363e903 commit efd766b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ fn main(){
// Transform to dense and print result
println!("\nC");
print_matrix(&c.to_dense());
}

fn print_matrix(vec: &[Vec<f64>]) {
for row in vec {
println!("{:?}", row);
}
fn print_matrix(vec: &[Vec<f64>]) {
for row in vec {
println!("{:?}", row);
}
}
```
Expand Down

0 comments on commit efd766b

Please sign in to comment.