Skip to content

Commit

Permalink
adds imports to readme ex
Browse files Browse the repository at this point in the history
  • Loading branch information
wgurecky committed Mar 12, 2024
1 parent c6e4073 commit 00857a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ Use

Example use:

use faer_gmres::gmres;
use faer::prelude::*;
use faer::sparse::*;
use faer::mat;

// create faer sparse mat from triplets
let a_test_triplets = vec![
(0, 0, 1.0),
Expand All @@ -27,7 +32,7 @@ Example use:
[2.0],
];

// initia sol guess
// init sol guess
let x0 = faer::mat![
[0.0],
[0.0],
Expand Down

0 comments on commit 00857a6

Please sign in to comment.