Описание слайда:
// c l a s s "m a t r i x 3 l I l"
// c l a s s "m a t r i x 3 l I l"
template <class el> class matrix3lIl : public matrix3l<el>
{
protected:
el*** va; // pointer to Iliffes vectors ierarhy
public:
matrix3lIl(int l1, int h1, int l2, int h2, int l3, int h3):
matrix3l<el>(l1, h1, l2, h2, l3, h3)
{
int i1, i2 , d, step;
d=-l3;
step=h3-l3+1;
va = new el**[h1-l1+1] - l1;
for(i1=l1; i1<=h1; i1++)
{
*(va+i1) = new el*[h2-l2+1] - l2;
for(i2=l2; i2<=h2; i2++, d+=step)
*(*(va+i1)+i2)=V+d;
}
}
matrix3lIl(char* file_name, int l1, int h1, int l2, int h2, int l3, int h3):
matrix3l<el>(file_name, l1, h1, l2, h2, l3, h3)
{
int i1, i2 , d, step;
d=-l3;
step=h3-l3+1;
va = new el**[h1-l1+1] - l1;
for(i1=l1; i1<=h1; i1++)
{
*(va+i1) = new el*[h2-l2+1] - l2;
for(i2=l2; i2<=h2; i2++, d+=step)
*(*(va+i1)+i2)=V+d;
}
}
el& elem(int i1, int i2, int i3)
{
nopadd+=3, nopmul+=0;
return *(*(*(va+i1)+i2)+i3);
}
};