134 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
138 #include "../Exceptions/exceptions.h"
139 #include "../MemOps/MemOps.h"
249 for ( i = 0; i < m; i++ ) v[i*(n+1)+0] = 1.0;
250 if ( n < 1 )
return v;
252 for ( i = 0; i < m; i++ ) v[i*(n+1)+1] = x[i];
254 for ( i = 0; i < m; i++ ) {
255 for ( j = 2; j <= n; j++ ) {
257 v[j+i*(n+1)] = ( (
IssmDouble ) ( 2 * j - 1 ) * x[i] * v[(j-1)+i*(n+1)]
258 - (
IssmDouble ) ( j - 1 ) * v[(j-2)+i*(n+1)] )