#include <string>
#include <memory>
#include <vector>
#include <sstream>
#include <algorithm>
#include <iostream>
#include "Tensor.tpp"
Go to the source code of this file.
#define DBG_PRINT_1D_TENSOR |
( |
|
s, |
|
|
|
v |
|
) |
| |
Value:std::cout << s << std::endl; \
for(unsigned i = 0; i < v.getDims()[0]; ++i){ \
std::cout << v(i); \
if(i < v.getDims()[0] - 1) std::cout << ", "; \
} \
std::cout << std::endl
#define DBG_PRINT_2D_TENSOR |
( |
|
s, |
|
|
|
m |
|
) |
| |
Value:std::cout << s << std::endl; \
for(unsigned r = 0; r < m.getDims()[0]; ++r){ \
for(unsigned c = 0; c < m.getDims()[1]; ++c){ \
std::cout << m(r, c); \
if(c < m.getDims()[1] - 1) std::cout << ", "; \
} \
std::cout << std::endl; \
}
#define MAX_SHOWN_ENTRIES (unsigned)20 |