File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 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
2020
2121system = System {Float64} (graph_matrix, dimensions; symmetric= false ) # The resulting linear system. Set symmetric=true for symmetric systems
2222
23- initialize! (system) # initialize! all system entries
23+ initialize! (system, randn ) # initialize all system entries randomly
2424system. matrix_entries[1 ,2 ]. value = rand (2 ,3 ) # Directly set the value of a matrix entry
2525system. vector_entries[4 ]. value = rand (1 ) # Directly set the value of a vector entry
2626
2727A = full_matrix (system) # Inspect the matrix
2828b = full_vector (system) # Inspect the vector
2929
30- lu_solve ! (system) # Solve the system inplace
30+ ldu_solve ! (system) # Solve the system inplace
3131
3232x = full_vector (system) # Inspect the result
3333x - A\ b # Compare to classical implementation
You can’t perform that action at this time.
0 commit comments