---
name: "wngs"
section: "3"
platform: "linux"
package: "libwn-dev"
version: "6.0-17"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/wngs"
---

# wngs(3)

Gramm-Schmidt orthogonalization

## NAME

wn\_gramm\_schmidt - Gramm-Schmidt orthogonalization

## SYNOPSIS

```
#include <wn/wnmat.h>

void wn_gramm_schmidt(int code, double **mat, int len_i, int len_j)

```

## DESCRIPTION

**wn\_gramm\_schmidt** performs an in-place run on *mat*.  *mat*\[i\] are vectors which span the space; sweep is from i=0 to i=*len\_i*-1.

## RESOURCES

Gramm-Schmidt requires

WORST and AVERAGE CASE:

time = *len\_i*^2\**len\_j*\
 stack memory = 1\
 dynamic memory = 0

where the matrix to be processed is a *len\_i*\**len\_j* matrix.

## DIAGNOSTICS

*code* == **WN\_SUCCESS**  for success.\
 *code* == **WN\_SINGULAR**  for singular matrix.

## AUTHOR

Will Naylor
