Template Class PigoMTXReader

Inheritance Relationships

Base Types

Class Documentation

template<typename IDType, typename NNZType, typename ValueType>
class sparsebase::io::PigoMTXReader : public sparsebase::io::Reader, public sparsebase::io::ReadsCOO<IDType, NNZType, ValueType>, public sparsebase::io::ReadsCSR<IDType, NNZType, ValueType>

A parallelized MTX reader using the PIGO library (This feature is currently experimental and not available on all platforms, if you have problems please use one of the provided sequential readers) More information about PIGO: https://github.com/GT-TDAlab/PIGO

Public Functions

PigoMTXReader(std::string filename, bool weighted, bool convert_to_zero_index = true)
virtual format::COO<IDType, NNZType, ValueType> *ReadCOO() const override

Reads the file to a COO instance and returns a pointer to it.

virtual format::CSR<IDType, NNZType, ValueType> *ReadCSR() const override

Reads the file to a CSR instance and returns a pointer to it.

virtual ~PigoMTXReader() = default