Generator : Cleaned matrix_product template