tensor v2.0.0 Tensor.Vector
Link to this section Summary
Functions
Elementwise addition of vectors vector_a
and vector_b
Elementwise division of vector_a
and vector_b
.
Make sure that the identity of vector_b
isn’t 0 before doing this
Returns the element at index
from vector
Returns the element at index
from vector
. If index
is out of bounds, returns default
Returns the current identity of vector vector
Elementwise multiplication of vector_a
with vector_b
Elementwise subtraction of vector_b
from vector_a
true
if a
is a Vector
Link to this section Functions
See Tensor.Tensor.add/2
.
Elementwise addition of vectors vector_a
and vector_b
.
See Tensor.Tensor.div/2
.
Elementwise division of vector_a
and vector_b
.
Make sure that the identity of vector_b
isn’t 0 before doing this.
Returns the element at index
from vector
.
Returns the element at index
from vector
. If index
is out of bounds, returns default
.
Returns the current identity of vector vector
.
See Tensor.Tensor.lift/1
.
See Tensor.Tensor.map/2
.
See Tensor.Tensor.mult/2
.
Elementwise multiplication of vector_a
with vector_b
.
See Tensor.Tensor.pop/3
.
See Tensor.Tensor.sub/2
.
Elementwise subtraction of vector_b
from vector_a
.
true
if a
is a Vector.