Skylark (Sketching Library)  0.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
skylark::sketch::sketch_transform_data_t Struct Reference

#include <sketch_transform_data.hpp>

Inheritance diagram for skylark::sketch::sketch_transform_data_t:
Inheritance graph
[legend]
Collaboration diagram for skylark::sketch::sketch_transform_data_t:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual boost::property_tree::ptree to_ptree () const =0
virtual ~sketch_transform_data_t ()
std::string get_type ()

Static Public Member Functions

static sketch_transform_data_tfrom_ptree (const boost::property_tree::ptree &pt)

Protected Member Functions

 sketch_transform_data_t (int N, int S, const base::context_t &context, const std::string type)
void add_common (boost::property_tree::ptree &pt) const
base::context_t build ()

Protected Attributes

int _N
int _S
const base::context_t _creation_context
 Store the context on creation for serialization.
std::string _type

Detailed Description

Definition at line 22 of file sketch_transform_data.hpp.


Constructor & Destructor Documentation

Definition at line 31 of file sketch_transform_data.hpp.

skylark::sketch::sketch_transform_data_t::sketch_transform_data_t ( int  N,
int  S,
const base::context_t context,
const std::string  type 
) [inline, protected]

Definition at line 44 of file sketch_transform_data.hpp.


Member Function Documentation

void skylark::sketch::sketch_transform_data_t::add_common ( boost::property_tree::ptree &  pt) const [inline, protected]

random samples should only be drawn here, return context after random samples have been extracted.

Reimplemented in skylark::sketch::dense_transform_data_t< ValueDistribution >, skylark::sketch::dense_transform_data_t< bstrand::normal_distribution >, skylark::sketch::dense_transform_data_t< bstrand::cauchy_distribution >, skylark::sketch::PPT_data_t, skylark::sketch::FJLT_data_t, skylark::sketch::RLT_data_t< KernelDistribution >, skylark::sketch::RLT_data_t< utility::standard_levy_distribution_t >, skylark::sketch::RFT_data_t< KernelDistribution >, skylark::sketch::RFT_data_t< bstrand::normal_distribution >, skylark::sketch::RFT_data_t< bstrand::cauchy_distribution >, skylark::sketch::hash_transform_data_t< IdxDistributionType, ValueDistribution >, skylark::sketch::hash_transform_data_t< boost::random::uniform_int_distribution, boost::random::exponential_distribution >, skylark::sketch::hash_transform_data_t< boost::random::uniform_int_distribution, boost::random::cauchy_distribution >, skylark::sketch::hash_transform_data_t< boost::random::uniform_int_distribution, utility::rademacher_distribution_t >, and skylark::sketch::hash_transform_data_t< boost::random::uniform_int_distribution, skylark::utility::rademacher_distribution_t >.

Definition at line 73 of file sketch_transform_data.hpp.

References _creation_context.

Referenced by skylark::sketch::hash_transform_data_t< boost::random::uniform_int_distribution, skylark::utility::rademacher_distribution_t >::build(), skylark::sketch::RFT_data_t< bstrand::cauchy_distribution >::build(), skylark::sketch::RLT_data_t< utility::standard_levy_distribution_t >::build(), skylark::sketch::FJLT_data_t::build(), skylark::sketch::PPT_data_t::build(), and skylark::sketch::dense_transform_data_t< bstrand::cauchy_distribution >::build().

sketch_transform_data_t * skylark::sketch::sketch_transform_data_t::from_ptree ( const boost::property_tree::ptree &  pt) [static]

Definition at line 38 of file sketch_transform_data.hpp.

References _type.

Referenced by sl_deserialize_sketch_transform().

virtual boost::property_tree::ptree skylark::sketch::sketch_transform_data_t::to_ptree ( ) const [pure virtual]

Serializes a sketch to a property_tree

Implemented in skylark::sketch::LaplacianRFT_data_t, skylark::sketch::ExpSemigroupRLT_data_t, skylark::sketch::GaussianRFT_data_t, skylark::sketch::WZT_data_t, skylark::sketch::PPT_data_t, skylark::sketch::CT_data_t, skylark::sketch::FJLT_data_t, skylark::sketch::CWT_data_t, skylark::sketch::MMT_data_t, skylark::sketch::JLT_data_t, skylark::sketch::RLT_data_t< KernelDistribution >, skylark::sketch::RLT_data_t< utility::standard_levy_distribution_t >, skylark::sketch::dense_transform_data_t< ValueDistribution >, skylark::sketch::dense_transform_data_t< bstrand::normal_distribution >, skylark::sketch::dense_transform_data_t< bstrand::cauchy_distribution >, skylark::sketch::RFT_data_t< KernelDistribution >, skylark::sketch::RFT_data_t< bstrand::normal_distribution >, skylark::sketch::RFT_data_t< bstrand::cauchy_distribution >, skylark::sketch::hash_transform_data_t< IdxDistributionType, ValueDistribution >, skylark::sketch::hash_transform_data_t< boost::random::uniform_int_distribution, boost::random::exponential_distribution >, skylark::sketch::hash_transform_data_t< boost::random::uniform_int_distribution, boost::random::cauchy_distribution >, skylark::sketch::hash_transform_data_t< boost::random::uniform_int_distribution, utility::rademacher_distribution_t >, and skylark::sketch::hash_transform_data_t< boost::random::uniform_int_distribution, skylark::utility::rademacher_distribution_t >.

Referenced by sl_serialize_sketch_transform(), and skylark::sketch::sketch_transform_t< elem::DistMatrix< ValueType, ColDist, RowDist >, elem::DistMatrix< ValueType, elem::STAR, elem::STAR > >::to_ptree().


Member Data Documentation

Store the context on creation for serialization.

Definition at line 67 of file sketch_transform_data.hpp.

Referenced by add_common(), and build().

Input dimension

Definition at line 63 of file sketch_transform_data.hpp.

Referenced by add_common(), skylark::sketch::hash_transform_data_t< boost::random::uniform_int_distribution, skylark::utility::rademacher_distribution_t >::build(), skylark::sketch::RFT_data_t< bstrand::cauchy_distribution >::build(), skylark::sketch::RLT_data_t< utility::standard_levy_distribution_t >::build(), skylark::sketch::FJLT_data_t::build(), skylark::sketch::PPT_data_t::build(), skylark::sketch::dense_transform_data_t< bstrand::cauchy_distribution >::build(), skylark::sketch::FJLT_t< InputMatrixType, OutputMatrixType >::get_N(), skylark::sketch::PPT_t< InputMatrixType, OutputMatrixType >::get_N(), skylark::sketch::hash_transform_t< elem::Matrix< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::get_N(), skylark::sketch::dense_transform_t< InputType< ValueType >, elem::Matrix< ValueType >, ValueDistribution >::get_N(), skylark::sketch::hash_transform_t< FullyDistMultiVec< IndexType, ValueType >, FullyDistMultiVec< IndexType, ValueType >, IdxDistributionType, ValueDistribution >::get_N(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType >, elem::Matrix< ValueType >, ValueDistribution >::get_N(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType >, elem::DistMatrix< ValueType, elem::STAR, elem::STAR >, ValueDistribution >::get_N(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType >, elem::DistMatrix< ValueType, elem::CIRC, elem::CIRC >, ValueDistribution >::get_N(), skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, base::sparse_matrix_t< ValueType >, IdxDistributionType, ValueDistribution >::get_N(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType >, elem::DistMatrix< ValueType >, ValueDistribution >::get_N(), skylark::sketch::CWT_t< InputMatrixType, OutputMatrixType >::get_N(), skylark::sketch::MMT_t< InputMatrixType, OutputMatrixType >::get_N(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::DistMatrix< ValueType, ColDist, elem::STAR >, ValueDistribution >::get_N(), skylark::sketch::JLT_t< InputMatrixType, OutputMatrixType >::get_N(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::Matrix< ValueType >, ValueDistribution >::get_N(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, elem::STAR, RowDist >, elem::DistMatrix< ValueType, elem::STAR, RowDist >, ValueDistribution >::get_N(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, elem::STAR, RowDist >, elem::Matrix< ValueType >, ValueDistribution >::get_N(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::DistMatrix< ValueType, elem::STAR, elem::STAR >, ValueDistribution >::get_N(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, elem::STAR, RowDist >, elem::DistMatrix< ValueType, elem::STAR, elem::STAR >, ValueDistribution >::get_N(), skylark::sketch::CT_t< InputMatrixType, OutputMatrixType >::get_N(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::DistMatrix< ValueType, elem::CIRC, elem::CIRC >, ValueDistribution >::get_N(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, elem::STAR, RowDist >, elem::DistMatrix< ValueType, elem::CIRC, elem::CIRC >, ValueDistribution >::get_N(), skylark::sketch::WZT_t< InputMatrixType, OutputMatrixType >::get_N(), skylark::sketch::FJLT_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::Matrix< ValueType > >::get_N(), skylark::sketch::GaussianRFT_t< InputMatrixType, OutputMatrixType >::get_N(), skylark::sketch::ExpSemigroupRLT_t< InputMatrixType, OutputMatrixType >::get_N(), skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::get_N(), skylark::sketch::hash_transform_t< SpParMat< IndexType, ValueType, SpDCCols< IndexType, ValueType > >, SpParMat< IndexType, ValueType, SpDCCols< IndexType, ValueType > >, IdxDistributionType, ValueDistribution >::get_N(), skylark::sketch::LaplacianRFT_t< InputMatrixType, OutputMatrixType >::get_N(), skylark::sketch::FJLT_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::DistMatrix< ValueType, elem::STAR, elem::STAR > >::get_N(), skylark::sketch::hash_transform_t< SpParMat< IndexType, ValueType, SpDCCols< IndexType, ValueType > >, base::sparse_matrix_t< ValueType >, IdxDistributionType, ValueDistribution >::get_N(), skylark::sketch::hash_transform_t< elem::DistMatrix< ValueType, ColDist, RowDist >, elem::DistMatrix< ValueType, elem::STAR, elem::STAR >, IdxDistributionType, ValueDistribution >::get_N(), and skylark::sketch::dense_transform_data_t< bstrand::cauchy_distribution >::realize_matrix_view().

Output dimension

Definition at line 64 of file sketch_transform_data.hpp.

Referenced by add_common(), skylark::sketch::hash_transform_data_t< boost::random::uniform_int_distribution, skylark::utility::rademacher_distribution_t >::build(), skylark::sketch::RFT_data_t< bstrand::cauchy_distribution >::build(), skylark::sketch::RLT_data_t< utility::standard_levy_distribution_t >::build(), skylark::sketch::FJLT_data_t::build(), skylark::sketch::PPT_data_t::build(), skylark::sketch::dense_transform_data_t< bstrand::cauchy_distribution >::build(), skylark::sketch::hash_transform_data_t< boost::random::uniform_int_distribution, skylark::utility::rademacher_distribution_t >::get_res_size(), skylark::sketch::FJLT_t< InputMatrixType, OutputMatrixType >::get_S(), skylark::sketch::PPT_t< InputMatrixType, OutputMatrixType >::get_S(), skylark::sketch::hash_transform_t< elem::Matrix< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::get_S(), skylark::sketch::dense_transform_t< InputType< ValueType >, elem::Matrix< ValueType >, ValueDistribution >::get_S(), skylark::sketch::hash_transform_t< FullyDistMultiVec< IndexType, ValueType >, FullyDistMultiVec< IndexType, ValueType >, IdxDistributionType, ValueDistribution >::get_S(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType >, elem::Matrix< ValueType >, ValueDistribution >::get_S(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType >, elem::DistMatrix< ValueType, elem::STAR, elem::STAR >, ValueDistribution >::get_S(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType >, elem::DistMatrix< ValueType, elem::CIRC, elem::CIRC >, ValueDistribution >::get_S(), skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, base::sparse_matrix_t< ValueType >, IdxDistributionType, ValueDistribution >::get_S(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType >, elem::DistMatrix< ValueType >, ValueDistribution >::get_S(), skylark::sketch::CWT_t< InputMatrixType, OutputMatrixType >::get_S(), skylark::sketch::MMT_t< InputMatrixType, OutputMatrixType >::get_S(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::DistMatrix< ValueType, ColDist, elem::STAR >, ValueDistribution >::get_S(), skylark::sketch::JLT_t< InputMatrixType, OutputMatrixType >::get_S(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::Matrix< ValueType >, ValueDistribution >::get_S(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, elem::STAR, RowDist >, elem::DistMatrix< ValueType, elem::STAR, RowDist >, ValueDistribution >::get_S(), skylark::sketch::CT_t< InputMatrixType, OutputMatrixType >::get_S(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, elem::STAR, RowDist >, elem::Matrix< ValueType >, ValueDistribution >::get_S(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, elem::STAR, RowDist >, elem::DistMatrix< ValueType, elem::STAR, elem::STAR >, ValueDistribution >::get_S(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::DistMatrix< ValueType, elem::STAR, elem::STAR >, ValueDistribution >::get_S(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::DistMatrix< ValueType, elem::CIRC, elem::CIRC >, ValueDistribution >::get_S(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, elem::STAR, RowDist >, elem::DistMatrix< ValueType, elem::CIRC, elem::CIRC >, ValueDistribution >::get_S(), skylark::sketch::WZT_t< InputMatrixType, OutputMatrixType >::get_S(), skylark::sketch::FJLT_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::Matrix< ValueType > >::get_S(), skylark::sketch::GaussianRFT_t< InputMatrixType, OutputMatrixType >::get_S(), skylark::sketch::ExpSemigroupRLT_t< InputMatrixType, OutputMatrixType >::get_S(), skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::get_S(), skylark::sketch::hash_transform_t< SpParMat< IndexType, ValueType, SpDCCols< IndexType, ValueType > >, SpParMat< IndexType, ValueType, SpDCCols< IndexType, ValueType > >, IdxDistributionType, ValueDistribution >::get_S(), skylark::sketch::LaplacianRFT_t< InputMatrixType, OutputMatrixType >::get_S(), skylark::sketch::FJLT_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::DistMatrix< ValueType, elem::STAR, elem::STAR > >::get_S(), skylark::sketch::hash_transform_t< SpParMat< IndexType, ValueType, SpDCCols< IndexType, ValueType > >, base::sparse_matrix_t< ValueType >, IdxDistributionType, ValueDistribution >::get_S(), skylark::sketch::hash_transform_t< elem::DistMatrix< ValueType, ColDist, RowDist >, elem::DistMatrix< ValueType, elem::STAR, elem::STAR >, IdxDistributionType, ValueDistribution >::get_S(), and skylark::sketch::dense_transform_data_t< bstrand::cauchy_distribution >::realize_matrix_view().

sketch type

Definition at line 69 of file sketch_transform_data.hpp.

Referenced by add_common(), and get_type().


The documentation for this struct was generated from the following files: