34 #define LINEAR_DOT_CC_VERSION \ 39 #include <aff/shaper.h> 52 "size of input matrices does not match!");
54 "size of input matrices does not match!");
55 TDmatrix C(aff::Shaper(A.f(dim1),A.l(dim1))(B.f(dim2),B.l(dim2)));
56 for (
int i=C.f(dim1); i<= C.l(dim1); ++i)
58 for (
int j=C.f(dim2); j<= C.l(dim2); ++j)
61 for (
int k=A.f(dim2); k<=A.l(dim2); ++k)
63 C(i,j)+=A(i,k)*B(k,j);
Exception class for this library (prototypes)
aff::Array< double > TDmatrix
void checkNxM(const TDmatrix::Tcoc &A)
check expected libaff array shape for NxM matrix.
matrix and vector operators (prototypes)
TDmatrix dotNxM(const TDmatrix::Tcoc &A, const TDmatrix::Tcoc &B)
dot product for NxM matrices.
Modules of liblinearxx.a.
#define LINEAR_assert(C, M)
Check an assertion and report by throwing an exception.