LINEAR++ library: AFF to LAPACK

◆ checkNxM()

void linear::op::checkNxM ( const TDmatrix::Tcoc &  A)

check expected libaff array shape for NxM matrix.

Definition at line 44 of file checknxn.cc.

References LINEAR_assert.

Referenced by dotNxM(), and transposeNxM().

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  }
#define LINEAR_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:176
Here is the caller graph for this function: