Skip to content

Development Plans

Daniel M. Dunlavy edited this page Jun 29, 2022 · 10 revisions

pyttb Development Plans

Tensor

Status Matlab pyttb name pyttb type Description Notes
Done and logical_and method Logical AND (&) for tensors
Partial collapse collapse method Collapse tensor along specified dimensions blocked on dependency
Done contract contract method Contract tensor along two dimensions (array trace)
Done disp __str__ method Command window display of a tensor
Done display __repr__ method Command window display of a tensor
Done double double method Convert tensor to double array
Done end end method Last index of indexing expression for tensor
Done eq __eq__ method Equal (==) for tensors
Done exp exp method Exponential for tensors
Done find find method Find subscripts of nonzero elements in a tensor
Done full full method Convert to a (dense) tensor
Done ge __ge__ method Greater than or equal (>=) for tensors
Done gt __gt__ method Greater than (>) for tensors
Done innerprod innerprod method Efficient inner product with a tensor
Done isequal isequal method Verify equality for tensors
Removed isscalar N/A N/A False for tensors N/A
Done issymmetric issymmetric method Verify that a tensor X is symmetric in specified modes
Done ldivide __truediv__ method Left array divide for tensor
Done le __le__ method Less than or equal (<=) for tensor
Done lt __lt__ method Less than (<) for tensor
Done mask mask method Extract values as specified by a mask tensor
Done minus __sub__ method Binary subtraction (-) for tensors
Done mldivide __truediv__ method Slash left division for tensors
Done mrdivide __rtruediv__ method Slash right division for tensors
Done mtimes __rmul__ method tensor-scalar multiplication
Done mttkrp mttkrp method Matricized tensor times Khatri-Rao product for tensor
Done ndims ndims property Return the number of dimensions of a tensor
Done ne __ne__ method Not equal (~=) for tensors
Done nnz nnz property Number of nonzeros for tensors
Done norm norm method Frobenius norm of a tensor
Done not logical_not method Logical NOT (~) for tensors
Done nvecs nvecs method Compute the leading mode-n vectors for a tensor.
Done or logical_or method Logical OR ( ) for tensors
Done permute permute method Permute tensor dimensions
Done plus __add__ method Binary addition (+) for tensors
Done power __pow__ method Elementwise power (.^) operator for a tensor
Done rdivide __rtruediv__ method Right array divide for tensors
Done reshape reshape method Change tensor size
scale scale method Scale along specified dimensions of tensor
Done size shape property Tensor dimensions. [shape, property] Following numpy naming convention
Done squeeze squeeze method Remove singleton dimensions from a tensor
Done subsasgn __setitem__ method Subscripted assignment for a tensor
Done subsref __getitem__ method Subscripted reference for tensors
Done symmetrize symmetrize method Symmetrize a tensor X in specified modes
Done tenfun tt_tenfun method Apply a function to each element in a tensor in pyttb_utils
Done tensor
  1. from_data
  2. from_tensor_type
  3. from_function
method
  1. Create from: np.array and shape
  2. Create from other pyttb tensor type: tensor, ktensor, ttensor, sptensor, sumtensor, symtensor, symktensor, tenmat
  3. Create from: function handle and shape
Done times __mul__ method Array multiplication for tensors
Removed transpose N/A N/A not defined on tensors removed
ttm ttm method Tensor times matrix
Done ttsv ttsv method Tensor times same vector in multiple modes
ttt ttt method Tensor multiplication (tensor times tensor) blocked by dependecy
Done ttv ttv method Tensor times vector
Done uminus __neg__ method Unary minus (-) for tensors
Done uplus __pos__ method Unary plus (+) for tensors
Done xor logical_xor method Logical EXCLUSIVE OR for tensors
Clone this wiki locally