Code Library Of Others/sgtlaugh/Matrix.cpp
Matrix(int n, int m, int diagonal = 0){
        clr(ar);
        row = n, col = m;
        for (int i = min(n, m) - 1; i >= 0; i--) ar[i][i] = diagonal;
    }
///Beware if matrix can contain negative numbers in matrix exponentiation problems
Beware if matrix can contain negative numbers in matrix exponentiation problems
Beware if matrix can contain negative numbers in matrix exponentiation problems
Matrix(int n, int m, int diagonal = 0){
        clr(ar);
        row = n, col = m;
        for (int i = min(n, m) - 1; i >= 0; i--) ar[i][i] = diagonal;
    }
Matrix ( int n , int m , int diagonal = 0 ) { clr ( ar ) ; row = n , col = m ; for ( int i = min ( n , m ) - 1 ; i >= 0 ; i -- ) ar [ i ] [ i ] = diagonal ; }
Beware if matrix can contain negative numbers in matrix exponentiation problems
Beware if matrix can contain negative numbers in matrix exponentiation problems