KASKADE 7 development version
|
#include <lossystorage.hh>
Definition at line 59 of file lossystorage.hh.
Public Types | |
typedef Dune::FieldVector< double, 1 > | StorageValueType |
typedef boost::fusion::vector< Space const * > | Spaces |
typedef boost::fusion::vector< VariableDescription< 0, 1, 0 > > | VariableDescriptions |
typedef VariableSetDescription< Spaces, VariableDescriptions > | PredVariableSet |
typedef Grid::template Codim< dim >::LevelIterator | VertexLevelIterator |
typedef Grid::template Codim< dim >::LeafIterator | VertexLeafIterator |
typedef Grid::template Codim< dim >::LeafIndexSet | IndexSet |
typedef Grid::LevelGridView | LevelView |
typedef Grid::template Codim< dim >::LevelIterator | VertexLevelIterator |
typedef Grid::template Codim< dim >::LeafIterator | VertexLeafIterator |
typedef Grid::LeafIndexSet | IndexSet |
typedef Grid::LevelGridView::IndexSet::IndexType | IndexType |
typedef Grid::LeafGridView::IndexSet::IndexType | LeafIndexType |
typedef Grid::Traits::GlobalIdSet::IdType | IdType |
typedef unsigned long int | ULong |
typedef Grid::template Codim< dim >::LevelIterator | VertexLevelIterator |
typedef Grid::template Codim< dim >::LeafIterator | VertexLeafIterator |
typedef Grid::LeafIndexSet | IndexSet |
typedef Grid::LevelGridView::IndexSet::IndexType | IndexType |
typedef Grid::LeafGridView::IndexSet::IndexType | LeafIndexType |
typedef Grid::Traits::GlobalIdSet::IdType | IdType |
typedef unsigned long int | ULong |
typedef Grid::template Codim< dim >::LevelIterator | VertexLevelIterator |
typedef Grid::template Codim< dim >::LeafIterator | VertexLeafIterator |
typedef Grid::LeafIndexSet | IndexSet |
typedef Grid::LevelGridView::IndexSet::IndexType | IndexType |
typedef Grid::LeafGridView::IndexSet::IndexType | LeafIndexType |
typedef Grid::Traits::GlobalIdSet::IdType | IdType |
typedef unsigned long int | ULong |
typedef Dune::FieldVector< double, 1 > | StorageValueType |
typedef boost::fusion::vector< Space const * > | Spaces |
typedef boost::fusion::vector< VariableDescription< 0, 1, 0 > > | VariableDescriptions |
typedef VariableSetDescription< Spaces, VariableDescriptions > | PredVariableSet |
typedef Grid::template Codim< dim >::LevelIterator | VertexLevelIterator |
typedef Grid::template Codim< dim >::LeafIterator | VertexLeafIterator |
typedef Grid::template Codim< dim >::LeafIndexSet | IndexSet |
typedef Grid::LevelGridView | LevelView |
Public Member Functions | |
LossyStorage (GridManager< Grid > &gridManager_, VariableSet const &varSet_, int coarseLevel_, double aTol_, bool uniform_=false, QuantizationPolicy &quantizationPolicy_=QuantizationPolicy()) | |
~LossyStorage () | |
VariableSet::VariableSet | encode (typename VariableSet::VariableSet const &sol, std::string fn) |
void | flush () |
void | finish () |
void | decode (GridManager< Grid > &gridManagerState, typename VariableSet::VariableSet &sol, std::string fn) |
LossyStorage (int coarseLevel_, double aTol_) | |
~LossyStorage () | |
double | reportEntropy () |
void | resetEntropy () |
double | reportOverhead () |
void | resetOverhead () |
double | reportCompressedSize () |
void | resetCompressedSize () |
double | reportOverallSize () |
void | resetSizes () |
double | reportUncompressedSize () |
void | resetUncompressedSize () |
double | reportRatio () |
void | setup (Grid const &grid) |
void | encode (Grid const &grid, CoeffVector const &sol, std::string fn, double aTol_=0, int maxLevel_=-1) |
void | encode (Grid const &grid, CoeffVector const &sol, std::ostream &out, double aTol_=0, int maxLevel_=-1) |
void | decode (Grid const &gridState, CoeffVector &sol, std::string fn, double aTol_=0, int maxLevel_=-1) |
void | decode (Grid const &gridState, CoeffVector &sol, std::istream &in, double aTol_=0, int maxLevel_=-1) |
LossyStorage (int coarseLevel_, double aTol_) | |
~LossyStorage () | |
double | reportEntropy () |
void | resetEntropy () |
double | reportOverhead () |
void | resetOverhead () |
double | reportCompressedSize () |
void | resetCompressedSize () |
double | reportOverallSize () |
void | resetSizes () |
double | reportUncompressedSize () |
void | resetUncompressedSize () |
double | reportRatio () |
void | setup (Grid const &grid) |
void | encode (Grid const &grid, CoeffVector const &sol, std::string fn, double aTol_=0, int maxLevel_=-1) |
void | encode (Grid const &grid, CoeffVector const &sol, std::ostream &out, double aTol_, int maxLevel_=-1) |
void | decode (Grid const &gridState, CoeffVector &sol, std::string fn, double aTol_=0, int maxLevel_=-1) |
void | decode (Grid const &gridState, CoeffVector &sol, std::istream &in, double aTol_, int maxLevel_=-1) |
LossyStorage (int coarseLevel_, double aTol_) | |
~LossyStorage () | |
double | reportEntropy () |
void | resetEntropy () |
double | reportOverhead () |
void | resetOverhead () |
double | reportCompressedSize () |
void | resetCompressedSize () |
double | reportOverallSize () |
void | resetSizes () |
double | reportUncompressedSize () |
void | resetUncompressedSize () |
double | reportRatio () |
void | setup (Grid const &grid) |
void | encode (Grid const &grid, CoeffVector const &sol, std::string fn, double aTol_=0) |
void | flush (Grid const &) |
void | decode (Grid const &gridState, CoeffVector &sol, std::string fn, double aTol_=0) |
void | encode (Grid const &grid, CoeffVector const &v, CoeffVector const &w, std::vector< std::vector< long int > > &intervalIndicesTmp, double aTol_=0) |
void | write (std::vector< std::vector< long int > > const &intervalIndicesTmp, std::string fn_v, std::string fn_w) |
void | read (size_t nEntries, std::vector< std::vector< long int > > &intervalIndices, std::string fn_v, std::string fn_w) |
void | decode (Grid const &gridState, CoeffVector &v, CoeffVector &w, std::vector< std::vector< long int > const &intervalIndices, double aTol_=0) |
LossyStorage (GridManager< Grid > &gridManager_, VariableSet const &varSet_, int coarseLevel_, double aTol_, bool uniform_=false, QuantizationPolicy &quantizationPolicy_=QuantizationPolicy()) | |
~LossyStorage () | |
VariableSet::VariableSet | encode (typename VariableSet::VariableSet const &sol, std::string fn) |
void | flush () |
void | finish () |
void | decode (GridManager< Grid > &gridManagerState, typename VariableSet::VariableSet &sol, std::string fn) |
Public Attributes | |
QuantizationPolicy | quantizationPolicy |
Static Public Attributes | |
static const int | dim = Grid::dimension |
static const int | order = 1 |
typedef Grid::Traits::GlobalIdSet::IdType LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::IdType |
Definition at line 39 of file lossystorageDUNE.hh.
typedef Grid::Traits::GlobalIdSet::IdType LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::IdType |
Definition at line 41 of file lossystorageDUNE_level.hh.
typedef Grid::Traits::GlobalIdSet::IdType LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::IdType |
Definition at line 36 of file lossystorageDUNE_time.hh.
typedef Grid::template Codim<dim>::LeafIndexSet LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::IndexSet |
Definition at line 71 of file lossystorage.hh.
typedef Grid::LeafIndexSet LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::IndexSet |
Definition at line 35 of file lossystorageDUNE.hh.
typedef Grid::LeafIndexSet LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::IndexSet |
Definition at line 37 of file lossystorageDUNE_level.hh.
typedef Grid::LeafIndexSet LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::IndexSet |
Definition at line 31 of file lossystorageDUNE_time.hh.
typedef Grid::template Codim<dim>::LeafIndexSet LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::IndexSet |
Definition at line 76 of file lossystorageWithoutTemporalPred.hh.
typedef Grid::LevelGridView::IndexSet::IndexType LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::IndexType |
Definition at line 36 of file lossystorageDUNE.hh.
typedef Grid::LevelGridView::IndexSet::IndexType LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::IndexType |
Definition at line 38 of file lossystorageDUNE_level.hh.
typedef Grid::LevelGridView::IndexSet::IndexType LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::IndexType |
Definition at line 32 of file lossystorageDUNE_time.hh.
typedef Grid::LeafGridView::IndexSet::IndexType LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::LeafIndexType |
Definition at line 37 of file lossystorageDUNE.hh.
typedef Grid::LeafGridView::IndexSet::IndexType LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::LeafIndexType |
Definition at line 39 of file lossystorageDUNE_level.hh.
typedef Grid::LeafGridView::IndexSet::IndexType LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::LeafIndexType |
Definition at line 33 of file lossystorageDUNE_time.hh.
typedef Grid::LevelGridView LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::LevelView |
Definition at line 72 of file lossystorage.hh.
typedef Grid::LevelGridView LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::LevelView |
Definition at line 77 of file lossystorageWithoutTemporalPred.hh.
typedef VariableSetDescription<Spaces,VariableDescriptions> LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::PredVariableSet |
Definition at line 68 of file lossystorage.hh.
typedef VariableSetDescription<Spaces,VariableDescriptions> LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::PredVariableSet |
Definition at line 73 of file lossystorageWithoutTemporalPred.hh.
typedef boost::fusion::vector<Space const*> LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::Spaces |
Definition at line 66 of file lossystorage.hh.
typedef boost::fusion::vector<Space const*> LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::Spaces |
Definition at line 71 of file lossystorageWithoutTemporalPred.hh.
typedef Dune::FieldVector<double,1> LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::StorageValueType |
Definition at line 65 of file lossystorage.hh.
typedef Dune::FieldVector<double,1> LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::StorageValueType |
Definition at line 70 of file lossystorageWithoutTemporalPred.hh.
typedef unsigned long int LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::ULong |
Definition at line 41 of file lossystorageDUNE.hh.
typedef unsigned long int LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::ULong |
Definition at line 43 of file lossystorageDUNE_level.hh.
typedef unsigned long int LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::ULong |
Definition at line 38 of file lossystorageDUNE_time.hh.
typedef boost::fusion::vector<VariableDescription<0,1,0> > LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::VariableDescriptions |
Definition at line 67 of file lossystorage.hh.
typedef boost::fusion::vector<VariableDescription<0,1,0> > LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::VariableDescriptions |
Definition at line 72 of file lossystorageWithoutTemporalPred.hh.
typedef Grid::template Codim<dim>::LeafIterator LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::VertexLeafIterator |
Definition at line 70 of file lossystorage.hh.
typedef Grid::template Codim<dim>::LeafIterator LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::VertexLeafIterator |
Definition at line 34 of file lossystorageDUNE.hh.
typedef Grid::template Codim<dim>::LeafIterator LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::VertexLeafIterator |
Definition at line 36 of file lossystorageDUNE_level.hh.
typedef Grid::template Codim<dim>::LeafIterator LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::VertexLeafIterator |
Definition at line 30 of file lossystorageDUNE_time.hh.
typedef Grid::template Codim<dim>::LeafIterator LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::VertexLeafIterator |
Definition at line 75 of file lossystorageWithoutTemporalPred.hh.
typedef Grid::template Codim<dim>::LevelIterator LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::VertexLevelIterator |
Definition at line 69 of file lossystorage.hh.
typedef Grid::template Codim<dim>::LevelIterator LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::VertexLevelIterator |
Definition at line 33 of file lossystorageDUNE.hh.
typedef Grid::template Codim<dim>::LevelIterator LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::VertexLevelIterator |
Definition at line 35 of file lossystorageDUNE_level.hh.
typedef Grid::template Codim<dim>::LevelIterator LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::VertexLevelIterator |
Definition at line 29 of file lossystorageDUNE_time.hh.
typedef Grid::template Codim<dim>::LevelIterator LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::VertexLevelIterator |
Definition at line 74 of file lossystorageWithoutTemporalPred.hh.
|
inline |
Definition at line 76 of file lossystorage.hh.
|
inline |
Definition at line 100 of file lossystorage.hh.
|
inline |
Definition at line 43 of file lossystorageDUNE.hh.
|
inline |
Definition at line 58 of file lossystorageDUNE.hh.
|
inline |
Definition at line 45 of file lossystorageDUNE_level.hh.
|
inline |
Definition at line 60 of file lossystorageDUNE_level.hh.
|
inline |
Definition at line 40 of file lossystorageDUNE_time.hh.
|
inline |
Definition at line 48 of file lossystorageDUNE_time.hh.
|
inline |
Definition at line 82 of file lossystorageWithoutTemporalPred.hh.
|
inline |
Definition at line 91 of file lossystorageWithoutTemporalPred.hh.
|
inline |
Definition at line 490 of file lossystorageDUNE_level.hh.
|
inline |
Definition at line 413 of file lossystorageDUNE.hh.
|
inline |
Decode quantized values and store in a VariableSet::VariableSet. The file to be read is specified by the member variables filePrefix and count, keeping track of the already decoded timesteps.
Definition at line 511 of file lossystorageDUNE_time.hh.
|
inline |
Decode quantized values and store in a VariableSet::Representation. The file to be read is specified by fn.
Definition at line 405 of file lossystorageDUNE.hh.
|
inline |
Decode quantized values and store in a VariableSet::Representation. The file to be read is specified by fn.
Definition at line 467 of file lossystorageDUNE_level.hh.
|
inline |
decode two FE functions at once for cardiac optimization; reads each function from a separate file
Definition at line 1071 of file lossystorageDUNE_time.hh.
|
inline |
Decode quantized values and store in a VariableSet::VariableSet. The file to be read is specified by the member variables filePrefix and count, keeping track of the already decoded timesteps.
Definition at line 495 of file lossystorage.hh.
Referenced by LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::decode().
|
inline |
Decode quantized values and store in a VariableSet::VariableSet. The file to be read is specified by the member variables filePrefix and count, keeping track of the already decoded timesteps.
Definition at line 422 of file lossystorageWithoutTemporalPred.hh.
|
inline |
Definition at line 194 of file lossystorageDUNE_level.hh.
|
inline |
Definition at line 173 of file lossystorageDUNE.hh.
|
inline |
Encode a given state, e.g. the difference between to timesteps. Quantized values are written to a file specified by the member variables filePrefix and count, keeping track of the already encoded timesteps. REVISION AUG. 13, 2013: DON'T USE LB, UB ANYMORE AUG 23, 2013: DON'T USE PRECOMPUTED FREQUENCIES ANYMORE (in encoding/decoding a single function!) TODO: pull out range encoding, to be able to handle temporal prediction more easily -> this nethod should just preform transform+quantization, encoding should be done separately! (how/where to write ub/lb etc?)
Definition at line 177 of file lossystorageDUNE_time.hh.
|
inline |
Encode a given state, e.g. the difference between to timesteps. Quantized values are written to a file specified by fn.
Definition at line 165 of file lossystorageDUNE.hh.
|
inline |
Encode a given state, e.g. the difference between to timesteps. Quantized values are written to a file specified by fn.
Definition at line 170 of file lossystorageDUNE_level.hh.
|
inline |
encode two FE functions at once for cardiac optimization; just encoding, not writing to disk
Definition at line 694 of file lossystorageDUNE_time.hh.
|
inline |
Encode a given state, e.g. the difference between to timesteps. Quantized values are written to a file specified by the member variables filePrefix and count, keeping track of the already encoded timesteps.
Definition at line 111 of file lossystorage.hh.
Referenced by LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::encode().
|
inline |
Encode a given state. Quantized values are written to a file specified by the member variables filePrefix and count, keeping track of the already encoded timesteps.
Definition at line 101 of file lossystorageWithoutTemporalPred.hh.
|
inline |
Definition at line 488 of file lossystorage.hh.
|
inline |
Definition at line 414 of file lossystorageWithoutTemporalPred.hh.
|
inline |
In the end, write remaining indices to disc.
Definition at line 410 of file lossystorage.hh.
|
inline |
In the end, write remaining indices to disc.
Definition at line 412 of file lossystorageWithoutTemporalPred.hh.
|
inline |
Definition at line 502 of file lossystorageDUNE_time.hh.
|
inline |
read quantized indices from files using range encoding
Definition at line 1013 of file lossystorageDUNE_time.hh.
|
inline |
Definition at line 89 of file lossystorageDUNE.hh.
|
inline |
Definition at line 91 of file lossystorageDUNE_level.hh.
|
inline |
Definition at line 81 of file lossystorageDUNE_time.hh.
|
inline |
Definition at line 62 of file lossystorageDUNE.hh.
|
inline |
Definition at line 64 of file lossystorageDUNE_level.hh.
|
inline |
Definition at line 53 of file lossystorageDUNE_time.hh.
|
inline |
Definition at line 101 of file lossystorageDUNE.hh.
|
inline |
Definition at line 103 of file lossystorageDUNE_level.hh.
|
inline |
Definition at line 93 of file lossystorageDUNE_time.hh.
|
inline |
Definition at line 76 of file lossystorageDUNE.hh.
|
inline |
Definition at line 78 of file lossystorageDUNE_level.hh.
|
inline |
Definition at line 67 of file lossystorageDUNE_time.hh.
|
inline |
Definition at line 129 of file lossystorageDUNE.hh.
|
inline |
Definition at line 131 of file lossystorageDUNE_level.hh.
|
inline |
Definition at line 121 of file lossystorageDUNE_time.hh.
|
inline |
Definition at line 117 of file lossystorageDUNE.hh.
|
inline |
Definition at line 119 of file lossystorageDUNE_level.hh.
|
inline |
Definition at line 109 of file lossystorageDUNE_time.hh.
|
inline |
Definition at line 94 of file lossystorageDUNE.hh.
|
inline |
Definition at line 96 of file lossystorageDUNE_level.hh.
|
inline |
Definition at line 86 of file lossystorageDUNE_time.hh.
|
inline |
Definition at line 68 of file lossystorageDUNE.hh.
|
inline |
Definition at line 70 of file lossystorageDUNE_level.hh.
|
inline |
Definition at line 59 of file lossystorageDUNE_time.hh.
|
inline |
Definition at line 81 of file lossystorageDUNE.hh.
|
inline |
Definition at line 83 of file lossystorageDUNE_level.hh.
|
inline |
Definition at line 72 of file lossystorageDUNE_time.hh.
|
inline |
Definition at line 107 of file lossystorageDUNE.hh.
|
inline |
Definition at line 109 of file lossystorageDUNE_level.hh.
|
inline |
Definition at line 99 of file lossystorageDUNE_time.hh.
|
inline |
Definition at line 122 of file lossystorageDUNE.hh.
|
inline |
Definition at line 124 of file lossystorageDUNE_level.hh.
|
inline |
Definition at line 114 of file lossystorageDUNE_time.hh.
|
inline |
Definition at line 139 of file lossystorageDUNE.hh.
|
inline |
Definition at line 141 of file lossystorageDUNE_level.hh.
|
inline |
Definition at line 131 of file lossystorageDUNE_time.hh.
|
inline |
write quantized indices to files using range encoding
Definition at line 902 of file lossystorageDUNE_time.hh.
|
static |
Definition at line 62 of file lossystorage.hh.
Referenced by LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::decode(), LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::encode(), LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::flush(), and LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::LossyStorage().
|
static |
Definition at line 30 of file lossystorageDUNE.hh.
QuantizationPolicy LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::quantizationPolicy |
Definition at line 802 of file lossystorage.hh.
Referenced by LossyStorage< Grid, VariableSet, Space, QuantizationPolicy >::finish().