src/matrix.cpp
/**
 * @brief Multiply a matrix and a vector
 * @param b A vector object
 * @return The product
 */
@brief Multiply a matrix and a vector
@param b A vector object
@return The product
@brief Multiply a matrix and a vector @param b A vector object @return The product
Vector Matrix::multiply(const Vector &b) const {
    double x = this->matrix[0][0] * b.at(0) + this->matrix[0][1] * b.at(1);
    double y = this->matrix[1][0] * b.at(0) + this->matrix[1][1] * b.at(1);
    return Vector(x, y);
}
Vector Matrix :: multiply ( const Vector & b ) const { double x = this -> matrix [ 0 ] [ 0 ] * b . at ( 0 ) + this -> matrix [ 0 ] [ 1 ] * b . at ( 1 ) ; double y = this -> matrix [ 1 ] [ 0 ] * b . at ( 0 ) + this -> matrix [ 1 ] [ 1 ] * b . at ( 1 ) ; return Vector ( x , y ) ; }
@brief Multiply a matrix and a vector
 @param b A vector object
 @return The product
@brief Multiply a matrix and a vector @param b A vector object @return The product