-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmatcomp.h
More file actions
36 lines (34 loc) · 1.09 KB
/
Copy pathmatcomp.h
File metadata and controls
36 lines (34 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//============================================================================
// Name : DS Assignment#1
// Author : Ashmit Mukherjee
// Version : 1.0
// Date Created : 28-02-2023
// Date Modified:
// Description : Matrix Computation in C++
//============================================================================
#ifndef MATCOMP_H //include guards
#define MATCOMP_H
#include<fstream>
#include<string>
#include<sstream>
#include "linkedmatrix.h"
using namespace std;
//=======================================
class MatComp
{
private:
LinkedMatrix** matrix_list; //the imported and generated matrices will be stored in this array
int matrix_count;
public:
MatComp(); //constructor pointers to matrices
~MatComp(); //destructor to delete all matrices
void importMatrix(string filename);
void multi(char matrix_ID, int a);
void add(char matrix1_ID, char matrix2_ID);
void multi(char matrix1_ID, char matrix2_ID);
void exportMat(char matrix1_ID, string filename);
void display(char matrix_ID);
void display2D(char matrix_ID);
bool isValid(char matrix_ID);
};
#endif