Debug

Namespaces

namespace  junk

Functions

void arma_print ()
template<typename T1 >
void arma_print (const T1 &x)
template<typename T1 , typename T2 >
void arma_print (const T1 &x, const T2 &y)
template<typename T1 >
void arma_print (const arma_boost::basic_format< T1 > &x)
template<typename T1 , typename T2 >
void arma_print (const arma_boost::basic_format< T1, T2 > &x)
void arma_sigprint (const char *x)
 print a message on cout, with a preceding @ character. used for printing the signature of a function (see the arma_extra_debug_sigprint macro)
void arma_bktprint ()
template<typename T1 >
void arma_bktprint (const T1 &x)
template<typename T1 , typename T2 >
void arma_bktprint (const T1 &x, const T2 &y)
template<typename T1 >
void arma_bktprint (const arma_boost::basic_format< T1 > &x)
template<typename T1 , typename T2 >
void arma_bktprint (const arma_boost::basic_format< T1, T2 > &x)
void arma_thisprint (void *this_ptr)
template<typename T1 >
void arma_hot arma_warn (const bool state, const T1 &x)
 if state is true, print a message on cout
template<typename T1 , typename T2 >
void arma_hot arma_warn (const bool state, const T1 &x, const T2 &y)
template<typename T1 >
void arma_hot arma_warn (const bool state, const arma_boost::basic_format< T1 > &x)
template<typename T1 , typename T2 >
void arma_hot arma_warn (const bool state, const arma_boost::basic_format< T1, T2 > &x)
template<typename T1 >
void arma_hot arma_check (const bool state, const T1 &x)
 if state is true, throw a run-time error exception
template<typename T1 , typename T2 >
void arma_hot arma_check (const bool state, const T1 &x, const T2 &y)
template<typename T1 >
void arma_hot arma_check (const bool state, const arma_boost::basic_format< T1 > &x)
template<typename T1 , typename T2 >
void arma_hot arma_check (const bool state, const arma_boost::basic_format< T1, T2 > &x)
std::string arma_incompat_size_string (const u32 A_n_rows, const u32 A_n_cols, const u32 B_n_rows, const u32 B_n_cols, const char *x)
void arma_hot arma_assert_same_size (const u32 A_n_rows, const u32 A_n_cols, const u32 B_n_rows, const u32 B_n_cols, const char *x)
template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size (const Mat< eT1 > &A, const Mat< eT2 > &B, const char *x)
 if given matrices have different sizes, throw a run-time error exception
template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size (const Mat< eT1 > &A, const subview< eT2 > &B, const char *x)
template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size (const subview< eT1 > &A, const Mat< eT2 > &B, const char *x)
template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size (const subview< eT1 > &A, const subview< eT2 > &B, const char *x)
std::string arma_incompat_size_string (const u32 A_n_rows, const u32 A_n_cols, const u32 A_n_slices, const u32 B_n_rows, const u32 B_n_cols, const u32 B_n_slices, const char *x)
void arma_hot arma_assert_same_size (const u32 A_n_rows, const u32 A_n_cols, const u32 A_n_slices, const u32 B_n_rows, const u32 B_n_cols, const u32 B_n_slices, const char *x)
template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size (const Cube< eT1 > &A, const Cube< eT2 > &B, const char *x)
 if given cubes have different sizes, throw a run-time error exception
template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size (const Cube< eT1 > &A, const subview_cube< eT2 > &B, const char *x)
template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size (const subview_cube< eT1 > &A, const Cube< eT2 > &B, const char *x)
template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size (const subview_cube< eT1 > &A, const subview_cube< eT2 > &B, const char *x)
template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size (const Cube< eT1 > &A, const Mat< eT2 > &B, const char *x)
template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size (const Mat< eT1 > &A, const Cube< eT2 > &B, const char *x)
template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size (const subview_cube< eT1 > &A, const Mat< eT2 > &B, const char *x)
template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size (const Mat< eT1 > &A, const subview_cube< eT2 > &B, const char *x)
void arma_hot arma_assert_mul_size (const u32 A_n_rows, const u32 A_n_cols, const u32 B_n_rows, const u32 B_n_cols, const char *x)
template<typename eT1 , typename eT2 >
void arma_hot arma_assert_mul_size (const Mat< eT1 > &A, const Mat< eT2 > &B, const char *x)
 if given matrices are incompatible for multiplication, throw a run-time error exception
template<typename eT1 , typename eT2 >
void arma_hot arma_assert_mul_size (const Mat< eT1 > &A, const subview< eT2 > &B, const char *x)
template<typename eT1 , typename eT2 >
void arma_hot arma_assert_mul_size (const subview< eT1 > &A, const Mat< eT2 > &B, const char *x)
template<typename eT1 , typename eT2 >
void arma_hot arma_assert_mul_size (const subview< eT1 > &A, const subview< eT2 > &B, const char *x)
template<typename T1 >
void arma_stop (const T1 &x)
 throw a run-time error exception

Function Documentation

void arma_print (  )  [inline]
template<typename T1 >
void arma_print ( const T1 &  x  )  [inline]

Definition at line 35 of file debug.hpp.

00036   {
00037   std::cout << x << std::endl;
00038   }

template<typename T1 , typename T2 >
void arma_print ( const T1 &  x,
const T2 &  y 
) [inline]

Definition at line 45 of file debug.hpp.

00046   {
00047   std::cout << x << y << std::endl;
00048   }

template<typename T1 >
void arma_print ( const arma_boost::basic_format< T1 > &  x  )  [inline]

Definition at line 56 of file debug.hpp.

00057     {
00058     std::cout << x << std::endl;
00059     }

template<typename T1 , typename T2 >
void arma_print ( const arma_boost::basic_format< T1, T2 > &  x  )  [inline]

Definition at line 64 of file debug.hpp.

00065     {
00066     std::cout << x << std::endl;
00067     }

void arma_sigprint ( const char *  x  )  [inline]

print a message on cout, with a preceding @ character. used for printing the signature of a function (see the arma_extra_debug_sigprint macro)

Definition at line 80 of file debug.hpp.

00081   {
00082   std::cout << "@ " << x;
00083   }

void arma_bktprint (  )  [inline]

Definition at line 93 of file debug.hpp.

00094   {
00095   std::cout << std::endl;
00096   }

template<typename T1 >
void arma_bktprint ( const T1 &  x  )  [inline]

Definition at line 102 of file debug.hpp.

00103   {
00104   std::cout << " [" << x << ']' << std::endl;
00105   }

template<typename T1 , typename T2 >
void arma_bktprint ( const T1 &  x,
const T2 &  y 
) [inline]

Definition at line 112 of file debug.hpp.

00113   {
00114   std::cout << " [" << x << y << ']' << std::endl;
00115   }

template<typename T1 >
void arma_bktprint ( const arma_boost::basic_format< T1 > &  x  )  [inline]

Definition at line 123 of file debug.hpp.

00124     {
00125     std::cout << " [" << x << ']' << std::endl;
00126     }

template<typename T1 , typename T2 >
void arma_bktprint ( const arma_boost::basic_format< T1, T2 > &  x  )  [inline]

Definition at line 131 of file debug.hpp.

00132     {
00133     std::cout << " [" << x << ']' << std::endl;
00134     }

void arma_thisprint ( void *  this_ptr  )  [inline]

Definition at line 145 of file debug.hpp.

00146   {
00147   std::cout << " [this = " << this_ptr << ']' << std::endl;
00148   }

template<typename T1 >
void arma_hot arma_warn ( const bool  state,
const T1 &  x 
) [inline]

if state is true, print a message on cout

Definition at line 160 of file debug.hpp.

References arma_print().

Referenced by diskio::safe_rename(), diskio::save_arma_ascii(), diskio::save_arma_binary(), diskio::save_pgm_binary(), diskio::save_ppm_binary(), diskio::save_raw_ascii(), and diskio::save_std_string().

00161   {
00162   if(state==true)
00163     {
00164     arma_print(x);
00165     }
00166   }

template<typename T1 , typename T2 >
void arma_hot arma_warn ( const bool  state,
const T1 &  x,
const T2 &  y 
) [inline]

Definition at line 173 of file debug.hpp.

References arma_print().

00174   {
00175   if(state==true)
00176     {
00177     arma_print(x,y);
00178     }
00179   }

template<typename T1 >
void arma_hot arma_warn ( const bool  state,
const arma_boost::basic_format< T1 > &  x 
) [inline]

Definition at line 187 of file debug.hpp.

References arma_print().

00188     {
00189     if(state==true)
00190       arma_print(x);
00191     }

template<typename T1 , typename T2 >
void arma_hot arma_warn ( const bool  state,
const arma_boost::basic_format< T1, T2 > &  x 
) [inline]

Definition at line 197 of file debug.hpp.

References arma_print().

00198     {
00199     if(state==true)
00200       arma_print(x);
00201     }

template<typename T1 >
void arma_hot arma_check ( const bool  state,
const T1 &  x 
) [inline]
template<typename T1 , typename T2 >
void arma_hot arma_check ( const bool  state,
const T1 &  x,
const T2 &  y 
) [inline]

Definition at line 227 of file debug.hpp.

00228   {
00229   if(state==true)
00230     {
00231     throw std::runtime_error( std::string(x) + std::string(y) );
00232     }
00233   }

template<typename T1 >
void arma_hot arma_check ( const bool  state,
const arma_boost::basic_format< T1 > &  x 
) [inline]

Definition at line 241 of file debug.hpp.

References arma_boost::str().

00242     {
00243     if(state==true)
00244       {
00245       throw std::runtime_error(str(x));
00246       }
00247     }

template<typename T1 , typename T2 >
void arma_hot arma_check ( const bool  state,
const arma_boost::basic_format< T1, T2 > &  x 
) [inline]

Definition at line 253 of file debug.hpp.

References arma_boost::str().

00254     {
00255     if(state==true)
00256       {
00257       throw std::runtime_error(str(x));
00258       }
00259     }

std::string arma_incompat_size_string ( const u32  A_n_rows,
const u32  A_n_cols,
const u32  B_n_rows,
const u32  B_n_cols,
const char *  x 
) [inline]

Definition at line 271 of file debug.hpp.

Referenced by arma_assert_mul_size(), and arma_assert_same_size().

00272   {
00273   std::stringstream tmp;
00274   
00275   tmp << x << ": incompatible matrix dimensions: (" << A_n_rows << ',' << A_n_cols << ") and (" << B_n_rows << ',' << B_n_cols << ')';
00276   
00277   return tmp.str();
00278   }

void arma_hot arma_assert_same_size ( const u32  A_n_rows,
const u32  A_n_cols,
const u32  B_n_rows,
const u32  B_n_cols,
const char *  x 
) [inline]

Definition at line 285 of file debug.hpp.

References arma_incompat_size_string().

Referenced by Cube< eT >::Cube(), and Mat< eT >::Mat().

00286   {
00287   if( (A_n_rows != B_n_rows) || (A_n_cols != B_n_cols) )
00288     {
00289     throw std::runtime_error
00290       (
00291       arma_incompat_size_string(A_n_rows, A_n_cols, B_n_rows, B_n_cols, x)
00292       );
00293     }
00294   }

template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size ( const Mat< eT1 > &  A,
const Mat< eT2 > &  B,
const char *  x 
) [inline]

if given matrices have different sizes, throw a run-time error exception

Definition at line 303 of file debug.hpp.

References arma_incompat_size_string(), Mat< eT >::n_cols, and Mat< eT >::n_rows.

00304   {
00305   if( (A.n_rows != B.n_rows) || (A.n_cols != B.n_cols) )
00306     {
00307     throw std::runtime_error
00308       (
00309       arma_incompat_size_string(A.n_rows, A.n_cols, B.n_rows, B.n_cols, x)
00310       );
00311     }
00312   }

template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size ( const Mat< eT1 > &  A,
const subview< eT2 > &  B,
const char *  x 
) [inline]

Definition at line 320 of file debug.hpp.

References arma_incompat_size_string(), subview< eT >::n_cols, Mat< eT >::n_cols, subview< eT >::n_rows, and Mat< eT >::n_rows.

