TensorVector
TensorVector
TensorVector Objects
class TensorVector()
__bool__
def __bool__()
bool(self: ocean.ocean.TensorVector) -> bool
Check whether the list is nonempty
__delitem__
def __delitem__(*args, **kwargs)
delitem(*args, **kwargs) Overloaded function.
- delitem(self: ocean.ocean.TensorVector, arg0: int) -> None
Delete the list elements at index i
- delitem(self: ocean.ocean.TensorVector, arg0: slice) -> None
Delete list elements using a slice object
__getitem__
def __getitem__(*args, **kwargs)
getitem(*args, **kwargs) Overloaded function.
- getitem(self: ocean.ocean.TensorVector, s: slice) -> ocean.ocean.TensorVector
Retrieve list elements using a slice object
- getitem(self: ocean.ocean.TensorVector, arg0: int) -> ocean.ocean.Tensor
__init__
def __init__(*args, **kwargs)
init(*args, **kwargs) Overloaded function.
init(self: ocean.ocean.TensorVector) -> None
init(self: ocean.ocean.TensorVector, arg0: ocean.ocean.TensorVector) -> None
Copy constructor
- init(self: ocean.ocean.TensorVector, arg0: Iterable) -> None
__iter__
def __iter__()
iter(self: ocean.ocean.TensorVector) -> Iterator
__len__
def __len__()
len(self: ocean.ocean.TensorVector) -> int
__repr__
def __repr__()
repr(self: ocean.ocean.TensorVector) -> str
Return the canonical string representation of this list.
__setitem__
def __setitem__(*args, **kwargs)
setitem(*args, **kwargs) Overloaded function.
setitem(self: ocean.ocean.TensorVector, arg0: int, arg1: ocean.ocean.Tensor) -> None
setitem(self: ocean.ocean.TensorVector, arg0: slice, arg1: ocean.ocean.TensorVector) -> None
Assign list elements using a slice object
append
def append(x)
append(self: ocean.ocean.TensorVector, x: ocean.ocean.Tensor) -> None
Add an item to the end of the list
clear
def clear()
clear(self: ocean.ocean.TensorVector) -> None
Clear the contents
extend
def extend(*args, **kwargs)
extend(*args, **kwargs) Overloaded function.
- extend(self: ocean.ocean.TensorVector, L: ocean.ocean.TensorVector) -> None
Extend the list by appending all the items in the given list
- extend(self: ocean.ocean.TensorVector, L: Iterable) -> None
Extend the list by appending all the items in the given list
insert
def insert(i, x)
insert(self: ocean.ocean.TensorVector, i: int, x: ocean.ocean.Tensor) -> None
Insert an item at a given position.
pop
def pop(*args, **kwargs)
pop(*args, **kwargs) Overloaded function.
- pop(self: ocean.ocean.TensorVector) -> ocean.ocean.Tensor
Remove and return the last item
- pop(self: ocean.ocean.TensorVector, i: int) -> ocean.ocean.Tensor
Remove and return the item at index i