Skylark (Sketching Library)
0.1
|
#include <sketch_transform_data.hpp>
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_t * | from_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 |
Definition at line 22 of file sketch_transform_data.hpp.
virtual skylark::sketch::sketch_transform_data_t::~sketch_transform_data_t | ( | ) | [inline, virtual] |
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.
void skylark::sketch::sketch_transform_data_t::add_common | ( | boost::property_tree::ptree & | pt | ) | const [inline, protected] |
Add common components (ones in the bsae class) to the property_tree.
Definition at line 53 of file sketch_transform_data.hpp.
References _creation_context, _N, _S, _type, skylark::base::context_t::to_ptree(), and VERSION.
Referenced by skylark::sketch::JLT_data_t::to_ptree(), skylark::sketch::MMT_data_t::to_ptree(), skylark::sketch::CWT_data_t::to_ptree(), skylark::sketch::FJLT_data_t::to_ptree(), skylark::sketch::CT_data_t::to_ptree(), skylark::sketch::PPT_data_t::to_ptree(), skylark::sketch::WZT_data_t::to_ptree(), skylark::sketch::GaussianRFT_data_t::to_ptree(), skylark::sketch::ExpSemigroupRLT_data_t::to_ptree(), and skylark::sketch::LaplacianRFT_data_t::to_ptree().
base::context_t skylark::sketch::sketch_transform_data_t::build | ( | ) | [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 16 of file sketch_add.hpp.
References AUTO_LOAD_DISPATCH, skylark::sketch::c::CT, skylark::sketch::c::CWT, skylark::sketch::c::ExpSemigroupRLT, skylark::sketch::c::FastGaussianRFT, skylark::sketch::c::FJLT, skylark::sketch::c::GaussianRFT, skylark::sketch::c::JLT, skylark::sketch::c::LaplacianRFT, skylark::sketch::c::MMT, skylark::sketch::c::PPT, SKYLARK_THROW_EXCEPTION, and skylark::sketch::c::WZT.
Referenced by sl_deserialize_sketch_transform().
std::string skylark::sketch::sketch_transform_data_t::get_type | ( | ) | [inline] |
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().
const base::context_t skylark::sketch::sketch_transform_data_t::_creation_context [protected] |
Store the context on creation for serialization.
Definition at line 67 of file sketch_transform_data.hpp.
Referenced by add_common(), and build().
int skylark::sketch::sketch_transform_data_t::_N [protected] |
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().
int skylark::sketch::sketch_transform_data_t::_S [protected] |
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().
std::string skylark::sketch::sketch_transform_data_t::_type [protected] |
sketch type
Definition at line 69 of file sketch_transform_data.hpp.
Referenced by add_common(), and get_type().