# Revision history [back]

Ok, below I present solution of my problem:

Mat m1 = Mat.zeros(3, 3, CvType.CV_32F);

Mat m2 = Mat.ones(3, 3, CvType.CV_32F);

Mat m3 = Mat.ones(3, 3, CvType.CV_32F);

Core.gemm(m2, m3, 1, new Mat(), 0, m1, 0);


My problem was connected with wrong type used in declaration of matrices and to multiply them we can use gemm function as it is presented above.

Thanks for help:)