Tests matrix exception
#include <stdio.h>
#include <stdlib.h>
#include <visp3/core/vpMatrix.h>
int main()
{
#ifdef ENABLE_VISP_NAMESPACE
#endif
std::cout << "** test matrix exception during multiplication" << std::endl;
try {
M = M1 * M3;
}
std::cout << "Catch an exception: " << e << std::endl;
}
std::cout << "** test matrix exception during addition" << std::endl;
try {
M = M1 + M3;
}
std::cout << "Catch an exception: " << e << std::endl;
}
return EXIT_SUCCESS;
}
error that can be emitted by ViSP classes.
Implementation of a matrix and operations on matrices.