stereomatching 17 Posting Whiz in Training
Mat_<double> const affine = (Mat_<double>(2, 2) << 0.5, 1, 
                                                     0,   2);

  Mat_<double> coordinate = (Mat_<double>(2, 1) << 20, 
                                                   3);
  Mat_<double> C(2, 1);

  C = affine.mul(coordinate); // this line would crash the program

  C = affine * coordinate; // this line is ok

I don't why and how, did I did something wrong?
Thanks a lot

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.