Package org.ojalgo.array
Class DenseArray.Factory<N extends Comparable<N>>
java.lang.Object
org.ojalgo.array.ArrayFactory<N,DenseArray<N>>
org.ojalgo.array.DenseArray.Factory<N>
- All Implemented Interfaces:
Factory1D<DenseArray<N>>
,Factory1D.TwoStep<DenseArray<N>,
,DenseArray<N>> FactorySupplement
- Direct Known Subclasses:
BufferArray.Factory
,BufferArray.MappedFileFactory
,OffHeapArray.Factory
- Enclosing class:
DenseArray<N extends Comparable<N>>
public abstract static class DenseArray.Factory<N extends Comparable<N>>
extends ArrayFactory<N,DenseArray<N>>
implements Factory1D.TwoStep<DenseArray<N>,DenseArray<N>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.structure.Factory1D
Factory1D.Builder<I extends Structure1D>, Factory1D.MayBeSparse<I extends Structure1D,
DENSE extends Factory1D.Builder<I>, SPARSE extends Factory1D.Builder<I>>, Factory1D.TwoStep<I extends Structure1D, B extends Factory1D.Builder<I>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) long
(package private) final long
(package private) abstract DenseArray
<N> makeDenseArray
(long size) (package private) final DenseArray
<N> makeStructuredZero
(long... structure) Typically sparse, but if very small then dense If very large then also segmented(package private) final DenseArray
<N> makeToBeFilled
(long... structure) Always dense, but maybe segmentednewBuilder
(long count) Methods inherited from class org.ojalgo.array.ArrayFactory
aggregator, function, make, make, makeSegmented, scalar, wrapAsSegments
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ojalgo.structure.Factory1D.TwoStep
copy, copy, copy, copy, make, make, make, makeFilled
Methods inherited from interface org.ojalgo.structure.FactorySupplement
function, getMathType, scalar
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
newBuilder
- Specified by:
newBuilder
in interfaceFactory1D.TwoStep<DenseArray<N extends Comparable<N>>,
DenseArray<N extends Comparable<N>>>
-
getCapacityLimit
long getCapacityLimit()- Specified by:
getCapacityLimit
in classArrayFactory<N extends Comparable<N>,
DenseArray<N extends Comparable<N>>>
-
getElementSize
final long getElementSize() -
makeDenseArray
-
makeStructuredZero
Description copied from class:ArrayFactory
Typically sparse, but if very small then dense If very large then also segmented- Specified by:
makeStructuredZero
in classArrayFactory<N extends Comparable<N>,
DenseArray<N extends Comparable<N>>>
-
makeToBeFilled
Description copied from class:ArrayFactory
Always dense, but maybe segmented- Specified by:
makeToBeFilled
in classArrayFactory<N extends Comparable<N>,
DenseArray<N extends Comparable<N>>>
-