src/matrix.cpp
/**
 *  @brief Matrix constructor
 *
 *  Construct a matrix containing
 *  the given parameters.
 *
 * @param a11 First value on first row
 * @param a12 Second value on first row
 * @param a21 First value on second row
 * @param a22 Second value on second row
 */
@brief Matrix constructor
Construct a matrix containing
the given parameters.

@param a11 First value on first row
@param a12 Second value on first row
@param a21 First value on second row
@param a22 Second value on second row
@brief Matrix constructor Construct a matrix containing the given parameters . @param a11 First value on first row @param a12 Second value on first row @param a21 First value on second row @param a22 Second value on second row
Matrix::Matrix(double a11, double a12, double a21, double a22) {
    matrix.resize(2);
    matrix[0].resize(2);
    this->set(0, 0, a11);
    this->set(0, 1, a21);
    matrix[1].resize(2);
    this->set(1, 0, a12);
    this->set(1, 1, a22);
}
Matrix :: Matrix ( double a11 , double a12 , double a21 , double a22 ) { matrix . resize ( 2 ) ; matrix [ 0 ] . resize ( 2 ) ; this -> set ( 0 , 0 , a11 ) ; this -> set ( 0 , 1 , a21 ) ; matrix [ 1 ] . resize ( 2 ) ; this -> set ( 1 , 0 , a12 ) ; this -> set ( 1 , 1 , a22 ) ; }
@brief Matrix constructor
  Construct a matrix containing
  the given parameters.
@brief Matrix constructor Construct a matrix containing the given parameters .