NEwmat is a famous matrix library in c++. IT'S easy to understand and to use. Note: if you watta use a particular function from the library in your project just follow the testfiles style to include the 'include.h' and use the namespace. Of course,
// Matrix.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include using namespace std; int *Multi(int *a,int m1,int n1, int *b,int m2,int n2, int &m,int &n) { if(n1!=m2) { cout<<"Error!"<<endl; exit(1)
For this task, put your code in the following files: Matrix.cpp, Matrix.h. You are to write a class Matrix which includes appropriate fields associated with 2*2 matrices. A 2*2 matrix takes the following form: (where a, b, c and d are real numbers)