Skip to content

Determine if end() is necessary in pyttb classes #161

@dmdunla

Description

@dmdunla

Do we the end() methods in pyttb classes?

The end() method is TTB for MATLAB is used to identify the index of the last element of a tensor using linear indexing or the last index along a dimension when using subscript indexing.

numpy , which is used for most data objects in pyttb classes, supports negative indexing but in a different way than what end() does.

Should we implement end() methods that wrap numpy negative indexing (e.g., X[-1,-1,-1] for subscript indexing or X.flat[-1] for linear indexing? Or remove the end() methods?

Metadata

Metadata

Assignees

Labels

doingActively being worked onquestionFurther information is requested

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions