MyraMath
matrixmarket.h
Go to the documentation of this file.
1 // ========================================================================= //
2 // This file is part of MyraMath, copyright (c) 2014-2019 by Ryan A Chilton //
3 // and distributed by MyraCore, LLC. See LICENSE.txt for license terms. //
4 // ========================================================================= //
5 
6 #ifndef MYRAMATH_SPARSE_MATRIXMARKET_H
7 #define MYRAMATH_SPARSE_MATRIXMARKET_H
8 
16 
19 
20 namespace myra {
21 namespace detail {
22 
23 // Read details.
24 SparseMatrix<NumberS> read_matrixmarketS(const char* filename);
25 SparseMatrix<NumberD> read_matrixmarketD(const char* filename);
26 SparseMatrix<NumberC> read_matrixmarketC(const char* filename);
27 SparseMatrix<NumberZ> read_matrixmarketZ(const char* filename);
28 
29 // Write details.
30 void write_matrixmarketS(const CSparseMatrixRange<NumberS>& A, const char* filename);
31 void write_matrixmarketD(const CSparseMatrixRange<NumberD>& A, const char* filename);
32 void write_matrixmarketC(const CSparseMatrixRange<NumberC>& A, const char* filename);
33 void write_matrixmarketZ(const CSparseMatrixRange<NumberZ>& A, const char* filename);
34 
35 } // namespace detail
36 
38 template<class Number> SparseMatrix<Number> read_matrixmarket(const char* filename);
39 
41 template<class Number> void write_matrixmarket(const CSparseMatrixRange<Number>& A, const char* filename);
42 
43 } // namespace myra
44 
45 #endif
General purpose compressed-sparse-column (CSC) container.
Definition: syntax.dox:1
Definition: random.cpp:45
Various utility functions/classes related to scalar Number types.
Range/Iterator types associated with SparseMatrix.