Skip to content

Instantly share code, notes, and snippets.

@dmitrybubyakin
Created March 19, 2015 13:33
Show Gist options
  • Save dmitrybubyakin/5fba5d076de2a770d2e7 to your computer and use it in GitHub Desktop.
Save dmitrybubyakin/5fba5d076de2a770d2e7 to your computer and use it in GitHub Desktop.
void Lab::printCheck()
{
double *Au = multvm(h, m);
double *Yu = new double[n];
double *T = new double[n];/////////////
for (int i = 0; i < n; i++)
Yu[i] = h[i] * L1;
cout << "Ah = Lh" << endl;
cout << "Ah :" << endl;
printv(Au);
cout << "Lh :" << endl;
printv(Yu);
cout << "|Ah - Lh|" << endl;/////////////
for (int i = 0; i < n; i++)///////////
T[i] = abs(Au[i]-Yu[i]);//////////
printv(T);//////////
delete[] Au;
delete[] Yu;
delete[] T;///////////////
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment