etaler / Etaler

A flexable HTM (Hierarchical Temporal Memory) framework with full GPU support.
BSD 3-Clause "New" or "Revised" License
89 stars 14 forks source link

add support to print objects via cling commadline #36

Closed marty1885 closed 5 years ago

marty1885 commented 5 years ago

Implements #35 Now Tensor and Shape will print useful information in cling/ROOT's prompt.

Ex:

root [0] #pragma cling load("/usr/local/lib/libEtaler.so")
root [1] #include <Etaler/Etaler.hpp>
root [2] using namespace et;
root [3] t = ones({4,4})
(et::Tensor &) {{ 1, 1, 1, 1}, 
 { 1, 1, 1, 1}, 
 { 1, 1, 1, 1}, 
 { 1, 1, 1, 1}}
root [4] t.shape()
(et::Shape) {4, 4}
root [5]