IT++ Logo
Error and Warning Handling

Macros

#define it_assert(t, s)
 Abort if t is not true.
 
#define it_assert_debug(t, s)
 Abort if t is not true and NDEBUG is not defined.
 
#define it_assert0(t, s)
 Deprecated macro. Please use it_assert_debug() instead.
 
#define it_assert1(t, s)
 Deprecated macro. Please use it_assert_debug() instead.
 
#define it_error_if(t, s)
 Abort if t is true.
 
#define it_error(s)
 Abort unconditionally.
 
#define it_info(s)
 Print information message.
 
#define it_info_no_endl(s)
 Print information message withot std::endl at the end.
 
#define it_info_debug(s)
 Print information message if NDEBUG is not defined.
 
#define it_info_no_endl_debug(s)
 Print information message withot std::endl at the end if NDEBUG is not defined.
 
#define it_warning(s)
 Display a warning message.
 

Enumerations

enum  itpp::error_msg_style { Full , Minimum }
 Style of assert, error and warning messages. More...
 

Functions

void itpp::it_assert_f (std::string ass, std::string msg, std::string file, int line)
 Helper function for the it_assert and it_assert_debug macros.
 
void itpp::it_error_f (std::string msg, std::string file, int line)
 Helper function for the it_error and it_error_if macros.
 
void itpp::it_info_f (std::string msg)
 Helper function for the it_info and it_info_debug macros.
 
void itpp::it_warning_f (std::string msg, std::string file, int line)
 Helper function for the it_warning macro.
 
ITPP_EXPORT void itpp::it_enable_exceptions (bool on)
 Enable/disable using exceptions for error handling.
 
void itpp::it_enable_warnings ()
 Enable warnings.
 
void itpp::it_disable_warnings ()
 Disable warnings.
 
void itpp::it_redirect_warnings (std::ostream *warn_stream)
 Redirect warnings to the ostream warn_stream.
 
void itpp::it_error_msg_style (error_msg_style style)
 Set preferred style of assert, error and warning messages.
 

Detailed Description

For the following macros, the argument s is a string that is displayed.

it_assert(t,s); // Abort if t is not true
it_assert_debug(t,s); // Abort if t is not true and NDEBUG is not defined
it_error_if(t,s); // Abort if t is true
it_error(s); // Abort
it_info(s); // Display a message
it_info_debug(s); // Display a message if NDEBUG is not defined
it_info_no_endl(s); // Display a message without appended "std::endl"
it_info_no_endl_debug(s); // Display a message without appended "std::endl" if NDEBUG is not defined
it_warning(s); // Display a warning
#define it_error_if(t, s)
Abort if t is true.
Definition itassert.h:117
#define it_error(s)
Abort unconditionally.
Definition itassert.h:126
#define it_warning(s)
Display a warning message.
Definition itassert.h:173
#define it_info(s)
Print information message.
Definition itassert.h:136
#define it_info_debug(s)
Print information message if NDEBUG is not defined.
Definition itassert.h:163
#define it_info_no_endl(s)
Print information message withot std::endl at the end.
Definition itassert.h:145
#define it_assert_debug(t, s)
Abort if t is not true and NDEBUG is not defined.
Definition itassert.h:107
#define it_info_no_endl_debug(s)
Print information message withot std::endl at the end if NDEBUG is not defined.
Definition itassert.h:168
#define it_assert(t, s)
Abort if t is not true.
Definition itassert.h:94

it_assert(), it_error(), it_error_if(), it_info(), it_info_no_endl() and it_warning() are always active, whereas it_assert_debug(), it_info_debug() and it_info_no_endl_debug() depends on the NDEBUG compile time definition. If NDEBUG is defined, then none of these macros is executed.

Note
it_assert0() and it_assert1() macros are still defined for backward compatibility, but it_assert_debug() should be used instead of them.

Macro Definition Documentation

◆ it_assert

#define it_assert ( t,
s )
Value:
if (!(t)) { \
std::ostringstream m_sout; \
m_sout << s; \
itpp::it_assert_f(#t,m_sout.str(),__FILE__,__LINE__); \
} else \
((void) 0)

Abort if t is not true.

Definition at line 94 of file itassert.h.

Referenced by itpp::GF2mat::add_rows(), itpp::arma_estimator(), itpp::MOG_diag::avg_log_lhood(), itpp::MOG_diag::avg_log_lhood(), itpp::MOG_generic::avg_log_lhood(), itpp::backward_substitution(), itpp::backward_substitution(), itpp::Base_Event::Base_Event(), itpp::BCH::BCH(), itpp::bidiag(), itpp::bidiag(), itpp::bidiag(), itpp::binom(), itpp::binom_i(), itpp::LDPC_Code::bp_decode(), itpp::GF2mat::bvecify(), itpp::TDL_Channel::calc_frequency_response(), itpp::TDL_Channel::calc_frequency_response(), itpp::TDL_Channel::calc_impulse_response(), itpp::cheb(), itpp::chebwin(), itpp::LDPC_Parity::check_connectivity(), itpp::LDPC_Parity::check_for_cycles(), itpp::Pulse_Shape< T1, T2, T3 >::clear(), itpp::GF2mat::concatenate_horizontal(), itpp::GF2mat::concatenate_vertical(), itpp::BLERC::count(), itpp::cross(), itpp::cumsum(), itpp::LDPC_Parity_Unstructured::cycle_removal_MGW(), itpp::Punctured_Turbo_Codec::decode(), itpp::Reed_Solomon::decode(), itpp::Turbo_Codec::decode(), itpp::Turbo_Codec::decode_block(), itpp::Turbo_Codec::decode_n3(), itpp::Modulator_NCD::demodulate_soft_bits(), itpp::Modulator_NCD::demodulate_soft_bits(), itpp::Modulator_NRD::demodulate_soft_bits(), itpp::Modulator_NRD::demodulate_soft_bits(), itpp::TDL_Channel::discretize(), itpp::LDPC_Parity::display_stats(), itpp::BLDPC_Generator::encode(), itpp::LDPC_Code::encode(), itpp::LDPC_Generator_Systematic::encode(), itpp::Punctured_Turbo_Codec::encode(), itpp::Turbo_Codec::encode_block(), itpp::TTimer< THandler >::ExpirationTime(), itpp::LDPC_Parity::export_alist(), itpp::filter(), itpp::filter(), itpp::filter(), itpp::filter(), itpp::filter(), itpp::filter(), itpp::filter(), itpp::filter(), itpp::filter(), itpp::filter(), itpp::filter(), itpp::filter(), itpp::filter(), itpp::filter(), itpp::filter(), itpp::filter(), itpp::filter_design_autocorrelation(), itpp::find(), itpp::forward_substitution(), itpp::forward_substitution(), itpp::gcd(), itpp::IFFT_Fading_Generator::generate_Jakes(), itpp::LDPC_Parity_Unstructured::generate_random_H(), itpp::Parser::get_bool(), itpp::Sparse_Mat< T >::get_col(), itpp::Sparse_Mat< T >::get_col(), itpp::Channel_Specification::get_doppler_spectrum(), itpp::Parser::get_int(), itpp::Punctured_Turbo_Codec::get_punctured_size(), itpp::Raised_Cosine< T1 >::get_roll_off(), itpp::Root_Raised_Cosine< T1 >::get_roll_off(), itpp::Line_Search::get_solution(), itpp::Newton_Search::get_solution(), itpp::AR_Filter< T1, T2, T3 >::get_state(), itpp::ARMA_Filter< T1, T2, T3 >::get_state(), itpp::MA_Filter< T1, T2, T3 >::get_state(), itpp::GF2mat::get_submatrix(), itpp::Modulator_NCD::get_symbols(), itpp::Modulator_NRD::get_symbols(), itpp::GF2mat::GF2mat(), itpp::GF2mat::GF2mat(), itpp::Gold::Gold(), itpp::Gold::Gold(), itpp::hadamard(), itpp::MOG_generic::init(), itpp::MOG_generic::init(), itpp::MOG_generic::init(), itpp::MOG_generic::init(), itpp::Parser::init(), itpp::Parser::init(), itpp::TDL_Channel::init(), itpp::Modulator_NRD::init_soft_demodulator(), itpp::int2bits(), itpp::LDPC_Code::integrity_check(), itpp::interchange_permutations(), itpp::Sort< T >::intro_sort(), itpp::Sort< T >::intro_sort_index(), itpp::GF2mat::inverse(), itpp::MOG_generic::join(), itpp::levels2bits(), itpp::MOG_diag::lhood(), itpp::MOG_diag::lhood(), itpp::MOG_generic::lhood(), itpp::BLDPC_Generator::load(), itpp::LDPC_Generator_Systematic::load(), itpp::MOG_generic::load(), itpp::BLDPC_Parity::load_base_matrix(), itpp::LDPC_Code::load_code(), itpp::log_binom(), itpp::Rec_Syst_Conv_Code::log_decode(), itpp::Rec_Syst_Conv_Code::log_decode(), itpp::Rec_Syst_Conv_Code::log_decode_n2(), itpp::Rec_Syst_Conv_Code::log_decode_n2(), itpp::MOG_diag::log_lhood(), itpp::MOG_diag::log_lhood(), itpp::MOG_generic::log_lhood(), itpp::MOG_diag::log_lhood_single_gaus(), itpp::MOG_diag::log_lhood_single_gaus(), itpp::MOG_generic::log_lhood_single_gaus(), itpp::Turbo_Codec::lte_turbo_interleaver_sequence(), itpp::max(), itpp::max(), itpp::min(), itpp::min(), itpp::MOG_diag_EM_sup::ml(), itpp::modified_yule_walker(), itpp::Modulator_NCD::modulate_bits(), itpp::Modulator_NRD::modulate_bits(), itpp::norm(), itpp::norm(), itpp::norm(), itpp::norm(), itpp::norm(), itpp::it_file::open(), itpp::it_ifile::open(), itpp::it_ifile_old::open(), itpp::GF::operator/=(), itpp::bfstream::operator<<(), itpp::bfstream::operator<<(), itpp::bofstream::operator<<(), itpp::bofstream::operator<<(), itpp::GF2mat::operator==(), itpp::bfstream::operator>>(), itpp::bfstream::operator>>(), itpp::bfstream::operator>>(), itpp::bifstream::operator>>(), itpp::bifstream::operator>>(), itpp::bifstream::operator>>(), itpp::bin::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::it_file::pack(), itpp::permutation_matrix(), itpp::GF2mat::permute_cols(), itpp::GF2mat::permute_rows(), itpp::prod(), itpp::prod(), itpp::GF2mat_sparse_alist::read(), itpp::Reed_Solomon::Reed_Solomon(), itpp::Mat< Num_T >::repmat(), itpp::Vec< Num_T >::repmat(), itpp::Sparse_Vec< T >::resize_data(), itpp::RNG_set_state(), itpp::rotation_matrix(), itpp::MOG_diag_kmeans_sup::run(), itpp::BLDPC_Generator::save(), itpp::LDPC_Generator_Systematic::save(), itpp::BLDPC_Parity::save_base_matrix(), itpp::LDPC_Code::save_code(), itpp::Line_Search::search(), itpp::Newton_Search::search(), itpp::LDPC_Parity::set(), itpp::Modulator< T >::set(), itpp::TCP_Segment::set_begin(), itpp::Packet::set_bit_size(), itpp::Channel_Specification::set_channel_profile(), itpp::TDL_Channel::set_channel_profile(), itpp::TDL_Channel::set_channel_profile_exponential(), itpp::TDL_Channel::set_channel_profile_uniform(), itpp::Convolutional_Code::set_code(), itpp::CRC_Code::set_code(), itpp::Spread_2d::set_code(), itpp::Multicode_Spread_2d::set_codes(), itpp::AR_Filter< T1, T2, T3 >::set_coeffs(), itpp::ARMA_Filter< T1, T2, T3 >::set_coeffs(), itpp::MA_Filter< T1, T2, T3 >::set_coeffs(), itpp::GF2mat::set_col(), itpp::Sparse_Mat< T >::set_col(), itpp::ND_UQAM::set_constellation_points(), itpp::LDPC_Code::set_decoding_method(), itpp::MOG_generic::set_diag_covs_internal(), itpp::TDL_Channel::set_doppler_spectrum(), itpp::TDL_Channel::set_doppler_spectrum(), itpp::TCP_Segment::set_end(), itpp::ACK_Channel::set_errors(), itpp::Packet_Channel::set_errors(), itpp::LDPC_Code::set_exit_conditions(), itpp::FIR_Fading_Generator::set_filter_length(), itpp::TDL_Channel::set_filter_length(), itpp::MOG_generic::set_full_covs_internal(), itpp::CRC_Code::set_generator(), itpp::Channel_Specification::set_LOS(), itpp::Channel_Specification::set_LOS(), itpp::TDL_Channel::set_LOS(), itpp::Correlated_Fading_Generator::set_LOS_doppler(), itpp::TDL_Channel::set_LOS_doppler(), itpp::Fading_Generator::set_LOS_power(), itpp::TDL_Channel::set_LOS_power(), itpp::ND_UPAM::set_M(), itpp::ND_UPSK::set_M(), itpp::ND_UQAM::set_M(), itpp::PAM::set_M(), itpp::PAM_c::set_M(), itpp::PSK::set_M(), itpp::QAM::set_M(), itpp::Line_Search::set_max_iterations(), itpp::Line_Search::set_max_stepsize(), itpp::MOG_generic::set_means_internal(), itpp::Rice_Fading_Generator::set_no_frequencies(), itpp::TDL_Channel::set_no_frequencies(), itpp::Correlated_Fading_Generator::set_norm_doppler(), itpp::TDL_Channel::set_norm_doppler(), itpp::ACK_Channel::set_parameters(), itpp::OFDM::set_parameters(), itpp::Packet_Channel::set_parameters(), itpp::Packet_Generator::set_parameters(), itpp::Poisson_Packet_Generator::set_parameters(), itpp::Turbo_Codec::set_parameters(), itpp::Raised_Cosine< T1 >::set_pulse_shape(), itpp::Root_Raised_Cosine< T1 >::set_pulse_shape(), itpp::GF2mat::set_row(), itpp::GF::set_size(), itpp::AR_Filter< T1, T2, T3 >::set_state(), itpp::ARMA_Filter< T1, T2, T3 >::set_state(), itpp::LFSR::set_state(), itpp::LFSR::set_state(), itpp::MA_Filter< T1, T2, T3 >::set_state(), itpp::TDL_Channel::set_time_offset(), itpp::MOG_generic::set_weights_internal(), itpp::Bernoulli_RNG::setup(), itpp::STC::setup(), itpp::Pulse_Shape< T1, T2, T3 >::shape_samples(), itpp::Pulse_Shape< T1, T2, T3 >::shape_samples(), itpp::Pulse_Shape< T1, T2, T3 >::shape_symbols(), itpp::Pulse_Shape< T1, T2, T3 >::shape_symbols(), itpp::Gold::shift(), itpp::LFSR::shift(), itpp::TDL_Channel::shift_time_offset(), itpp::Sink::Sink(), itpp::Sort< T >::sort(), itpp::Sort< T >::sort_index(), itpp::ND_UPAM::sphere_decoding(), itpp::Mat< Num_T >::sub_m_v_vT(), itpp::sum(), itpp::sum_sqr(), itpp::GF2mat::swap_cols(), itpp::GF2mat::swap_rows(), itpp::GF2mat::T_fact_update_addcol(), itpp::Vec< Num_T >::to_cvec(), itpp::tridiag(), itpp::tridiag(), itpp::tridiag(), itpp::waterfilling(), itpp::wcdma_spreading_codes(), itpp::Turbo_Codec::wcdma_turbo_interleaver_sequence(), itpp::GF2mat_sparse_alist::write(), itpp::xcorr_old(), itpp::yulewalk(), itpp::zero_pad(), itpp::zero_pad(), and itpp::zigzag_space().

◆ it_assert_debug

#define it_assert_debug ( t,
s )
Value:

Abort if t is not true and NDEBUG is not defined.

Definition at line 107 of file itassert.h.

Referenced by itpp::Sparse_Vec< T >::add(), itpp::Sparse_Mat< T >::add_elem(), itpp::Sparse_Vec< T >::add_elem(), itpp::GF2mat::addto_element(), itpp::assert_fixshift(), itpp::assert_fixshift(), itpp::backslash(), itpp::backslash(), itpp::backslash(), itpp::backslash(), itpp::bin::bin(), itpp::cheb(), itpp::cheb(), itpp::GFX::clear(), itpp::Sparse_Mat< T >::clear_elem(), itpp::Sparse_Vec< T >::clear_elem(), itpp::Convolutional_Code::compare_spectra(), itpp::conference(), itpp::LDPC_Generator_Systematic::construct(), itpp::Mat< Num_T >::copy_col(), itpp::Mat< Num_T >::copy_row(), itpp::LDPC_Parity_Unstructured::cycle_removal_MGW(), itpp::Vec< Num_T >::del(), itpp::Vec< Num_T >::del(), itpp::Mat< Num_T >::del_col(), itpp::Mat< Num_T >::del_cols(), itpp::Mat< Num_T >::del_row(), itpp::Mat< Num_T >::del_rows(), itpp::Modulator< T >::demodulate(), itpp::Modulator< T >::demodulate_bits(), itpp::PAM::demodulate_bits(), itpp::PAM_c::demodulate_bits(), itpp::PSK::demodulate_bits(), itpp::QAM::demodulate_bits(), itpp::Modulator< T >::demodulate_soft_bits(), itpp::Modulator< T >::demodulate_soft_bits(), itpp::PAM_c::demodulate_soft_bits(), itpp::PAM_c::demodulate_soft_bits(), itpp::det(), itpp::det(), itpp::dht(), itpp::dot(), itpp::LDPC_Code::encode(), itpp::Circular_Buffer< T >::get(), itpp::Circular_Buffer< T >::get(), itpp::Circular_Buffer< T >::get(), itpp::GF2mat::get(), itpp::LDPC_Parity::get(), itpp::Mat< Num_T >::get_col(), itpp::Mat< Num_T >::get_cols(), itpp::Mat< Num_T >::get_cols(), itpp::LDPC_Parity::get_ncheck(), itpp::LDPC_Parity::get_nvar(), itpp::Mat< Num_T >::get_row(), itpp::Mat< Num_T >::get_rows(), itpp::Mat< Num_T >::get_rows(), itpp::Sparse_Mat< T >::get_submatrix(), itpp::Sparse_Mat< T >::get_submatrix_cols(), itpp::Sparse_Vec< T >::get_subvector(), itpp::GFX::GFX(), itpp::GFX::GFX(), itpp::hamming_distance(), itpp::Fix_Base::init(), itpp::Modulator_NCD::init_soft_demodulator(), itpp::Vec< Num_T >::ins(), itpp::Vec< Num_T >::ins(), itpp::Mat< Num_T >::ins_col(), itpp::Mat< Num_T >::ins_row(), itpp::Array< T >::left(), itpp::Vec< Num_T >::left(), itpp::lininterp(), itpp::lininterp(), itpp::lininterp(), itpp::lininterp(), itpp::LLR_calc_unit::logexp(), itpp::ls_solve(), itpp::ls_solve(), itpp::ls_solve(), itpp::ls_solve(), itpp::ls_solve_chol(), itpp::ls_solve_chol(), itpp::ls_solve_chol(), itpp::ls_solve_chol(), itpp::ls_solve_od(), itpp::ls_solve_od(), itpp::ls_solve_od(), itpp::ls_solve_od(), itpp::ls_solve_ud(), itpp::ls_solve_ud(), itpp::ls_solve_ud(), itpp::ls_solve_ud(), itpp::CFix::lshift(), itpp::Fix::lshift(), itpp::Mat< Num_T >::Mat(), itpp::Array< T >::mid(), itpp::Vec< Num_T >::mid(), itpp::Modulator< T >::modulate(), itpp::Modulator< T >::modulate_bits(), itpp::Fix::operator double(), itpp::CFix::operator std::complex< double >(), itpp::Vec< Num_T >::operator!=(), itpp::Array< T >::operator()(), itpp::Array< T >::operator()(), itpp::Array< T >::operator()(), itpp::Array< T >::operator()(), itpp::GFX::operator()(), itpp::LDPC_Parity::operator()(), itpp::Mat< Num_T >::operator()(), itpp::Mat< Num_T >::operator()(), itpp::Mat< Num_T >::operator()(), itpp::Mat< Num_T >::operator()(), itpp::Mat< Num_T >::operator()(), itpp::Sparse_Mat< T >::operator()(), itpp::Sparse_Vec< T >::operator()(), itpp::Vec< Num_T >::operator()(), itpp::Vec< Num_T >::operator()(), itpp::Vec< Num_T >::operator()(), itpp::Mat< Num_T >::operator*(), itpp::Mat< Num_T >::operator*(), itpp::operator*(), itpp::operator*(), itpp::operator*(), itpp::operator*(), itpp::operator*(), itpp::operator*(), itpp::operator*(), itpp::operator*(), itpp::Vec< Num_T >::operator*(), itpp::Vec< Num_T >::operator*(), itpp::Vec< Num_T >::operator*(), itpp::Vec< Num_T >::operator*(), itpp::Vec< Num_T >::operator*(), itpp::Vec< Num_T >::operator*(), itpp::Vec< Num_T >::operator*(), itpp::Vec< Num_T >::operator*(), itpp::Vec< Num_T >::operator*(), itpp::Vec< int >::operator*(), itpp::Vec< int >::operator*(), itpp::GF::operator*=(), itpp::GFX::operator*=(), itpp::Mat< Num_T >::operator*=(), itpp::Mat< Num_T >::operator+(), itpp::Mat< Num_T >::operator+(), itpp::Mat< Num_T >::operator+(), itpp::Mat< Num_T >::operator+(), itpp::Mat< Num_T >::operator+(), itpp::operator+(), itpp::operator+(), itpp::operator+(), itpp::operator+(), itpp::operator+(), itpp::operator+(), itpp::operator+(), itpp::operator+(), itpp::Vec< Num_T >::operator+(), itpp::Vec< Num_T >::operator+(), itpp::Vec< Num_T >::operator+(), itpp::Vec< Num_T >::operator+(), itpp::Vec< Num_T >::operator+(), itpp::Vec< Num_T >::operator+(), itpp::Vec< Num_T >::operator+(), itpp::Vec< Num_T >::operator+(), itpp::Vec< Num_T >::operator+(), itpp::GF::operator+=(), itpp::GFX::operator+=(), itpp::Mat< Num_T >::operator+=(), itpp::Sparse_Mat< T >::operator+=(), itpp::Sparse_Mat< T >::operator+=(), itpp::Sparse_Vec< T >::operator+=(), itpp::Sparse_Vec< T >::operator+=(), itpp::Vec< Num_T >::operator+=(), itpp::Mat< Num_T >::operator-(), itpp::Vec< Num_T >::operator-(), itpp::Vec< Num_T >::operator-(), itpp::Vec< Num_T >::operator-(), itpp::Mat< Num_T >::operator-=(), itpp::Sparse_Mat< T >::operator-=(), itpp::Sparse_Mat< T >::operator-=(), itpp::Sparse_Vec< T >::operator-=(), itpp::Sparse_Vec< T >::operator-=(), itpp::Vec< Num_T >::operator-=(), itpp::Mat< Num_T >::operator/(), itpp::Vec< Num_T >::operator/(), itpp::Vec< Num_T >::operator/(), itpp::Vec< Num_T >::operator/(), itpp::Vec< Num_T >::operator/(), itpp::Vec< Num_T >::operator/(), itpp::GF::operator/=(), itpp::Mat< Num_T >::operator/=(), itpp::Vec< Num_T >::operator/=(), itpp::Vec< Num_T >::operator<(), itpp::CFix::operator<<=(), itpp::Fix::operator<<=(), itpp::Vec< Num_T >::operator<=(), itpp::bin::operator=(), itpp::GF::operator=(), itpp::Mat< Num_T >::operator=(), itpp::Vec< Num_T >::operator==(), itpp::Vec< Num_T >::operator>(), itpp::Vec< Num_T >::operator>=(), itpp::GFX::operator[](), itpp::GFX::operator[](), itpp::Vec< Num_T >::operator[](), itpp::Vec< Num_T >::operator[](), itpp::outer_product(), itpp::Circular_Buffer< T >::peek(), itpp::Circular_Buffer< T >::peek(), itpp::Circular_Buffer< T >::peek(), itpp::Circular_Buffer< T >::peek(), itpp::Circular_Buffer< T >::peek(), itpp::Circular_Buffer< T >::peek(), itpp::Circular_Buffer< T >::peek_reverse(), itpp::Circular_Buffer< T >::peek_reverse(), itpp::Circular_Buffer< T >::peek_reverse(), itpp::reshape(), itpp::reshape(), itpp::Array< T >::right(), itpp::Vec< Num_T >::right(), itpp::Fix_Base::rshift_and_apply_q_mode(), itpp::Fix_Base::scale_and_apply_modes(), itpp::self_dht(), itpp::GF2mat::set(), itpp::GF::set(), itpp::GF::set(), itpp::GFX::set(), itpp::LDPC_Parity::set(), itpp::Mat< Num_T >::set(), itpp::Sparse_Mat< T >::set(), itpp::Sparse_Vec< T >::set(), itpp::Sparse_Vec< T >::set(), itpp::Vec< Num_T >::set(), itpp::Mat< Num_T >::set_col(), itpp::Mat< Num_T >::set_cols(), itpp::GFX::set_degree(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::set_fix(), itpp::Sparse_Mat< T >::set_new(), itpp::Sparse_Vec< T >::set_new(), itpp::Sparse_Vec< T >::set_new(), itpp::Mat< Num_T >::set_row(), itpp::Mat< Num_T >::set_rows(), itpp::Array< T >::set_size(), itpp::Mat< Num_T >::set_size(), itpp::Vec< Num_T >::set_size(), itpp::Array< T >::set_subarray(), itpp::Array< T >::set_subarray(), itpp::Mat< Num_T >::set_submatrix(), itpp::Mat< Num_T >::set_submatrix(), itpp::Sparse_Mat< T >::set_submatrix(), itpp::Sparse_Mat< T >::set_submatrix(), itpp::Vec< Num_T >::set_subvector(), itpp::Vec< Num_T >::set_subvector(), itpp::Array< T >::shift_left(), itpp::Vec< Num_T >::shift_left(), itpp::Array< T >::shift_right(), itpp::Array< T >::shift_right(), itpp::Vec< Num_T >::shift_right(), itpp::spectrum(), itpp::spectrum(), itpp::Vec< Num_T >::split(), itpp::Array< T >::swap(), itpp::Mat< Num_T >::swap_cols(), itpp::Mat< Num_T >::swap_rows(), itpp::GF2mat::T_fact_update_addcol(), itpp::to(), itpp::to(), itpp::to(), itpp::Mat< Num_T >::to_cmat(), itpp::CFix::unfix(), itpp::Fix::unfix(), itpp::upsample(), itpp::upsample(), itpp::Vec< Num_T >::Vec(), itpp::Sparse_Mat< T >::zero_elem(), and itpp::Sparse_Vec< T >::zero_elem().

◆ it_assert0

#define it_assert0 ( t,
s )
Value:

