public class DenseVectorSub extends AbstractVector
Vector.Norm
size
Constructor and Description |
---|
DenseVectorSub(DenseVector wrapped,
int offset,
int size) |
Modifier and Type | Method and Description |
---|---|
DenseVector |
copy()
Creates a deep copy of the vector
|
double |
get(int index)
Returns
x(index) |
void |
set(int index,
double value)
x(index) = value |
add, add, add, check, checkSize, dot, iterator, norm, norm1, norm2_robust, norm2, normInf, scale, set, set, size, toString, zero
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public DenseVectorSub(DenseVector wrapped, int offset, int size)
public double get(int index)
Vector
x(index)
get
in interface Vector
get
in class AbstractVector
public void set(int index, double value)
Vector
x(index) = value
set
in interface Vector
set
in class AbstractVector
public DenseVector copy()
Vector
copy
in interface Vector
copy
in class AbstractVector
Copyright © 2015. All Rights Reserved.