User`s guide

7 Libraries
std::cout << "Value of added matrix is:" << std::endl;
std::cout << out << std::endl;
multiplymatrix(1, out, in1, in2);
std::cout << "The value of the multiplied matrix is:"
<< std::endl;
std::cout << out << std::endl;
eigmatrix(1, out, in1);
std::cout << "The eigenvalues of the first matrix are:"
<< std::endl;
std::cout << out << std::endl;
}
catch (const mwException& e)
{
std::cerr << e.what() << std::endl;
*err = -2;
}
catch (...)
{
std::cerr << "Unexpected error thrown" << std::endl;
*err = -3;
}
// Call the application and library termination routine
libmatrixpTerminate();
}
/* On MAC, you need to call mclRu nMai n with the appropri ate
* exit status. Also, note that you should call mclmcrInitialize
* application before you call mclRunMain.
* mclTerminateApplica tion terminates the entire application. */
mclTerminateApplication()0;
return 0
}
int main()
{
mclmcrInitialize();
return mclRunMain((mcl main Fcn)run_main,0,NULL) ;
7-20