Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
DTU OceanWave3D
/
ow3d-seakeeping
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fb1b9f24
authored
Jan 30, 2023
by
maaf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a minor modification to LeastSquare.cpp due to GSL-2.7
parent
807374c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
cpp/utility/mathops/LeastSquare.cpp
+3
-1
No files found.
cpp/utility/mathops/LeastSquare.cpp
View file @
fb1b9f24
...
...
@@ -71,7 +71,9 @@ void OW3DSeakeeping::leastSquareFitting(
status
=
gsl_multifit_test_delta
(
s
->
dx
,
s
->
x
,
1e-4
,
1e-4
);
}
while
(
status
==
GSL_CONTINUE
&&
iter
<
1000
);
gsl_multifit_covar
(
s
->
J
,
0.0
,
covar
);
gsl_matrix
*
J
=
gsl_matrix_alloc
(
n
,
p
);
gsl_multifit_fdfsolver_jac
(
s
,
J
);
gsl_multifit_covar
(
J
,
0.0
,
covar
);
#define FIT(i) gsl_vector_get(s->x, i)
#define ERR(i) sqrt(gsl_matrix_get(covar, i, i))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment