Skip to content

Commit b142f52

Browse files
authored
Create README.md
1 parent 505a636 commit b142f52

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
---
3+
4+
# Sparse Matrix Representation in C++
5+
6+
This repository contains an implementation of a **Sparse Matrix** in **C++**. It demonstrates efficient storage and manipulation of sparse matrices, which are matrices primarily filled with zeros. This is achieved using compact representations, such as storing only non-zero elements with their respective row and column indices.
7+
8+
## Features
9+
**Compact Storage**
10+
**Efficient Memory Usage**
11+
🔧 **Basic Operations Support**
12+
- Addition
13+
- Scalar Multiplication
14+
- Matrix Multiplication
15+
16+
## Requirements
17+
- C++ Compiler (e.g., GCC)
18+
- Operating System: Cross-platform (Windows, Linux, macOS)
19+
20+
## How to Use
21+
1. Clone the repository:
22+
```bash
23+
git clone https://github.com/RezaGooner/Sparse-Matrix.git
24+
```
25+
2. Navigate to the project folder and compile the code:
26+
```bash
27+
g++ Sparse\ Matrix.cpp -o sparse_matrix
28+
./sparse_matrix
29+
```
30+
31+
## Example Output
32+
The program performs operations on a sparse matrix and prints the results.
33+
34+
## License
35+
Distributed under the **Apache 2.0 License**.
36+
37+
---
38+

0 commit comments

Comments
 (0)