Peano
Loading...
Searching...
No Matches
CompressedLinearAlgebra.h File Reference
#include "tarch/la/Vector.h"
#include "tarch/la/Matrix.h"
#include <vector>
#include "CompressedLinearAlgebra.cpph"
Include dependency graph for CompressedLinearAlgebra.h:

Go to the source code of this file.

Namespaces

namespace  toolbox
 
namespace  toolbox::multiprecision
 The heap namespace holds all routines that we use in connection with Peano's heap data storage.
 

Functions

template<int Size>
std::vector< unsigned char > toolbox::multiprecision::compress (const tarch::la::Vector< Size, double > &vector, double maxAbsoluteError)
 Take a vector and compress it into a byte stream.
 
template<int Rows, int Cols>
std::vector< unsigned char > toolbox::multiprecision::compress (const tarch::la::Matrix< Rows, Cols, double > &matrix, double maxAbsoluteError)
 
template<int Size>
tarch::la::Vector< Size, doubletoolbox::multiprecision::uncompressVector (const std::vector< unsigned char > &stream)
 Can't call it decompress only, as the result data type is not part of the signature, i.e.
 
template<int Rows, int Cols>
tarch::la::Matrix< Rows, Cols, doubletoolbox::multiprecision::uncompressMatrix (const std::vector< unsigned char > &stream)