#include #include #include "nr.h" using namespace std; // Driver for routine banmul int main(void) { const int M1=2,M2=1,NP=7,MP=(M1+1+M2); int i,j,k; Vec_DP ax(NP),b(NP),x(NP); Mat_DP a(NP,MP),aa(NP,NP); // Lower band for (i=0;i=MAX(0,k) && j<=MIN(M1+M2+k,NP-1)) aa[i][j]=a[i][j-k]; else aa[i][j]=0.0; } } for (i=0;i