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"
61 void usage(
const char *name,
const char *badparam);
62 bool getOptions(
int argc,
const char **argv);
69 void usage(
const char *name,
const char *badparam)
72 Test some vpMatrix functionalities.\n\
83 fprintf(stdout,
"\nERROR: Bad parameter [%s]\n", badparam);
92 bool getOptions(
int argc,
const char **argv)
99 case 'h': usage(argv[0], NULL);
return false;
break;
102 usage(argv[0], optarg_);
107 if ((c == 1) || (c == -1)) {
109 usage(argv[0], NULL);
110 std::cerr <<
"ERROR: " << std::endl;
111 std::cerr <<
" Bad argument " << optarg_ << std::endl << std::endl;
120 main(
int argc,
const char ** argv)
124 if (getOptions(argc, argv) ==
false) {
133 vpTRACE(
"test matrix size in multiply") ;
141 std::cout << me << std::endl ;
145 vpTRACE(
"test matrix size in addition") ;
153 std::cout << me << std::endl ;
157 std::cout <<
"Catch an exception: " << e << std::endl;
Definition of the vpMatrix class.
error that can be emited by ViSP classes.
static bool parse(int *argcPtr, const char **argv, vpArgvInfo *argTable, int flags)
error that can be emited by the vpMatrix class and its derivates