V
- the type of the elements of the tensor to buildpublic abstract class AbstractTensorBuilder<V> extends java.lang.Object implements TensorBuilder<V>
Constructor and Description |
---|
AbstractTensorBuilder(java.util.Set<java.lang.Class<?>> dimensions) |
AbstractTensorBuilder(java.util.Set<java.lang.Class<?>> dimensions,
VerificationCallback<V> callback) |
Modifier and Type | Method and Description |
---|---|
Position |
context() |
TensorBuilder<V> |
context(Position newContext) |
java.util.Set<java.lang.Class<?>> |
dimensions() |
TensorBuilder<V> |
put(java.util.Map.Entry<Position,V> entry) |
TensorBuilder<V> |
put(Position position,
V value) |
TensorBuilder<V> |
putAll(java.util.Map<Position,V> newEntries) |
TensorBuilder<V> |
putAll(Position position,
java.util.Map<Position,V> map) |
TensorBuilder<V> |
putAll(Position position,
Tensor<V> tensor) |
TensorBuilder<V> |
putAll(Tensor<V> tensor)
Puts all the values of the given tensor into the new tensor, at the given position.
|
protected abstract void |
putIt(Position position,
V value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build, remove
public AbstractTensorBuilder(java.util.Set<java.lang.Class<?>> dimensions, VerificationCallback<V> callback)
public AbstractTensorBuilder(java.util.Set<java.lang.Class<?>> dimensions)
public final TensorBuilder<V> put(Position position, V value)
put
in interface TensorBuilder<V>
public TensorBuilder<V> context(Position newContext)
context
in interface TensorBuilder<V>
public TensorBuilder<V> putAll(Tensor<V> tensor)
TensorBuilder
putAll
in interface TensorBuilder<V>
tensor
- the tensor, whose values to add to the tensor under constructionpublic final TensorBuilder<V> putAll(Position position, Tensor<V> tensor)
putAll
in interface TensorBuilder<V>
public TensorBuilder<V> putAll(java.util.Map<Position,V> newEntries)
putAll
in interface TensorBuilder<V>
public TensorBuilder<V> putAll(Position position, java.util.Map<Position,V> map)
putAll
in interface TensorBuilder<V>
public TensorBuilder<V> put(java.util.Map.Entry<Position,V> entry)
put
in interface TensorBuilder<V>
public java.util.Set<java.lang.Class<?>> dimensions()
public Position context()