MCPcopy Create free account
hub / github.com/ai-techsystems/deepC / testEigenMatrix

Method testEigenMatrix

src/operators/baseOperator.cpp:33–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31public:
32 fakeOperatorTest() : baseOperator<T>(opAbs) {}
33 void testEigenMatrix(tensor<T> &t) {
34 if (t.rank() == 1) {
35 DNNC_EIGEN_VECTOR(eigenVector, t);
36 std::cout << eigenVector << "\n";
37 } else if (t.rank() == 2) {
38 DNNC_EIGEN_MATRIX(eigenMatrix, t);
39 std::cout << eigenMatrix << "\n";
40 } else if (t.rank() == 3) {
41 DNNC_EIGEN_TENSOR(eigenTensor, t);
42 // std::cout << eigenTensor << "\n";
43 } else if (t.rank() == 4) {
44 DNNC_EIGEN_TENSOR4D(eigenTensor4D, t);
45 // std::cout << eigenTensor4D << "\n";
46 }
47
48 return;
49 }
50};
51} // namespace dnnc
52

Callers 1

mainFunction · 0.80

Calls 1

rankMethod · 0.45

Tested by

no test coverage detected