Skip to content
Snippets Groups Projects
Commit 7d9683c3 authored by Daniel Maier's avatar Daniel Maier
Browse files

codes/gramschmidt: fix calc_error

parent 3c1dbe00
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ void calc_error(int m, int n,
double err = 0;
{
double *accurate = &_binary_data_r_bin_start;
double *test = R;
double *test = &(R[0][0]);
for(i = 0; i < num; i++) {
if(fabs(accurate[i] - test[i]) > 0.0) {
......@@ -107,7 +107,7 @@ void calc_error(int m, int n,
}
{
double *accurate = &_binary_data_q_bin_start;
double *test = Q;
double *test = &(Q[0][0]);
for(i = 0; i < num; i++) {
if(fabs(accurate[i] - test[i]) > 0.0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment