public final class Equation extends Object implements Comparable<Equation>, Access1D<Double>, Mutate1D
Access1D.Aggregatable<N extends Number>, Access1D.Collectable<N extends Number,R extends Mutate1D.Receiver<N>>, Access1D.Elements, Access1D.ElementView<N extends Number>, Access1D.IndexOf, Access1D.Sliceable<N extends Number>, Access1D.Visitable<N extends Number>
Mutate1D.Fillable<N extends Number>, Mutate1D.Mixable<N extends Number>, Mutate1D.Modifiable<N extends Number>, Mutate1D.ModifiableReceiver<N extends Number>, Mutate1D.Receiver<N extends Number>, Mutate1D.Sortable
Structure1D.BasicMapper<T>, Structure1D.IndexCallback, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S extends Structure1D,B extends Structure1D.Logical<S,?>>, Structure1D.LongIndex, Structure1D.LoopCallback
Modifier and Type | Field and Description |
---|---|
int |
index
The row index of the original body matrix, [A].
|
Constructor and Description |
---|
Equation(int row,
long numberOfColumns,
double rhs) |
Equation(int row,
long numberOfColumns,
double rhs,
int numberOfNonzeros) |
Modifier and Type | Method and Description |
---|---|
void |
add(long index,
double addend) |
void |
add(long index,
Number addend) |
double |
adjust(PhysicalStore<Double> x,
double relaxation)
Will perform a (relaxed) GaussSeidel update.
|
int |
compareTo(Equation other) |
long |
count() |
double |
dot(Access1D<?> vector)
Will calculate and return the dot product of this 1D-structure and another input 1D-vector.
|
double |
doubleValue(long index) |
boolean |
equals(Object obj) |
Double |
get(long index) |
double |
getPivot() |
double |
getRHS() |
int |
hashCode() |
void |
initialise(PhysicalStore<Double> x) |
void |
set(long index,
double value) |
void |
set(long index,
Number value) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asCollectable1D, asPrimitive1D, axpy, byteValue, elements, equals, floatValue, hashCode, intValue, longValue, nonzeros, shortValue, supplyTo, toRawCopy1D, toString, wrap, wrap, wrap
copyComplexArgument, copyComplexImaginary, copyComplexModulus, copyComplexModulusAndArgument, copyComplexReal, copyComplexRealAndImaginary, reset
index, loopAll, loopMatching, loopRange, mapper, size
public Equation(int row, long numberOfColumns, double rhs)
public Equation(int row, long numberOfColumns, double rhs, int numberOfNonzeros)
public double adjust(PhysicalStore<Double> x, double relaxation)
x
- The current solution (one element will be updated)relaxation
- Typically 1.0 but could be anything (Most likely should be between 0.0 and 2.0).public int compareTo(Equation other)
compareTo
in interface Comparable<Equation>
public long count()
count
in interface Structure1D
public double dot(Access1D<?> vector)
Access1D
public double doubleValue(long index)
doubleValue
in interface Access1D<Double>
public double getPivot()
index
public double getRHS()
public void initialise(PhysicalStore<Double> x)
Copyright © 2019 Optimatika. All rights reserved.