Skylark (Sketching Library)
0.1
|
#include <hash_transform_Elemental.hpp>
Public Types | |
typedef ValueType | value_type |
typedef base::sparse_matrix_t < ValueType > | matrix_type |
typedef elem::Matrix< value_type > | output_matrix_type |
typedef IdxDistributionType < size_t > | idx_distribution_type |
typedef ValueDistribution < value_type > | value_distribution_type |
typedef hash_transform_data_t < IdxDistributionType, ValueDistribution > | data_type |
Public Member Functions | |
hash_transform_t (int N, int S, base::context_t &context) | |
hash_transform_t (const hash_transform_t< matrix_type, output_matrix_type, IdxDistributionType, ValueDistribution > &other) | |
hash_transform_t (const data_type &other_data) | |
template<typename Dimension > | |
void | apply (const matrix_type &A, output_matrix_type &sketch_of_A, Dimension dimension) const |
int | get_N () const |
int | get_S () const |
const sketch_transform_data_t * | get_data () const |
Specialization sparse local input, local output
Definition at line 132 of file hash_transform_Elemental.hpp.
typedef hash_transform_data_t<IdxDistributionType, ValueDistribution> skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::data_type |
Definition at line 147 of file hash_transform_Elemental.hpp.
typedef IdxDistributionType<size_t> skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::idx_distribution_type |
Reimplemented from skylark::sketch::hash_transform_data_t< IdxDistributionType, ValueDistribution >.
Definition at line 144 of file hash_transform_Elemental.hpp.
typedef base::sparse_matrix_t<ValueType> skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::matrix_type |
Definition at line 142 of file hash_transform_Elemental.hpp.
typedef elem::Matrix<value_type> skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::output_matrix_type |
Definition at line 143 of file hash_transform_Elemental.hpp.
typedef ValueDistribution<value_type> skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::value_distribution_type |
Reimplemented from skylark::sketch::hash_transform_data_t< IdxDistributionType, ValueDistribution >.
Definition at line 145 of file hash_transform_Elemental.hpp.
typedef ValueType skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::value_type |
Definition at line 141 of file hash_transform_Elemental.hpp.
skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::hash_transform_t | ( | int | N, |
int | S, | ||
base::context_t & | context | ||
) | [inline] |
Regular constructor
Definition at line 151 of file hash_transform_Elemental.hpp.
skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::hash_transform_t | ( | const hash_transform_t< matrix_type, output_matrix_type, IdxDistributionType, ValueDistribution > & | other | ) | [inline] |
Copy constructor
Definition at line 159 of file hash_transform_Elemental.hpp.
skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::hash_transform_t | ( | const data_type & | other_data | ) | [inline] |
Constructor from data
Definition at line 168 of file hash_transform_Elemental.hpp.
void skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::apply | ( | const matrix_type & | A, |
output_matrix_type & | sketch_of_A, | ||
Dimension | dimension | ||
) | const [inline] |
Apply the sketching transform that is described in by the sketch_of_A.
Definition at line 175 of file hash_transform_Elemental.hpp.
References SKYLARK_THROW_EXCEPTION.
const sketch_transform_data_t* skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::get_data | ( | ) | const [inline] |
Definition at line 193 of file hash_transform_Elemental.hpp.
int skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::get_N | ( | ) | const [inline] |
Get input dimension.
Definition at line 190 of file hash_transform_Elemental.hpp.
References skylark::sketch::sketch_transform_data_t::_N.
int skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::get_S | ( | ) | const [inline] |
Get output dimension.
Definition at line 191 of file hash_transform_Elemental.hpp.
References skylark::sketch::sketch_transform_data_t::_S.