00321   {
00322   if( (A.n_rows != B.n_rows) || (A.n_cols != B.n_cols) )
00323     {
00324     throw std::runtime_error
00325       (
00326       arma_incompat_size_string(A.n_rows, A.n_cols, B.n_rows, B.n_cols, x)
00327       );
00328     }
00329   }

template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size ( const subview< eT1 > &  A,
const Mat< eT2 > &  B,
const char *  x 
) [inline]

Definition at line 337 of file debug.hpp.

References arma_incompat_size_string(), Mat< eT >::n_cols, subview< eT >::n_cols, Mat< eT >::n_rows, and subview< eT >::n_rows.

00338   {
00339   if( (A.n_rows != B.n_rows) || (A.n_cols != B.n_cols) )
00340     {
00341     throw std::runtime_error
00342       (
00343       arma_incompat_size_string(A.n_rows, A.n_cols, B.n_rows, B.n_cols, x)
00344       );
00345     }
00346   }

template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size ( const subview< eT1 > &  A,
const subview< eT2 > &  B,
const char *  x 
) [inline]

Definition at line 354 of file debug.hpp.

References arma_incompat_size_string(), subview< eT >::n_cols, and subview< eT >::n_rows.

00355   {
00356   if( (A.n_rows != B.n_rows) || (A.n_cols != B.n_cols) )
00357     {
00358     throw std::runtime_error
00359       (
00360       arma_incompat_size_string(A.n_rows, A.n_cols, B.n_rows, B.n_cols, x)
00361       );
00362     }
00363   }

std::string arma_incompat_size_string ( const u32  A_n_rows,
const u32  A_n_cols,
const u32  A_n_slices,
const u32  B_n_rows,
const u32  B_n_cols,
const u32  B_n_slices,
const char *  x 
) [inline]

Definition at line 374 of file debug.hpp.

00375   {
00376   std::stringstream tmp;
00377   
00378   tmp << x << ": incompatible cube dimensions: (" << A_n_rows << ',' << A_n_cols << ',' << A_n_slices << ") and (" << B_n_rows << ',' << B_n_cols << ',' << B_n_slices << ')';
00379   
00380   return tmp.str();
00381   }

void arma_hot arma_assert_same_size ( const u32  A_n_rows,
const u32  A_n_cols,
const u32  A_n_slices,
const u32  B_n_rows,
const u32  B_n_cols,
const u32  B_n_slices,
const char *  x 
) [inline]

Definition at line 388 of file debug.hpp.

References arma_incompat_size_string().

00389   {
00390   if( (A_n_rows != B_n_rows) || (A_n_cols != B_n_cols) || (A_n_slices != B_n_slices) )
00391     {
00392     throw std::runtime_error
00393       (
00394       arma_incompat_size_string(A_n_rows, A_n_cols, A_n_slices, B_n_rows, B_n_cols, B_n_slices, x)
00395       );
00396     }
00397   }

template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size ( const Cube< eT1 > &  A,
const Cube< eT2 > &  B,
const char *  x 
) [inline]

if given cubes have different sizes, throw a run-time error exception

Definition at line 406 of file debug.hpp.

References arma_incompat_size_string(), Cube< eT >::n_cols, Cube< eT >::n_rows, and Cube< eT >::n_slices.

00407   {
00408   if( (A.n_rows != B.n_rows) || (A.n_cols != B.n_cols) || (A.n_slices != B.n_slices) )
00409     {
00410     throw std::runtime_error
00411       (
00412       arma_incompat_size_string(A.n_rows, A.n_cols, A.n_slices, B.n_rows, B.n_cols, B.n_slices, x)
00413       );
00414     }
00415   }

template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size ( const Cube< eT1 > &  A,
const subview_cube< eT2 > &  B,
const char *  x 
) [inline]

Definition at line 423 of file debug.hpp.

References arma_incompat_size_string(), subview_cube< eT >::n_cols, Cube< eT >::n_cols, subview_cube< eT >::n_rows, Cube< eT >::n_rows, subview_cube< eT >::n_slices, and Cube< eT >::n_slices.

00424   {
00425   if( (A.n_rows != B.n_rows) || (A.n_cols != B.n_cols) || (A.n_slices != B.n_slices) )
00426     {
00427     throw std::runtime_error
00428       (
00429       arma_incompat_size_string(A.n_rows, A.n_cols, A.n_slices, B.n_rows, B.n_cols, B.n_slices, x)
00430       );
00431     }
00432   }

template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size ( const subview_cube< eT1 > &  A,
const Cube< eT2 > &  B,
const char *  x 
) [inline]

Definition at line 440 of file debug.hpp.

References arma_incompat_size_string(), Cube< eT >::n_cols, subview_cube< eT >::n_cols, Cube< eT >::n_rows, subview_cube< eT >::n_rows, Cube< eT >::n_slices, and subview_cube< eT >::n_slices.

00441   {
00442   if( (A.n_rows != B.n_rows) || (A.n_cols != B.n_cols) || (A.n_slices != B.n_slices) )
00443     {
00444     throw std::runtime_error
00445       (
00446       arma_incompat_size_string(A.n_rows, A.n_cols, A.n_slices, B.n_rows, B.n_cols, B.n_slices, x)
00447       );
00448     }
00449   }

template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size ( const subview_cube< eT1 > &  A,
const subview_cube< eT2 > &  B,
const char *  x 
) [inline]

Definition at line 457 of file debug.hpp.

References arma_incompat_size_string(), subview_cube< eT >::n_cols, subview_cube< eT >::n_rows, and subview_cube< eT >::n_slices.

00458   {
00459   if( (A.n_rows != B.n_rows) || (A.n_cols != B.n_cols) || (A.n_slices != B.n_slices))
00460     {
00461     throw std::runtime_error
00462       (
00463       arma_incompat_size_string(A.n_rows, A.n_cols, A.n_slices, B.n_rows, B.n_cols, B.n_slices, x)
00464       );
00465     }
00466   }

template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size ( const Cube< eT1 > &  A,
const Mat< eT2 > &  B,
const char *  x 
) [inline]

Definition at line 479 of file debug.hpp.

References arma_incompat_size_string(), Mat< eT >::n_cols, Cube< eT >::n_cols, Mat< eT >::n_rows, Cube< eT >::n_rows, and Cube< eT >::n_slices.

00480   {
00481   if( (A.n_rows != B.n_rows) || (A.n_cols != B.n_cols) || (A.n_slices != 1) )
00482     {
00483     throw std::runtime_error
00484       (
00485       arma_incompat_size_string(A.n_rows, A.n_cols, A.n_slices, B.n_rows, B.n_cols, 1, x)
00486       );
00487     }
00488   }

template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size ( const Mat< eT1 > &  A,
const Cube< eT2 > &  B,
const char *  x 
) [inline]

Definition at line 496 of file debug.hpp.

References arma_incompat_size_string(), Cube< eT >::n_cols, Mat< eT >::n_cols, Cube< eT >::n_rows, Mat< eT >::n_rows, and Cube< eT >::n_slices.

00497   {
00498   if( (A.n_rows != B.n_rows) || (A.n_cols != B.n_cols) || (1 != B.n_slices) )
00499     {
00500     throw std::runtime_error
00501       (
00502       arma_incompat_size_string(A.n_rows, A.n_cols, 1, B.n_rows, B.n_cols, B.n_slices, x)
00503       );
00504     }
00505   }

template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size ( const subview_cube< eT1 > &  A,
const Mat< eT2 > &  B,
const char *  x 
) [inline]

Definition at line 513 of file debug.hpp.

References arma_incompat_size_string(), Mat< eT >::n_cols, subview_cube< eT >::n_cols, Mat< eT >::n_rows, subview_cube< eT >::n_rows, and subview_cube< eT >::n_slices.

00514   {
00515   if( (A.n_rows != B.n_rows) || (A.n_cols != B.n_cols) || (A.n_slices != 1) )
00516     {
00517     throw std::runtime_error
00518       (
00519       arma_incompat_size_string(A.n_rows, A.n_cols, A.n_slices, B.n_rows, B.n_cols, 1, x)
00520       );
00521     }
00522   }

template<typename eT1 , typename eT2 >
void arma_hot arma_assert_same_size ( const Mat< eT1 > &  A,
const subview_cube< eT2 > &  B,
const char *  x 
) [inline]

Definition at line 530 of file debug.hpp.

References arma_incompat_size_string(), subview_cube< eT >::n_cols, Mat< eT >::n_cols, subview_cube< eT >::n_rows, Mat< eT >::n_rows, and subview_cube< eT >::n_slices.

00531   {
00532   if( (A.n_rows != B.n_rows) || (A.n_cols != B.n_cols) || (1 != B.n_slices) )
00533     {
00534     throw std::runtime_error
00535       (
00536       arma_incompat_size_string(A.n_rows, A.n_cols, 1, B.n_rows, B.n_cols, B.n_slices, x)
00537       );
00538     }
00539   }

void arma_hot arma_assert_mul_size ( const u32  A_n_rows,
const u32  A_n_cols,
const u32  B_n_rows,
const u32  B_n_cols,
const char *  x 
) [inline]

Definition at line 551 of file debug.hpp.

References arma_incompat_size_string().

00552   {
00553   if(A_n_cols != B_n_rows)
00554     {
00555     throw std::runtime_error
00556       (
00557       arma_incompat_size_string(A_n_rows, A_n_cols, B_n_rows, B_n_cols, x)
00558       );
00559     }
00560   }

template<typename eT1 , typename eT2 >
void arma_hot arma_assert_mul_size ( const Mat< eT1 > &  A,
const Mat< eT2 > &  B,
const char *  x 
) [inline]

if given matrices are incompatible for multiplication, throw a run-time error exception

Definition at line 569 of file debug.hpp.

References arma_incompat_size_string(), Mat< eT >::n_cols, and Mat< eT >::n_rows.

00570   {
00571   if(A.n_cols != B.n_rows)
00572     {
00573     throw std::runtime_error
00574       (
00575       arma_incompat_size_string(A.n_rows, A.n_cols, B.n_rows, B.n_cols, x)
00576       );
00577     }
00578   }

template<typename eT1 , typename eT2 >
void arma_hot arma_assert_mul_size ( const Mat< eT1 > &  A,
const subview< eT2 > &  B,
const char *  x 
) [inline]

Definition at line 586 of file debug.hpp.

References arma_incompat_size_string(), subview< eT >::n_cols, Mat< eT >::n_cols, Mat< eT >::n_rows, and subview< eT >::n_rows.

00587   {
00588   if(A.n_cols != B.n_rows)
00589     {
00590     throw std::runtime_error
00591       (
00592       arma_incompat_size_string(A.n_rows, A.n_cols, B.n_rows, B.n_cols, x)
00593       );
00594     }
00595   }

template<typename eT1 , typename eT2 >
void arma_hot arma_assert_mul_size ( const subview< eT1 > &  A,
const Mat< eT2 > &  B,
const char *  x 
) [inline]

Definition at line 603 of file debug.hpp.

References arma_incompat_size_string(), Mat< eT >::n_cols, subview< eT >::n_cols, subview< eT >::n_rows, and Mat< eT >::n_rows.

00604   {
00605   if(A.n_cols != B.n_rows)
00606     {
00607     throw std::runtime_error
00608       (
00609       arma_incompat_size_string(A.n_rows, A.n_cols, B.n_rows, B.n_cols, x)
00610       );
00611     }
00612   }

template<typename eT1 , typename eT2 >
void arma_hot arma_assert_mul_size ( const subview< eT1 > &  A,
const subview< eT2 > &  B,
const char *  x 
) [inline]

Definition at line 620 of file debug.hpp.

References arma_incompat_size_string(), subview< eT >::n_cols, and subview< eT >::n_rows.

00621   {
00622   if(A.n_cols != B.n_rows)
00623     {
00624     throw std::runtime_error
00625       (
00626       arma_incompat_size_string(A.n_rows, A.n_cols, B.n_rows, B.n_cols, x)
00627       );
00628     }
00629   }

template<typename T1 >
void arma_stop ( const T1 &  x  )  [inline]