From 5c9a6e9de705724e8374a5aa270d0ebb9bbda3cd Mon Sep 17 00:00:00 2001 From: mtzikara Date: Sun, 30 Sep 2018 23:38:26 +0200 Subject: [PATCH] Delete csr_sparse_matrix.h --- serial_csr/csr_sparse_matrix.h | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 serial_csr/csr_sparse_matrix.h diff --git a/serial_csr/csr_sparse_matrix.h b/serial_csr/csr_sparse_matrix.h deleted file mode 100644 index 1eb8b81..0000000 --- a/serial_csr/csr_sparse_matrix.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef CSR_SPARSE_MATRIX_H /* Include guard */ -#define CSR_SPARSE_MATRIX_H - -#include -#include -#include -#include -#include - -typedef struct csrSparseMatrix { - double* values; - int* rowaccInd; //without the first cell, always 0 - int* columnIndexes; - int size; //no. of rows - int nnz; //no. of non zero elements - -} CsrSparseMatrix; - -CsrSparseMatrix initCsrSparseMatrix(); -void allocMemoryForElements (CsrSparseMatrix *sparseMatrix, int size, int nnz); -void addElements(CsrSparseMatrix *sparseMatrix, int *fileFromMatrix, int *FileToMatrix); -void zeroOutRow(CsrSparseMatrix *sparseMatrix, int row); -void zeroOutColumn(CsrSparseMatrix *sparseMatrix, int column); -int *getRowIndexes(CsrSparseMatrix sparseMatrix, int row, int *rowSize); -void transposeSparseMatrix(CsrSparseMatrix *sparseMatrix); -void csrSparseMatrixVectorMultiplication(CsrSparseMatrix sparseMatrix, double *vector, - double **product, int vectorSize); -void destroyCsrSparseMatrix(CsrSparseMatrix *sparseMatrix); -void printCsrSparseMatrix(CsrSparseMatrix sparseMatrix); - -#endif // CSR_SPARSE_MATRIX_H \ No newline at end of file