Skip to content

Is there a way to pretty print a tensor ? #43

Closed Answered by themetaschemer
sreeramcoder asked this question in Q&A
Discussion options

You must be logged in to vote

I will push a fix for this, but in the meantime, here's a suggested workaround:

(require malt/learner)
(require malt/ports)
(printable-maker make-printable)

This should give you the following:

> (+ (tensor 1 2 3) (tensor 4 5 7))
(tensor 5 7 10)

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@themetaschemer
Comment options

Comment options

You must be logged in to vote
1 reply
@sreeramcoder
Comment options

Answer selected by sreeramcoder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants