LINEAR++ library: AFF to LAPACK
checknxn.cc
Go to the documentation of this file.
1 
34 #define LINEAR_CHECKNXN_CC_VERSION \
35  "LINEAR_CHECKNXN_CC V1.0"
36 
37 #include <linearxx/operators.h>
38 #include <linearxx/error.h>
39 
40 namespace linear {
41 
42  namespace op {
43 
44  void checkNxM(const TDmatrix::Tcoc& A)
45  {
46  const int dim3=2;
47  const int dim4=3;
48  LINEAR_assert(A.first(dim3)==A.last(dim3),
49  "unexpected shape of matrix!");
50  LINEAR_assert(A.first(dim4)==A.last(dim4),
51  "unexpected shape of matrix!");
52  }
53 
54  } // namespace op
55 
56 } // namespace linear
57 
58 /* ----- END OF checknxn.cc ----- */
Exception class for this library (prototypes)
void checkNxM(const TDmatrix::Tcoc &A)
check expected libaff array shape for NxM matrix.
Definition: checknxn.cc:44
matrix and vector operators (prototypes)
Modules of liblinearxx.a.
Definition: error.cc:43
#define LINEAR_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:176