21 int alpha,
beta,i,j,ii,jj;
27 for (alpha=0;alpha<=d1;alpha++)
29 for (beta=0;beta<=d2;beta++)
35 #if defined(USE_DDOUBLE)
37 A(alpha,beta,i,j)=
pow(
double(i-1)/
double(n-1),alpha)*
38 pow(
double(j-1)/
double(m-1),beta);
39 #define double dd_real
41 A(alpha,beta,i,j)=
pow(
double(i-1)/
double(n-1),alpha)*
42 pow(
double(j-1)/
double(m-1),beta);
49 for (alpha=0;alpha<=d1;alpha++)
51 for (beta=0;beta<=d2;beta++)
67 B(ialpha(ii),ibeta(ii))=A(ialpha(ii),ibeta(ii))/
68 norm(A(ialpha(ii),ibeta(ii)));
72 for (jj=ii+1;jj<=
N;jj++)
74 A(ialpha(jj),ibeta(jj))-=
75 dot(B(ialpha(ii),ibeta(ii)),A(ialpha(jj),ibeta(jj)))*
76 B(ialpha(ii),ibeta(ii));
95 cerr <<
"matrix shapes unequal in"
96 " double dot(const dmatrix& M,const dmatrix& N)"
100 if (
M(mmin).indexmin()!=
N(mmin).indexmin() ||
101 M(mmin).indexmax()!=
N(mmin).indexmax() )
103 cerr <<
"matrix shapes unequal in"
104 " double dot(const dmatrix& M,const dmatrix& N)"
109 for (
int i=mmin;i<=mmax;i++)
111 int jmin=
M(i).indexmin();
112 int jmax=
M(i).indexmax();
113 for (
int j=jmin;j<=jmax;j++)
double norm(const d3_array &a)
Return computed norm value of a.
Description not yet available.
prnstream & endl(prnstream &)
Array of integers(int) with indexes from index_min to indexmax.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
dvariable beta(const prevariable &a, const prevariable &b)
Beta density function.
Description not yet available.
double dot(const dmatrix &M, const dmatrix &d2)
Description not yet available.
d4_array orthpoly2(int n, int m, int d1, int d2)
Description not yet available.
d3_array pow(const d3_array &m, int e)
Description not yet available.