NEURON
zqrfctr.c File Reference
#include <../../nrnconf.h>
#include <stdio.h>
#include "zmatrix.h"
#include "zmatrix2.h"
#include <math.h>

Go to the source code of this file.

Macros

#define is_zero(z)   ((z).re == 0.0 && (z).im == 0.0)
 
#define sign(x)   ((x) > 0.0 ? 1 : ((x) < 0.0 ? -1 : 0 ))
 

Functions

ZMATzQRfactor (ZMAT *A, ZVEC *diag)
 
ZMATzQRCPfactor (ZMAT *A, ZVEC *diag, PERM *px)
 
ZVEC_zQsolve (ZMAT *QR, ZVEC *diag, ZVEC *b, ZVEC *x, ZVEC *tmp)
 
ZMATzmakeQ (ZMAT *QR, ZVEC *diag, ZMAT *Qout)
 
ZMATzmakeR (ZMAT *QR, ZMAT *Rout)
 
ZVECzQRsolve (ZMAT *QR, ZVEC *diag, ZVEC *b, ZVEC *x)
 
ZVECzQRAsolve (ZMAT *QR, ZVEC *diag, ZVEC *b, ZVEC *x)
 
ZVECzQRCPsolve (ZMAT *QR, ZVEC *diag, PERM *pivot, ZVEC *b, ZVEC *x)
 
ZVECzUmlt (ZMAT *U, ZVEC *x, ZVEC *out)
 
ZVECzUAmlt (ZMAT *U, ZVEC *x, ZVEC *out)
 
double zQRcondest (ZMAT *QR)
 

Variables

static char rcsid [] = "zqrfctr.c,v 1.1 1997/12/04 17:56:15 hines Exp"
 

Macro Definition Documentation

◆ is_zero

#define is_zero (   z)    ((z).re == 0.0 && (z).im == 0.0)

Definition at line 50 of file zqrfctr.c.

◆ sign

#define sign (   x)    ((x) > 0.0 ? 1 : ((x) < 0.0 ? -1 : 0 ))

Definition at line 53 of file zqrfctr.c.

Function Documentation

◆ _zQsolve()

ZVEC* _zQsolve ( ZMAT QR,
ZVEC diag,
ZVEC b,
ZVEC x,
ZVEC tmp 
)

Definition at line 187 of file zqrfctr.c.

◆ zmakeQ()

ZMAT* zmakeQ ( ZMAT QR,
ZVEC diag,
ZMAT Qout 
)

Definition at line 227 of file zqrfctr.c.

◆ zmakeR()

ZMAT* zmakeR ( ZMAT QR,
ZMAT Rout 
)

Definition at line 276 of file zqrfctr.c.

◆ zQRAsolve()

ZVEC* zQRAsolve ( ZMAT QR,
ZVEC diag,
ZVEC b,
ZVEC x 
)

Definition at line 320 of file zqrfctr.c.

◆ zQRcondest()

double zQRcondest ( ZMAT QR)

Definition at line 432 of file zqrfctr.c.

◆ zQRCPfactor()

ZMAT* zQRCPfactor ( ZMAT A,
ZVEC diag,
PERM px 
)

Definition at line 101 of file zqrfctr.c.

◆ zQRCPsolve()

ZVEC* zQRCPsolve ( ZMAT QR,
ZVEC diag,
PERM pivot,
ZVEC b,
ZVEC x 
)

Definition at line 360 of file zqrfctr.c.

◆ zQRfactor()

ZMAT* zQRfactor ( ZMAT A,
ZVEC diag 
)

Definition at line 65 of file zqrfctr.c.

◆ zQRsolve()

ZVEC* zQRsolve ( ZMAT QR,
ZVEC diag,
ZVEC b,
ZVEC x 
)

Definition at line 294 of file zqrfctr.c.

◆ zUAmlt()

ZVEC* zUAmlt ( ZMAT U,
ZVEC x,
ZVEC out 
)

Definition at line 399 of file zqrfctr.c.

◆ zUmlt()

ZVEC* zUmlt ( ZMAT U,
ZVEC x,
ZVEC out 
)

Definition at line 379 of file zqrfctr.c.

Variable Documentation

◆ rcsid

char rcsid[] = "zqrfctr.c,v 1.1 1997/12/04 17:56:15 hines Exp"
static

Definition at line 42 of file zqrfctr.c.