mat.cpp
// matrix multiply
// dot of row of this with col of other -> double
matrix multiply
dot of row of this with col of other -> double
matrix multiply dot of row of this with col of other - > double
double Matrix::dot(int r, int c, const Matrix &other) const
{
    double sum;
    assertDefined("lhs of rowdot");
    other.assertDefined("rhs of rowdot");
    assertOtherLhs(other, "dot of row by col");
    sum = 0;
    for (int i=0; i<maxc; i++) {
        sum += m[r][i] * other.m[i][c];
    }
    return sum;
}
double Matrix :: dot ( int r , int c , const Matrix & other ) const { double sum ; assertDefined ( " " ) ; other . assertDefined ( " " ) ; assertOtherLhs ( other , " " ) ; sum = 0 ; for ( int i = 0 ; i < maxc ; i ++ ) { sum += m [ r ] [ i ] * other . m [ i ] [ c ] ; } return sum ; }
matrix multiply
dot of row of this with col of other -> double
matrix multiply dot of row of this with col of other - > double