This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Add custom info to tensor

Tags: tensor, custom tensor, custom tensor, custom
(comma "," separated)
zhanghao
Registered Member
Posts
1
Karma
0

Add custom info to tensor

Wed Jan 23, 2019 9:48 am
Hello,

I want to add some custom data into tensor,

And I will use this in some function I write,

For now, I want it keep unchanged when I copy a tensor, what should I do?

currently, I add `Eigen::array<Leg, DerivedTraits::NumDimensions> leg_info;` in `class TensorBase`,

add many `this->leg_info = other.leg_info` in different places, It seems it is not a good way,

so, what is the proper way to achieve this goal?

the detail is in https://paste.ubuntu.com/p/zKZX9Bxn6d/


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell