Replies: 5 comments 13 replies
-
Why is elemfun its own function rather than part of the tensor class? |
Beta Was this translation helpful? Give feedback.
-
Where are the various utilities documented, like tt_ind2sub? |
Beta Was this translation helpful? Give feedback.
-
Is it F order?
The output is:
|
Beta Was this translation helpful? Give feedback.
-
I think globally doing deep copies would only really be an issue around performance (and maybe mental model if people assume they are operating on a reference rather than a copy). Do you have a particular usage that's been confusing? |
Beta Was this translation helpful? Give feedback.
-
Ok. I would suggest that this be listed as one of the MAJOR differences between MATLAB and Python, up at the top. Right now, the general tensor object differences are listed as major differences (https://pyttb.readthedocs.io/en/latest/matlab/common.html#data-members). I think a bit of reorganization would be useful here. For methods that have changed more or less across all classes (like shape), it's reasonable to list them here. Otherwise, recommend putting it into a class-specific difference page. |
Beta Was this translation helpful? Give feedback.
-
What is the use case for shallow copies? I think I understand the shallow versus deep copy reasoning, but I'd still like to ask. FWIW, my impression is that MATLAB doesn't automatically do a deep copy but rather does it if it's actually needed. In any case, can you give me a use case where a deep copy would cause problems? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions