Package org.ojalgo.array
Class DenseArray.Factory<N extends java.lang.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 java.lang.Comparable<N>>
public abstract static class DenseArray.Factory<N extends java.lang.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 Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) long
getCapacityLimit()
(package private) long
getElementSize()
(package private) abstract DenseArray<N>
makeDenseArray(long size)
(package private) DenseArray<N>
makeStructuredZero(long... structure)
Typically sparse, but if very small then dense If very large then also segmented(package private) DenseArray<N>
makeToBeFilled(long... structure)
Always dense, but maybe segmentedDenseArray<N>
newBuilder(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
-
-
-
-
Method Detail
-
newBuilder
public DenseArray<N> newBuilder(long count)
- Specified by:
newBuilder
in interfaceFactory1D.TwoStep<DenseArray<N extends java.lang.Comparable<N>>,DenseArray<N extends java.lang.Comparable<N>>>
-
getCapacityLimit
long getCapacityLimit()
- Specified by:
getCapacityLimit
in classArrayFactory<N extends java.lang.Comparable<N>,DenseArray<N extends java.lang.Comparable<N>>>
-
getElementSize
final long getElementSize()
-
makeDenseArray
abstract DenseArray<N> makeDenseArray(long size)
-
makeStructuredZero
final DenseArray<N> makeStructuredZero(long... structure)
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 java.lang.Comparable<N>,DenseArray<N extends java.lang.Comparable<N>>>
-
makeToBeFilled
final DenseArray<N> makeToBeFilled(long... structure)
Description copied from class:ArrayFactory
Always dense, but maybe segmented- Specified by:
makeToBeFilled
in classArrayFactory<N extends java.lang.Comparable<N>,DenseArray<N extends java.lang.Comparable<N>>>
-
-