|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.uib.cipr.matrix.AbstractVector
no.uib.cipr.matrix.distributed.DistVector
no.uib.cipr.matrix.distributed
package has been deprecated because
of a number of hard to fix concurrency bugs. It is distributed only for backwards compatibility,
but is not recommended. The utility of this package is questionable, as it does not allow
distribution of computation between JVMs or across a network. For many people, distributed
computing of multiple matrices can be achieved at a user-level through the
JPPF Framework.
Users who need to deal with few very large matrices may wish to implement their own storage classes
and solvers using JPPF, but this will not be supported directly in matrix-toolkits-java.
@Deprecated public class DistVector
Distributed memory vector
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface no.uib.cipr.matrix.Vector |
---|
Vector.Norm |
Field Summary |
---|
Fields inherited from class no.uib.cipr.matrix.AbstractVector |
---|
size |
Constructor Summary | |
---|---|
DistVector(int size,
Communicator comm,
Vector x)
Deprecated. Constructor for DistVector |
Method Summary | |
---|---|
DistVector |
add(double alpha,
Vector y)
Deprecated. x = alpha*y + x |
void |
add(int index,
double value)
Deprecated. x(index) += value |
DistVector |
copy()
Deprecated. Creates a deep copy of the vector |
double |
dot(Vector y)
Deprecated. xT*y |
double |
get(int index)
Deprecated. Returns x(index) |
Communicator |
getCommunicator()
Deprecated. Gets the communicator associated with this vector |
Vector |
getLocal()
Deprecated. Returns the local part of the vector |
int[] |
getOwnerships()
Deprecated. Returns which indices are owned by which ranks. |
java.util.Iterator<VectorEntry> |
iterator()
Deprecated. |
boolean |
local(int index)
Deprecated. Returns true if the insertion index is local to this rank, and no communication is needed afterwards. |
protected double |
norm1()
Deprecated. |
protected double |
norm2_robust()
Deprecated. |
protected double |
norm2()
Deprecated. |
protected double |
normInf()
Deprecated. |
DistVector |
scale(double alpha)
Deprecated. x=alpha*x |
DistVector |
set(double alpha,
Vector y)
Deprecated. x=alpha*y |
void |
set(int index,
double value)
Deprecated. x(index) = value |
DistVector |
zero()
Deprecated. Zeros all the entries in the vector, while preserving any underlying structure |
Methods inherited from class no.uib.cipr.matrix.AbstractVector |
---|
add, check, checkSize, norm, set, size, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DistVector(int size, Communicator comm, Vector x)
size
- Global vector sizecomm
- Communicator to usex
- Local vector, its size cannot exceed the global size, and the
sum of the local vector sizes must equal the global vector
size (this is checked)Method Detail |
---|
public void set(int index, double value)
Vector
x(index) = value
set
in interface Vector
set
in class AbstractVector
public void add(int index, double value)
Vector
x(index) += value
add
in interface Vector
add
in class AbstractVector
public double get(int index)
Vector
x(index)
get
in interface Vector
get
in class AbstractVector
public DistVector copy()
Vector
copy
in interface Vector
copy
in class AbstractVector
public DistVector zero()
Vector
zero
in interface Vector
zero
in class AbstractVector
public DistVector scale(double alpha)
Vector
x=alpha*x
scale
in interface Vector
scale
in class AbstractVector
public DistVector set(double alpha, Vector y)
Vector
x=alpha*y
set
in interface Vector
set
in class AbstractVector
public DistVector add(double alpha, Vector y)
Vector
x = alpha*y + x
add
in interface Vector
add
in class AbstractVector
public double dot(Vector y)
Vector
xT*y
dot
in interface Vector
dot
in class AbstractVector
protected double norm1()
norm1
in class AbstractVector
protected double norm2_robust()
norm2_robust
in class AbstractVector
protected double norm2()
norm2
in class AbstractVector
protected double normInf()
normInf
in class AbstractVector
public Vector getLocal()
public int[] getOwnerships()
n[comm.rank()]
(inclusive) to
n[comm.rank()+1]
(exclusive)
public boolean local(int index)
public java.util.Iterator<VectorEntry> iterator()
iterator
in interface java.lang.Iterable<VectorEntry>
iterator
in class AbstractVector
public Communicator getCommunicator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |