File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ dimensions = [2; 3; 0; 1] # The dimension of row/column
20
20
21
21
system = System {Float64} (graph_matrix, dimensions; symmetric= false ) # The resulting linear system. Set symmetric=true for symmetric systems
22
22
23
- initialize! (system) # initialize! all system entries
23
+ initialize! (system, randn ) # initialize all system entries randomly
24
24
system. matrix_entries[1 ,2 ]. value = rand (2 ,3 ) # Directly set the value of a matrix entry
25
25
system. vector_entries[4 ]. value = rand (1 ) # Directly set the value of a vector entry
26
26
27
27
A = full_matrix (system) # Inspect the matrix
28
28
b = full_vector (system) # Inspect the vector
29
29
30
- lu_solve ! (system) # Solve the system inplace
30
+ ldu_solve ! (system) # Solve the system inplace
31
31
32
32
x = full_vector (system) # Inspect the result
33
33
x - A\ b # Compare to classical implementation
You can’t perform that action at this time.
0 commit comments