Category : matrix-multiplication

Only pure mat mul for million times c++ opencv version for (int z = 0; z < 5; z++) { auto t1 = high_resolution_clock::now(); /////////////////////////////////////////////////////////////////////////////////////////////// for (int i = 0; i < 2000000; i++) { Mat xyz(200, 3, CV_32F); Mat n(1, 3, CV_32F); Mat arr; randu(xyz, Scalar(0), Scalar(1)); randu(n, Scalar(0), Scalar(1)); arr = abs(n * ..

Read more

I have have two Eigen matrices that I’m multiplying, they are of type Eigen::Matrix<long double, Eigen::Dynamic, Eigen::Dynamic> and whenever I display the product I get -nan values… I just want to ask if it that is normal to get nan values if you have some certain values in the matrix like numbers ranging from (+,-)1.2e-100 ..

Read more