Tensor

A semi-symbolic representation of a tensor. Allows for lazy processing of tensor operations.

 

__init__(self, a, shape=None): 

 

from_array(a, shape=None): 

 

@property
array(self): 

 

get_shape(self, a): 

 

@property
shape(self): 

 

get_dim(self): 

 

@property
dim(self): 

 

add(self, other, **kw): 

 

mul(self, other, **kw): 

 

dot(self, other, **kw): 

 

transpose(self, axes, **kw): 

 

pow(self, other, **kw): 

 

__mul__(self, other): 

 

__rmul__(self, other): 

 

__add__(self, other): 

 

__pow__(self, power, modulo=None): 

 

handle_missing_indices(self, missing, extant): 

 

pull_index(self, *idx): 

Defines custom logic for handling how we pull indices

  • idx: Any
  • :returns: _

 

__getitem__(self, item): 

 

__repr__(self): 

Feedback

Examples

Templates

Documentation