1 /* matutil.h 2 3 Written by Don Robert Maszle 4 18 September 1992 5 6 Copyright (c) 1992-2017 Free Software Foundation, Inc. 7 8 This file is part of GNU MCSim. 9 10 GNU MCSim is free software; you can redistribute it and/or 11 modify it under the terms of the GNU General Public License 12 as published by the Free Software Foundation; either version 3 13 of the License, or (at your option) any later version. 14 15 GNU MCSim is distributed in the hope that it will be useful, 16 but WITHOUT ANY WARRANTY; without even the implied warranty of 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 GNU General Public License for more details. 19 20 You should have received a copy of the GNU General Public License 21 along with GNU MCSim; if not, see <http://www.gnu.org/licenses/> 22 */ 23 24 #ifndef MATUTIL_H_DEFINED 25 26 #include "hungtype.h" 27 28 /* ---------------------------------------------------------------------------- 29 Prototypes */ 30 31 int Cholesky (PDOUBLE *prgdVariance, PDOUBLE *prgdComponent, long lNparams); 32 33 void ColumnMeans (long cRows, long cCols, double **x, double *x_bar); 34 35 double **InitdMatrix (long cVectors, long cElemsEach); 36 37 long **InitlMatrix (long cVectors, long cElemsEach); 38 39 double *InitdVector (long cVectors); 40 41 int *InitiVector (long cVectors); 42 43 long *InitlVector (long cVectors); 44 45 double **InitpdVector (long cVectors); 46 47 double *LogTransformArray (long nElems, double *rgdSrc, double *rgdDes); 48 49 /* End */ 50 51 #define MATUTIL_H_DEFINED 52 #endif /* _MATUTIL_H_ */ 53 54 55 56 57