Tensor

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

Properties and Methods

from_array: method

 

__init__(self, 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

    No description…

  • :returns: _

    No description…

 

__getitem__(self, item): 

 

__repr__(self): 

Examples


Edit Examples or Create New Examples
Edit Template or Create New Template
Edit Docstrings