E
-public interface PgxVect<E>
Modifier and Type | Method and Description |
---|---|
PgxVect<E> |
add(PgxVect<E> v)
Add this vector to the given vector (element-wise) and return the resulting vector.
|
static <E> PgxVect<E> |
create()
Instantiate a new vector.
|
static <E> PgxVect<E> |
create(E e)
Instantiate a new vector property and initialize it with the given value.
|
E |
get(int index)
Get the value of the vector at the given index.
|
PgxVect<E> |
multiply(java.lang.Number n)
Multiply this vector by the given scalar and return the resulting vector.
|
E |
multiply(PgxVect<E> v)
Multiply this vector by the (transpose of the) given vector and return the resulting scalar.
|
void |
reduceAdd(PgxVect<E> e)
Atomically add the given vector to this vector (element-wise).
|
E |
set(int index, E value)
Set the value of the vector at the given index to the given value.
|
PgxVect<E> |
subtract(PgxVect<E> v)
Subtract the given vector from this vector (element-wise) and return the resulting vector.
|
PgxVect<E> add(PgxVect<E> v)
v
-static <E> PgxVect<E> create()
E
-static <E> PgxVect<E> create(E e)
E
-E get(int index)
index
-PgxVect<E> multiply(java.lang.Number n)
n
-E multiply(PgxVect<E> v)
v
-void reduceAdd(PgxVect<E> e)
e
-E set(int index, E value)
index
-value
-