# Calculation on matrix

Hi, I would like to know if there is a easy way to make some calculations on matrix?

Like add, subtruct, multiply, divide matrix to another matrix, and calculate the power and sqrt of matrix.

For example i want to implement this line from matlab in opencv : Matrix.^2 or sqrt(Matrix)