Package org.ojalgo.array
Class BufferArray.MappedFileFactory
- java.lang.Object
-
- org.ojalgo.array.ArrayFactory<N,DenseArray<N>>
-
- org.ojalgo.array.DenseArray.Factory<java.lang.Double>
-
- org.ojalgo.array.BufferArray.MappedFileFactory
-
- All Implemented Interfaces:
Factory1D<DenseArray<java.lang.Double>>
,Factory1D.TwoStep<DenseArray<java.lang.Double>,DenseArray<java.lang.Double>>
,FactorySupplement
- Enclosing class:
- BufferArray
public static final class BufferArray.MappedFileFactory extends DenseArray.Factory<java.lang.Double>
-
-
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>>
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
myFile
private BufferArray.Factory
myTypeFactory
-
Constructor Summary
Constructors Constructor Description MappedFileFactory(BufferArray.Factory typeFactory, java.io.File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) AggregatorSet<java.lang.Double>
aggregator()
BufferArray
copy(double... source)
BufferArray
copy(java.lang.Comparable<?>... source)
BufferArray
copy(java.util.List<? extends java.lang.Comparable<?>> source)
BufferArray
copy(Access1D<?> source)
FunctionSet<java.lang.Double>
function()
MathType
getMathType()
BufferArray
make(int size)
BufferArray
make(long count)
BufferArray
make(Structure1D shape)
(package private) BufferArray
makeDenseArray(long size)
BufferArray
makeFilled(long count, NullaryFunction<?> supplier)
(package private) SegmentedArray<java.lang.Double>
makeSegmented(long... structure)
Scalar.Factory<java.lang.Double>
scalar()
-
Methods inherited from class org.ojalgo.array.DenseArray.Factory
getCapacityLimit, getElementSize, makeStructuredZero, makeToBeFilled, newBuilder
-
Methods inherited from class org.ojalgo.array.ArrayFactory
wrapAsSegments
-
-
-
-
Field Detail
-
myFile
private final java.io.File myFile
-
myTypeFactory
private final BufferArray.Factory myTypeFactory
-
-
Constructor Detail
-
MappedFileFactory
MappedFileFactory(BufferArray.Factory typeFactory, java.io.File file)
-
-
Method Detail
-
copy
public BufferArray copy(Access1D<?> source)
-
copy
public BufferArray copy(java.lang.Comparable<?>... source)
-
copy
public BufferArray copy(double... source)
-
copy
public BufferArray copy(java.util.List<? extends java.lang.Comparable<?>> source)
-
function
public FunctionSet<java.lang.Double> function()
- Specified by:
function
in interfaceFactorySupplement
- Specified by:
function
in classArrayFactory<java.lang.Double,DenseArray<java.lang.Double>>
-
getMathType
public MathType getMathType()
-
make
public BufferArray make(int size)
- Specified by:
make
in interfaceFactory1D<DenseArray<java.lang.Double>>
- Specified by:
make
in interfaceFactory1D.TwoStep<DenseArray<java.lang.Double>,DenseArray<java.lang.Double>>
- Overrides:
make
in classArrayFactory<java.lang.Double,DenseArray<java.lang.Double>>
-
make
public BufferArray make(long count)
- Specified by:
make
in interfaceFactory1D<DenseArray<java.lang.Double>>
- Specified by:
make
in interfaceFactory1D.TwoStep<DenseArray<java.lang.Double>,DenseArray<java.lang.Double>>
- Overrides:
make
in classArrayFactory<java.lang.Double,DenseArray<java.lang.Double>>
-
make
public BufferArray make(Structure1D shape)
-
makeFilled
public BufferArray makeFilled(long count, NullaryFunction<?> supplier)
-
scalar
public Scalar.Factory<java.lang.Double> scalar()
- Specified by:
scalar
in interfaceFactorySupplement
- Specified by:
scalar
in classArrayFactory<java.lang.Double,DenseArray<java.lang.Double>>
-
aggregator
AggregatorSet<java.lang.Double> aggregator()
- Specified by:
aggregator
in classArrayFactory<java.lang.Double,DenseArray<java.lang.Double>>
-
makeDenseArray
BufferArray makeDenseArray(long size)
- Specified by:
makeDenseArray
in classDenseArray.Factory<java.lang.Double>
-
makeSegmented
SegmentedArray<java.lang.Double> makeSegmented(long... structure)
- Overrides:
makeSegmented
in classArrayFactory<java.lang.Double,DenseArray<java.lang.Double>>
-
-