Skylark (Sketching Library)
0.1
|
#include <string>
#include <exception>
#include <boost/exception/all.hpp>
Go to the source code of this file.
Classes | |
struct | skylark::base::skylark_exception |
define a base exception More... | |
struct | skylark::base::elemental_exception |
exceptions thrown by Elemental More... | |
struct | skylark::base::combblas_exception |
exceptions thrown by CombBLAS More... | |
struct | skylark::base::mpi_exception |
exceptions thrown by Boost MPI More... | |
struct | skylark::base::sketch_exception |
exceptions in the sketch layer More... | |
struct | skylark::base::nla_exception |
exceptions in the nla layer More... | |
struct | skylark::base::random123_exception |
exceptions in the Random123 layer More... | |
struct | skylark::base::io_exception |
exceptions when doing I/O More... | |
struct | skylark::base::allocation_exception |
exceptions for allocating memory in sketch layer More... | |
struct | skylark::base::unsupported_matrix_distribution |
exceptions for unsupported matrix distributions in Elemental More... | |
struct | skylark::base::unsupported_base_operation |
exceptions for unsupported base operation More... | |
Namespaces | |
namespace | skylark |
namespace | skylark::base |
Defines | |
#define | SKYLARK_BEGIN_TRY() try { |
macro defining the beginning of a try block | |
#define | SKYLARK_END_TRY() } |
macro defining the end of a try block | |
#define | SKYLARK_THROW_EXCEPTION(x) BOOST_THROW_EXCEPTION(x); |
throw a skylark exception including file/line information | |
#define | SKYLARK_PRINT_EXCEPTION_DETAILS(ex) std::cerr << boost::diagnostic_information(ex) << std::endl; |
print exception details to stderr | |
#define | SKYLARK_PRINT_EXCEPTION_TRACE(ex) |
print the exception trace (if available) to stderr | |
#define | SKYLARK_CATCH_AND_RETURN_ERROR_CODE() |
catch a Skylark exceptions and returns an error code | |
Typedefs | |
typedef boost::error_info < struct tag_error_code, int > | skylark::base::error_code |
predefined structure for error code | |
typedef boost::error_info < struct tag_error_msg, std::string > | skylark::base::error_msg |
predefined structure for error msg | |
typedef boost::error_info < struct tag_stack_trace, std::string > | skylark::base::stack_trace |
predefined structure for trace error (appends messages) | |
typedef boost::error_info < struct tag_append_trace, std::string > | skylark::base::append_trace |
Functions | |
const char * | skylark_strerror (int error_code) |
resolves an error_code to a human readable failure message | |
Variables | |
const char *const | skylark_errmsg [] |
#define SKYLARK_BEGIN_TRY | ( | ) | try { |
macro defining the beginning of a try block
Definition at line 30 of file exception.hpp.
Referenced by main(), sl_create_context(), sl_create_default_context(), sl_create_sketch_transform(), and sl_free_context().
#define SKYLARK_CATCH_AND_RETURN_ERROR_CODE | ( | ) |
catch (const skylark::base::skylark_exception& ex) { \ if (int const *c = \ boost::get_error_info<skylark::base::error_code>(ex)) { \ return *c; \ } \ }
catch a Skylark exceptions and returns an error code
Definition at line 51 of file exception.hpp.
Referenced by main(), sl_create_context(), sl_create_default_context(), sl_create_sketch_transform(), and sl_free_context().
#define SKYLARK_END_TRY | ( | ) | } |
macro defining the end of a try block
Definition at line 32 of file exception.hpp.
Referenced by main(), sl_create_context(), sl_create_default_context(), sl_create_sketch_transform(), and sl_free_context().
#define SKYLARK_PRINT_EXCEPTION_DETAILS | ( | ex | ) | std::cerr << boost::diagnostic_information(ex) << std::endl; |
print exception details to stderr
Definition at line 39 of file exception.hpp.
Referenced by main().
#define SKYLARK_PRINT_EXCEPTION_TRACE | ( | ex | ) |
if (const std::string *trace = \ boost::get_error_info<skylark::base::stack_trace>(ex)) { \ std::cerr << *trace << std::endl; \ }
print the exception trace (if available) to stderr
Definition at line 43 of file exception.hpp.
Referenced by main().
#define SKYLARK_THROW_EXCEPTION | ( | x | ) | BOOST_THROW_EXCEPTION(x); |
throw a skylark exception including file/line information
Definition at line 35 of file exception.hpp.
Referenced by skylark::sketch::FJLT_t< InputMatrixType, OutputMatrixType >::apply(), skylark::sketch::PPT_t< InputMatrixType, OutputMatrixType >::apply(), skylark::sketch::hash_transform_t< InputMatrixType, OutputMatrixType, boost::random::uniform_int_distribution, skylark::utility::rademacher_distribution_t >::apply(), skylark::sketch::hash_transform_t< FullyDistMultiVec< IndexType, ValueType >, FullyDistMultiVec< IndexType, ValueType >, IdxDistributionType, ValueDistribution >::apply(), skylark::sketch::hash_transform_t< elem::Matrix< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::apply(), skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, base::sparse_matrix_t< ValueType >, IdxDistributionType, ValueDistribution >::apply(), skylark::sketch::RFUT_t< elem::DistMatrix< ValueType, elem::STAR, RowDist >, FUT, ValueDistributionType >::apply(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType >, elem::Matrix< ValueType >, ValueDistribution >::apply(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::Matrix< ValueType >, ValueDistribution >::apply(), skylark::sketch::dense_transform_t< InputType< ValueType >, elem::Matrix< ValueType >, ValueDistribution >::apply(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::DistMatrix< ValueType, ColDist, elem::STAR >, ValueDistribution >::apply(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType >, elem::DistMatrix< ValueType, elem::STAR, elem::STAR >, ValueDistribution >::apply(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, elem::STAR, RowDist >, elem::DistMatrix< ValueType, elem::STAR, RowDist >, ValueDistribution >::apply(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::DistMatrix< ValueType, elem::STAR, elem::STAR >, ValueDistribution >::apply(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, elem::STAR, RowDist >, elem::Matrix< ValueType >, ValueDistribution >::apply(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, elem::STAR, RowDist >, elem::DistMatrix< ValueType, elem::STAR, elem::STAR >, ValueDistribution >::apply(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::DistMatrix< ValueType, elem::CIRC, elem::CIRC >, ValueDistribution >::apply(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType >, elem::DistMatrix< ValueType, elem::CIRC, elem::CIRC >, ValueDistribution >::apply(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType, elem::STAR, RowDist >, elem::DistMatrix< ValueType, elem::CIRC, elem::CIRC >, ValueDistribution >::apply(), skylark::sketch::RFT_t< InputType< ValueType >, elem::Matrix< ValueType >, KernelDistribution >::apply(), skylark::sketch::dense_transform_t< elem::DistMatrix< ValueType >, elem::DistMatrix< ValueType >, ValueDistribution >::apply(), skylark::sketch::RLT_t< InputType< ValueType >, elem::Matrix< ValueType >, KernelDistribution >::apply(), skylark::sketch::FJLT_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::Matrix< ValueType > >::apply(), skylark::sketch::hash_transform_t< SpParMat< IndexType, ValueType, SpDCCols< IndexType, ValueType > >, elem::DistMatrix< ValueType, ColDist, RowDist >, IdxDistributionType, ValueDistribution >::apply(), skylark::sketch::RFUT_t< elem::DistMatrix< ValueType, RowDist, elem::STAR >, FUT, ValueDistributionType >::apply(), skylark::sketch::hash_transform_t< base::sparse_matrix_t< ValueType >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::apply(), skylark::sketch::hash_transform_t< SpParMat< IndexType, ValueType, SpDCCols< IndexType, ValueType > >, SpParMat< IndexType, ValueType, SpDCCols< IndexType, ValueType > >, IdxDistributionType, ValueDistribution >::apply(), skylark::sketch::RFT_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::DistMatrix< ValueType, ColDist, elem::STAR >, KernelDistribution >::apply(), skylark::sketch::FJLT_t< elem::DistMatrix< ValueType, ColDist, elem::STAR >, elem::DistMatrix< ValueType, elem::STAR, elem::STAR > >::apply(), skylark::sketch::hash_transform_t< elem::DistMatrix< ValueType, ColDist, RowDist >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::apply(), skylark::sketch::hash_transform_t< SpParMat< IndexType, ValueType, SpDCCols< IndexType, ValueType > >, elem::Matrix< ValueType >, IdxDistributionType, ValueDistribution >::apply(), skylark::sketch::hash_transform_t< elem::DistMatrix< ValueType, ColDist, RowDist >, elem::DistMatrix< ValueType, elem::STAR, elem::STAR >, IdxDistributionType, ValueDistribution >::apply(), skylark::sketch::hash_transform_t< SpParMat< IndexType, ValueType, SpDCCols< IndexType, ValueType > >, base::sparse_matrix_t< ValueType >, IdxDistributionType, ValueDistribution >::apply(), skylark::sketch::RFUT_t< elem::DistMatrix< ValueType, RowDist, elem::STAR >, FUT, ValueDistributionType >::apply_inverse(), skylark::nla::ApproximateLeastSquares(), skylark::utility::collect_dist_matrix(), skylark::nla::FastLeastSquares(), skylark::sketch::FJLT_t< InputMatrixType, OutputMatrixType >::FJLT_t(), skylark::sketch::sketch_transform_data_t::from_ptree(), skylark::sketch::sketch_transform_t< InputMatrixType, OutputMatrixType >::from_ptree(), skylark::base::context_t::generate_random_samples_array(), skylark::sketch::hash_transform_t< InputMatrixType, OutputMatrixType, boost::random::uniform_int_distribution, skylark::utility::rademacher_distribution_t >::hash_transform_t(), skylark::nla::randsvd_t< SketchTransform >::operator()(), skylark::utility::random_samples_array_t< value_distribution_type >::operator[](), skylark::utility::random_array_t::operator[](), skylark::sketch::PPT_t< InputMatrixType, OutputMatrixType >::PPT_t(), skylark::utility::random_array_t::random_array_t(), skylark::utility::random_samples_array_t< value_distribution_type >::random_samples_array_t(), skylark::sketch::hash_transform_data_t< boost::random::uniform_int_distribution, skylark::utility::rademacher_distribution_t >::to_ptree(), skylark::sketch::RFT_data_t< bstrand::cauchy_distribution >::to_ptree(), skylark::sketch::dense_transform_data_t< bstrand::cauchy_distribution >::to_ptree(), skylark::sketch::RLT_data_t< utility::standard_levy_distribution_t >::to_ptree(), and skylark::sketch::WZT_data_t::WZT_data_t().
const char* skylark_strerror | ( | int | error_code | ) |
resolves an error_code to a human readable failure message
Definition at line 24 of file exception.hpp.
References skylark_errmsg.
Referenced by main(), and sl_strerror().
const char* const skylark_errmsg[] |
{ "Skylark failure" , "Skylark failed while communicating (MPI)" , "Skylark failed in a call to Elemental" , "Skylark failed due to a unsupported matrix distribution" , "Skylark failed in a call to CombBLAS" , "Skylark failed in sketching a matrix" , "Skylark failed in nla operation" , "Skylark failed when allocating memory in a sketch" , "Skylark failed in a call into the Random123 layer" , "Skylark failed in I/O calls" , "Skylark failed due to a unsupported base operation" }
Definition at line 9 of file exception.hpp.
Referenced by skylark_strerror().