Revision 0dbb71197f123f711e714db6f8f55b40031f4529 authored by A.I. McLeod on 14 December 2012, 00:00:00 UTC, committed by Gabor Csardi on 14 December 2012, 00:00:00 UTC
1 parent b417f2d
trenchDet.c
// Determinant computation of a Toeplitz matrix
// Takes arguments r,n and v
// Returns logDet, the logarithm of determinant
#include "trenchR.h"
double trenchDet(double *r,int n,double *v)
{
int i;
double logDet;
logDet = 0.0;
for (i = 1; i < n; i++)
logDet += log(v[i]);
return logDet;
}
Computing file changes ...