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 extends AbstractVector
Vector.Normsize| Constructor and Description |
|---|
DistVector(int size,
Communicator comm,
Vector x)
Deprecated.
Constructor for DistVector
|
| Modifier and Type | Method and Description |
|---|---|
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
|
add, check, checkSize, norm, set, size, toStringpublic 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)public void set(int index,
double value)
Vectorx(index) = valueset in interface Vectorset in class AbstractVectorpublic void add(int index,
double value)
Vectorx(index) += valueadd in interface Vectoradd in class AbstractVectorpublic double get(int index)
Vectorx(index)get in interface Vectorget in class AbstractVectorpublic DistVector copy()
Vectorcopy in interface Vectorcopy in class AbstractVectorpublic DistVector zero()
Vectorzero in interface Vectorzero in class AbstractVectorpublic DistVector scale(double alpha)
Vectorx=alpha*xscale in interface Vectorscale in class AbstractVectorpublic DistVector set(double alpha, Vector y)
Vectorx=alpha*yset in interface Vectorset in class AbstractVectorpublic DistVector add(double alpha, Vector y)
Vectorx = alpha*y + xadd in interface Vectoradd in class AbstractVectorpublic double dot(Vector y)
VectorxT*ydot in interface Vectordot in class AbstractVectorprotected double norm1()
norm1 in class AbstractVectorprotected double norm2_robust()
norm2_robust in class AbstractVectorprotected double norm2()
norm2 in class AbstractVectorprotected double normInf()
normInf in class AbstractVectorpublic 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 AbstractVectorpublic Communicator getCommunicator()