Deprecated macro. Please use it_assert_debug() instead.

Definition at line 111 of file itassert.h.

◆ it_assert1

#define it_assert1 ( t,
s )
Value:

Deprecated macro. Please use it_assert_debug() instead.

Definition at line 113 of file itassert.h.

◆ it_error_if

◆ it_error

#define it_error ( s)
Value:
if (true) { \
std::ostringstream m_sout; \
m_sout << s; \
itpp::it_error_f(m_sout.str(),__FILE__,__LINE__); \
} else \
((void) 0)

Abort unconditionally.

Definition at line 126 of file itassert.h.

Referenced by itpp::Fix_Base::apply_o_mode(), itpp::LDPC_Code::bp_decode(), itpp::chol(), itpp::chol(), itpp::BCH::decode(), itpp::BCH::decode(), itpp::Convolutional_Code::decode(), itpp::Convolutional_Code::decode(), itpp::Extended_Golay::decode(), itpp::Extended_Golay::decode(), itpp::Hamming_Code::decode(), itpp::Hamming_Code::decode(), itpp::LDPC_Code::decode(), itpp::LDPC_Code::decode(), itpp::Punctured_Convolutional_Code::decode(), itpp::Punctured_Convolutional_Code::decode(), itpp::Reed_Solomon::decode(), itpp::Reed_Solomon::decode(), itpp::Turbo_Codec::decode_block(), itpp::eig(), itpp::eig(), itpp::eig(), itpp::eig(), itpp::eig_sym(), itpp::eig_sym(), itpp::eig_sym(), itpp::eig_sym(), itpp::Independent_Fading_Generator::generate(), itpp::LDPC_Parity_Irregular::generate(), itpp::LDPC_Parity_Regular::generate(), itpp::Parser::get_bmat(), itpp::Parser::get_bool(), itpp::Parser::get_bvec(), itpp::Multilateration::get_crlb(), itpp::Parser::get_double(), itpp::Parser::get_imat(), itpp::Parser::get_ivec(), itpp::Parser::get_mat(), itpp::Parser::get_smat(), itpp::Parser::get_string(), itpp::Parser::get_svec(), itpp::Parser::get_vec(), itpp::Gold::Gold(), itpp::Fix_Base::init(), itpp::TDL_Channel::init(), itpp::Rice_Fading_Generator::init_MEDS(), itpp::inv(), itpp::inv(), itpp::LDPC_Parity::LDPC_Parity(), itpp::Rec_Syst_Conv_Code::log_decode(), itpp::Rec_Syst_Conv_Code::log_decode_n2(), itpp::ls_solve(), itpp::ls_solve(), itpp::ls_solve(), itpp::ls_solve(), itpp::ls_solve_chol(), itpp::ls_solve_chol(), itpp::ls_solve_chol(), itpp::ls_solve_chol(), itpp::ls_solve_od(), itpp::ls_solve_od(), itpp::ls_solve_od(), itpp::ls_solve_od(), itpp::ls_solve_ud(), itpp::ls_solve_ud(), itpp::ls_solve_ud(), itpp::ls_solve_ud(), itpp::lu(), itpp::lu(), itpp::MOG_diag_EM_sup::map(), itpp::Modulator_ND::marginalize_bits(), itpp::MOG_diag_MAP(), itpp::it_file::open(), itpp::it_file_old::open(), itpp::it_ifile::open(), itpp::it_ifile_old::open(), itpp::operator<<(), itpp::operator<<(), itpp::Vec< Num_T >::operator=(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::operator>>(), itpp::qr(), itpp::qr(), itpp::qr(), itpp::qr(), itpp::qr(), itpp::qr(), itpp::rank(), itpp::Fix_Base::rshift_and_apply_q_mode(), itpp::Fix_Base::scale_and_apply_modes(), itpp::schur(), itpp::schur(), itpp::Vec< Num_T >::set(), itpp::Turbo_Codec::set_metric(), itpp::Fix_Base::set_output_mode(), itpp::Turbo_Codec::set_parameters(), itpp::Multilateration::setup(), itpp::Sort< T >::sort(), itpp::Sort< T >::sort_index(), itpp::svd(), itpp::svd(), itpp::svd(), itpp::svd(), itpp::GF2mat::T_fact_update_bitflip(), and itpp::xcorr_old().

◆ it_info

#define it_info ( s)
Value:
if (true) { \
std::ostringstream m_sout; \
m_sout << s << std::endl; \
itpp::it_info_f(m_sout.str()); \
} else \
((void) 0)

Print information message.

Definition at line 136 of file itassert.h.

Referenced by itpp::LDPC_Parity::display_stats().

◆ it_info_no_endl

#define it_info_no_endl ( s)
Value:
if (true) { \
std::ostringstream m_sout; \
m_sout << s; \
itpp::it_info_f(m_sout.str()); \
} else \
((void) 0)

Print information message withot std::endl at the end.

Definition at line 145 of file itassert.h.

◆ it_info_debug

◆ it_info_no_endl_debug

#define it_info_no_endl_debug ( s)
Value:

Print information message withot std::endl at the end if NDEBUG is not defined.

Definition at line 168 of file itassert.h.

Referenced by itpp::LDPC_Code::bp_decode().

◆ it_warning

#define it_warning ( s)
Value:
if (true) { \
std::ostringstream m_sout; \
m_sout << s; \
itpp::it_warning_f(m_sout.str(),__FILE__,__LINE__); \
} else \
((void) 0)

Display a warning message.

Definition at line 173 of file itassert.h.

Referenced by itpp::chol(), itpp::chol(), itpp::Punctured_Convolutional_Code::decode_tail(), itpp::Punctured_Convolutional_Code::decode_tailbite(), itpp::Punctured_Convolutional_Code::decode_trunc(), itpp::MOG_diag_kmeans_sup::dezombify_means(), itpp::TDL_Channel::discretize(), itpp::Line_Search::get_alpha(), itpp::Fading_Generator::get_doppler_spectrum(), itpp::Fading_Generator::get_filter_length(), itpp::Newton_Search::get_function_value(), itpp::Fast_ICA::get_independent_components(), itpp::Fading_Generator::get_LOS_doppler(), itpp::Fast_ICA::get_mixing_matrix(), itpp::Fading_Generator::get_no_frequencies(), itpp::Line_Search::get_no_function_evaluations(), itpp::Newton_Search::get_no_function_evaluations(), itpp::Newton_Search::get_no_iterations(), itpp::Fading_Generator::get_norm_doppler(), itpp::Fading_Generator::get_rice_method(), itpp::Fast_ICA::get_separating_matrix(), itpp::Line_Search::get_slope_ratio(), itpp::Newton_Search::get_stop_1(), itpp::Newton_Search::get_stop_2(), itpp::Fading_Generator::get_time_offset(), itpp::Line_Search::get_trace(), itpp::Newton_Search::get_trace(), itpp::BLDPC_Parity::load_base_matrix(), itpp::MOG_diag_EM_sup::ml(), itpp::Modulator< T >::modulate_bits(), itpp::it_file_old::pack(), itpp::details::quadlstep(), itpp::details::quadstep(), itpp::MOG_diag_kmeans_sup::run(), itpp::Fading_Generator::set_doppler_spectrum(), itpp::Fading_Generator::set_filter_length(), itpp::Fading_Generator::set_LOS_doppler(), itpp::Fading_Generator::set_no_frequencies(), itpp::Fading_Generator::set_norm_doppler(), itpp::Fading_Generator::set_rice_method(), itpp::Mat< Num_T >::set_submatrix(), itpp::Vec< Num_T >::set_subvector(), itpp::Fading_Generator::set_time_offset(), itpp::Fading_Generator::shift_time_offset(), and itpp::xcorr().

Enumeration Type Documentation

◆ error_msg_style

Style of assert, error and warning messages.

Definition at line 87 of file itassert.h.

Function Documentation

◆ it_assert_f()

ITPP_EXPORT void itpp::it_assert_f ( std::string ass,
std::string msg,
std::string file,
int line )

Helper function for the it_assert and it_assert_debug macros.

Definition at line 50 of file itassert.cpp.

◆ it_error_f()

ITPP_EXPORT void itpp::it_error_f ( std::string msg,
std::string file,
int line )

Helper function for the it_error and it_error_if macros.

Definition at line 68 of file itassert.cpp.

◆ it_info_f()

ITPP_EXPORT void itpp::it_info_f ( std::string msg)

Helper function for the it_info and it_info_debug macros.

Definition at line 86 of file itassert.cpp.

◆ it_warning_f()

ITPP_EXPORT void itpp::it_warning_f ( std::string msg,
std::string file,
int line )

Helper function for the it_warning macro.

Definition at line 91 of file itassert.cpp.

◆ it_enable_warnings()

ITPP_EXPORT void itpp::it_enable_warnings ( )

Enable warnings.

Definition at line 104 of file itassert.cpp.

◆ it_disable_warnings()

ITPP_EXPORT void itpp::it_disable_warnings ( )

Disable warnings.

Definition at line 109 of file itassert.cpp.

◆ it_redirect_warnings()

ITPP_EXPORT void itpp::it_redirect_warnings ( std::ostream * warn_stream)

Redirect warnings to the ostream warn_stream.

Definition at line 114 of file itassert.cpp.

◆ it_error_msg_style()

ITPP_EXPORT void itpp::it_error_msg_style ( error_msg_style style)

Set preferred style of assert, error and warning messages.

Definition at line 119 of file itassert.cpp.

Generated on Tue Aug 17 2021 10:59:15 for IT++ by Doxygen 1.12.0