RideDistributor  0.0.1
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
Classes | Macros
Tensor.hpp File Reference
#include <string>
#include <memory>
#include <vector>
#include <sstream>
#include <algorithm>
#include <iostream>
#include "Tensor.tpp"

Go to the source code of this file.

Classes

class  Tensor< T >
 

Macros

#define DBG_PRINT_2D_TENSOR(s, m)
 
#define DBG_PRINT_1D_TENSOR(s, v)
 
#define MAX_SHOWN_ENTRIES   (unsigned)20
 

Macro Definition Documentation

#define DBG_PRINT_1D_TENSOR (   s,
 
)
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,
 
)
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