Revision 72f0ab7f859a80d0028d4552ee318382108d8bac authored by A.I. McLeod on 05 January 2008, 00:00:00 UTC, committed by Gabor Csardi on 05 January 2008, 00:00:00 UTC
1 parent 97cfa01
Raw File
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;
}
	

back to top