Change the Matrix type from class to struct.