
A2.5 Ox exported mathematics functions 61
mXt[cX][cT] in: result from IDecQRt
out: may have been overwritten
piPiv[cX] in: pivots (output from IDecQRt)
pcR in: row rank of X
0
(output from IDecQRt)
vTau[cX] in: scale factors (output from IDecQRt)
.. . other arguments are as for IOlsQR
Description
performs ordinary least squares (OLS).
IRanBinomial, IRanLogarithmic, IRanNegBin, IRanPoisson
int IRanBinomial(int n, double p);
int IRanLogarithmic(double dA);
int IRanNegBin(int iN, double dP);
int IRanPoisson(double dMu);
Return value
Returns random numbers from Binomial/Logarithmic/Negative bino-
mial/Poisson distributions.
ISymInv,ISymInvDet
int ISymInv(MATRIX mA, int cA);
int ISymInvDet(MATRIX mA, int cA, double *pdLogDet);
mA[cA][cA] in: ptr to sym. pd. matrix to be inverted
out: contains the inverse, if successful
pdLogDet in: address of double or NULL
out: contains the log determinant (if not NULL on in-
put)
Return value
0: success; 1,2,3: see ILDLdec.
LDLbandSolve
void LDLbandSolve(MATRIX mL, VECTOR vD, VECTOR vX, VECTOR vB,
int cB, int cA);
mL[cB][cA] in: L from calling ILDLbandDec
vD[cA] in: the reciprocal of D
vX[cA] out: the solution vX (if (vX == vB) then vB is over-
written by the solution)
vB[cA] in: pointer containing the r.h.s. of Lx = b
cB in: 1+bandwidth
No return value.
Description
Solves Ax = b, with A = LDL
0
a symmetric positive definite band matrix.
Comentários a estes Manuais