Курсовая работа: Розрахунок норм вектору
for i: =1 to nmax do
for j: =1 to nmax do
op1 [i] [j]: =op1 [i] [j] *nomb;
end;
// ------------- - multMatrToVect - ------------------
procedure multMatrToVect (op1: matrix_; op2: vector; var rez: vector);
var i,j: size; tmpVal: real;
begin
for i: =1 to nmax do
begin
tmpVal: =0;
for j: =1 to nmax do
tmpVal: =tmpVal+op1 [i] [j] *op2 [j];
rez [i]: =tmpVal;
end;
end;
// ------------- - multMatrToMatr - ------------------
procedure multMatrToMatr (op1,op2: matrix_; var rez: matrix_);
var i,j,j1: size; tmpVal: real;
begin
for i: =1 to nmax do
for j1: =1 to nmax do
begin
tmpVal: =0;
for j: =1 to nmax do
tmpVal: =tmpVal+op1 [i] [j] *op2 [j] [j1];
rez [i] [j1]: =tmpVal;
end;
end;