| 1 |
/* |
| 2 |
* Copyright(C) 1999-2020, 2023 National Technology & Engineering Solutions |
| 3 |
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with |
| 4 |
* NTESS, the U.S. Government retains certain rights in this software. |
| 5 |
* |
| 6 |
* See packages/seacas/LICENSE for details |
| 7 |
*/ |
| 8 |
|
| 9 |
#include "defs.h" |
| 10 |
#include "structs.h" |
| 11 |
#include <stdio.h> |
| 12 |
|
| 13 |
void orthogonalize(double *vec, /* vector to be orthogonalized */ |
| 14 |
int n, /* length of the columns of orth */ |
| 15 |
struct orthlink *orthlist /* set of vectors to orthogonalize against */ |
| 16 |
) |
| 17 |
{ |
| 18 |
struct orthlink *curlnk = orthlist; |
| 19 |
while (curlnk != NULL) { |
| 20 |
orthogvec(vec, 1, n, curlnk->vec); |
| 21 |
curlnk = curlnk->pntr; |
| 22 |
} |
| 23 |
} |