48 #include <visp/vpMath.h>
49 #include <visp/vpMatrix.h>
50 #include <visp/vpMatrixException.h>
51 #include <visp/vpDebug.h>
53 #include <visp/vpParseArgv.h>
59 #define GETOPTARGS "h"
66 void usage(
const char *name,
const char *badparam)
69 Test some vpMatrix functionalities.\n\
80 fprintf(stdout,
"\nERROR: Bad parameter [%s]\n", badparam);
89 bool getOptions(
int argc,
const char **argv)
96 case 'h': usage(argv[0], NULL);
return false;
break;
99 usage(argv[0], optarg);
104 if ((c == 1) || (c == -1)) {
106 usage(argv[0], NULL);
107 std::cerr <<
"ERROR: " << std::endl;
108 std::cerr <<
" Bad argument " << optarg << std::endl << std::endl;
117 main(
int argc,
const char ** argv)
120 if (getOptions(argc, argv) ==
false) {
129 vpTRACE(
"test matrix size in multiply") ;
138 std::cout << me << std::endl ;
142 vpTRACE(
"test matrix size in addition") ;
151 std::cout << me << std::endl ;
Definition of the vpMatrix class.
static bool parse(int *argcPtr, const char **argv, vpArgvInfo *argTable, int flags)
error that can be emited by the vpMatrix class and its derivates