A sparse matrix is a special case of a matrix in which the number of zero elements is much higher than the number of non-zero elements.
Sparse matrices are used primarily for two reasons, which are:-
To save computation time, it is beneficial to store sparse matrices in a memory-efficient manner.
Storing only non-zero elements of a sparse matrix saves a considerable amount of memory/space that can be utilized for storing other data structures or performing additional operations.
Fixes: #220
Type of change
[X] New feature (non-breaking change which adds functionality)
[X] This change requires a documentation update
Checklist:
[X] I have made this from my own
[X] I have taken help from some online resourses
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
Description
A sparse matrix is a special case of a matrix in which the number of zero elements is much higher than the number of non-zero elements.
Sparse matrices are used primarily for two reasons, which are:-
Fixes: #220
Type of change
Checklist:
ATTACH SCREEN-SHOTS / DEPLOYMENT LINK