linbox
write-mm.h File Reference
#include <iostream>
#include <string>
#include "linbox/integer.h"

Namespaces

namespace  LinBox
 Namespace in which all linbox code resides.
 

Functions

template<class Field>
std::ostream & writeMMComment (std::ostream &os, Field &F, std::string name, std::string comment)
 Write second line and comment part of matrix market header.
 
template<class BB>
std::ostream & writeMMCoordHeader (std::ostream &os, BB &A, size_t nnz, std::string name, std::string comment="")
 Write matrix market header (up to the i,j,val lines) for a sparse or structured matrix.
 
template<class BB>
std::ostream & writeMMPatternHeader (std::ostream &os, BB &A, size_t nnz, std::string name, std::string comment="")
 Write matrix market header (up to the i,j lines) for a {0,1} sparse or structured matrix.
 
template<class BB>
std::ostream & writeMMArrayHeader (std::ostream &os, BB &A, std::string name, std::string comment="")
 Write matrix market header (up to the entry lines) for a dense matrix.
 
template<class Mat>
std::ostream & writeMMArray (std::ostream &os, Mat &A, std::string name, std::string comment="")
 Generic dense matrix writer to matrix market array format (col major).
 
std::string eltype (float x)
 eltype(x) returns a string containing the name of the type of field or ring element x.
 
std::string eltype (double x)
 
std::string eltype (int8_t x)
 
std::string eltype (int16_t x)
 
std::string eltype (int32_t x)
 
std::string eltype (int64_t x)
 
std::string eltype (integer x)
 
std::string eltype (uint8_t x)
 
std::string eltype (uint16_t x)
 
std::string eltype (uint32_t x)
 
std::string eltype (uint64_t x)