Not Enough Math
Lightweight zero-dependency C++ math library
Loading...
Searching...
No Matches
mat_io.hpp File Reference
#include <sstream>
#include "mat.hpp"

Go to the source code of this file.

Namespaces

namespace  nem
 

Functions

template<typename T , size_t C, size_t R>
std::string nem::tostr (const mat< T, C, R > &matrix)
 
template<typename T , size_t C, size_t R>
std::ostream & nem::operator<< (std::ostream &os, const mat< T, C, R > &matrix)
 
template<typename T , size_t C, size_t R>
std::istream & nem::operator>> (std::istream &is, mat< T, C, R > &matrix)
 

Variables

static constexpr const char * nem::MATRIX_COLUMN_SEPARATOR = ", "
 
static constexpr const char * nem::MATRIX_ROW_SEPARATOR = "\n"
 
static constexpr const char * nem::MATRIX_L_BRACE = "["
 
static constexpr const char * nem::MATRIX_R_BRACE = "]"