Added the matrix assert
Added the matrix assert