org.ojalgo.array

Class Primitive64Array

• Field Detail

• data

public final double[] data
• Constructor Detail

• Primitive64Array

protected Primitive64Array(double[] data)
Array not copied! No checking!
• Primitive64Array

protected Primitive64Array(int size)
• Method Detail

• exchange

protected static void exchange(double[] data,
int firstA,
int firstB,
int step,
int count)
• fill

protected static void fill(double[] data,
Access1D<?> values)
• fill

protected static void fill(double[] data,
int first,
int limit,
int step,
double value)
• fill

protected static void fill(double[] data,
int first,
int limit,
int step,
NullaryFunction<Double> supplier)
• invoke

protected static void invoke(double[] data,
int first,
int limit,
int step,
Access1D<Double> left,
BinaryFunction<Double> function,
double right)
• invoke

protected static void invoke(double[] data,
int first,
int limit,
int step,
double left,
BinaryFunction<Double> function,
Access1D<Double> right)
• invoke

protected static void invoke(double[] data,
int first,
int limit,
int step,
VoidFunction<Double> aVisitor)
• axpy

public void axpy(double a,
Mutate1D y)
Description copied from interface: Access1D
Will calculate y = y + a x, will add "a" times "this" to "y"
Parameters:
a - The scale
y - The "vector" to update
• dot

public double dot(Access1D<?> vector)
Description copied from interface: Access1D
Will calculate and return the dot product of this 1D-structure and another input 1D-vector.
Parameters:
vector - Another 1D-structure
Returns:
The dot product
• equals

public boolean equals(Object anObj)
Overrides:
equals in class Object
• fillMatching

public void fillMatching(Access1D<?> values)
Description copied from interface: Mutate1D.Fillable

Will fill the elements of [this] with the corresponding input values, and in the process (if necessary) convert the elements to the correct type:

this(i) = values(i)
• hashCode

public int hashCode()
Overrides:
hashCode in class Object
• size

public int size()
• stream

public DoubleStream stream(boolean parallel)

• copyOfData

protected final double[] copyOfData()
• doubleValue

protected final double doubleValue(int index)
• exchange

protected final void exchange(int firstA,
int firstB,
int step,
int count)
• fill

protected final void fill(int first,
int limit,
int step,
Double value)
• fill

protected final void fill(int first,
int limit,
int step,
NullaryFunction<Double> supplier)
• fillOne

protected void fillOne(int index,
Access1D<?> values,
long valueIndex)
• fillOne

protected void fillOne(int index,
Double value)
• get

protected final Double get(int index)
• indexOfLargest

protected final int indexOfLargest(int first,
int limit,
int step)
• isAbsolute

protected boolean isAbsolute(int index)
Scalar.isAbsolute()
• modify

protected final void modify(int first,
int limit,
int step,
BinaryFunction<Double> function,
Double right)
• modify

protected final void modify(int first,
int limit,
int step,
Double left,
BinaryFunction<Double> function)
• modify

protected final void modify(int first,
int limit,
int step,
ParameterFunction<Double> function,
int parameter)
• modify

protected final void modify(int first,
int limit,
int step,
UnaryFunction<Double> function)
• modifyOne

protected final void modifyOne(int index,
UnaryFunction<Double> modifier)
• searchAscending

protected final int searchAscending(Double number)
• set

protected final void set(int index,
double value)
• set

protected final void set(int index,
Number value)
• visit

protected final void visit(int first,
int limit,
int step,
VoidFunction<Double> visitor)

Specified by:

Specified by:
• count

public final long count()
Specified by:
count in interface Structure1D
Returns:
The total number of elements in this structure.
• doubleValue

public final double doubleValue(long index)
Specified by:
doubleValue in interface Access1D<N extends Number>
• fillRange

public final void fillRange(long first,
long limit,
N number)
Specified by:
fillRange in interface Mutate1D.Fillable<N extends Number>
• get

public final N get(long index)
Specified by:
get in interface Access1D<N extends Number>
• set

public final void set(long index,
double value)
Specified by:
set in interface Mutate1D
• set

public final void set(long index,
Number number)
Specified by:
set in interface Mutate1D
• exchange

protected final void exchange(long firstA,
long firstB,
long step,
long count)
Specified by:
exchange in class BasicArray<N extends Number>
• fill

protected final void fill(long first,
long limit,
long step,
N value)
Specified by:
fill in class BasicArray<N extends Number>
• indexOfLargest

protected final long indexOfLargest(long first,
long limit,
long step)
Overrides:
indexOfLargest in class BasicArray<N extends Number>
• isSmall

protected final boolean isSmall(long first,
long limit,
long step,
double comparedTo)
Specified by:
isSmall in class BasicArray<N extends Number>
• modify

protected final void modify(long first,
long limit,
long step,
UnaryFunction<N> function)
Specified by:
modify in class BasicArray<N extends Number>
• visit

protected final void visit(long first,
long limit,
long step,
VoidFunction<N> visitor)
Specified by:
visit in class BasicArray<N extends Number>