diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-11-27 10:16:47 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-11-27 10:16:47 -0700 |
commit | 09dd5c5eb250d866c939965d6ec8ccb919b4dc0a (patch) | |
tree | 5859d1b512ad6e8bd49c4832069283677b84f180 /test/eigen.t.c | |
parent | aa77d733b0cb100b63a824c60548f19526711bbc (diff) | |
download | cmath-09dd5c5eb250d866c939965d6ec8ccb919b4dc0a.tar.gz cmath-09dd5c5eb250d866c939965d6ec8ccb919b4dc0a.zip |
normalize eigenvector for numerical running purposes
Diffstat (limited to 'test/eigen.t.c')
-rw-r--r-- | test/eigen.t.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/eigen.t.c b/test/eigen.t.c index 31c3500..f271bf2 100644 --- a/test/eigen.t.c +++ b/test/eigen.t.c @@ -25,7 +25,7 @@ UTEST(eigen, leslie_matrix_dominant_eigenvalue) { Array_double *felicity = InitArray(double, {0.0, 1.5, 0.8}); Array_double *survivor_ratios = InitArray(double, {0.8, 0.55}); Matrix_double *leslie = leslie_matrix(survivor_ratios, felicity); - Array_double *v_guess = InitArrayWithSize(double, 3, 1.0); + Array_double *v_guess = InitArrayWithSize(double, 3, 2.0); double tolerance = 0.0001; uint64_t max_iterations = 64; |