3 #include "CLHEP/Random/RandGauss.h"
10 : theSize(aMatrix.num_row()), theMeans(aVector), theTriangle(theSize, theSize, 0) {
25 : theSize(aMatrix.num_row()), theMeans(theSize, 0), theTriangle(theSize, theSize, 0) {
36 for (
int i1 = 0; i1 <
theSize; i1++) {
37 if (fabs(aMatrix[i1][i1]) < FLT_MIN)
40 for (
int i2 = i1; i2 <
theSize; i2++) {
41 if (fabs(aMatrix[i2][i2]) < FLT_MIN)
44 double sum = aMatrix[i2][i1];
45 for (
int i3 = i1 - 1; i3 >= 0; i3--) {
46 if (fabs(aMatrix[i3][i3]) < FLT_MIN)
75 vRandom[
i] = CLHEP::RandGauss::shoot();
AlgebraicMatrix theTriangle
void initialise(const AlgebraicSymMatrix &)
CLHEP::HepVector AlgebraicVector
CLHEP::HepSymMatrix AlgebraicSymMatrix
RandomMultiGauss(const AlgebraicVector &aVector, const AlgebraicSymMatrix &aMatrix)