Package org.apfloat.internal
Class LongBuilderFactory
java.lang.Object
org.apfloat.internal.LongBuilderFactory
- All Implemented Interfaces:
BuilderFactory
- Direct Known Subclasses:
LongAparapiBuilderFactory
Factory class for getting instances of the various builder classes needed
to build an
ApfloatImpl
with the long
data element type.- Version:
- 1.9.0
- Author:
- Mikko Tommila
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
gc()
Do garbage collection and related things such as empty any reference queues.<T> AdditionBuilder
<T> getAdditionBuilder
(Class<T> elementType) Returns anAdditionBuilder
object.Returns anApfloatBuilder
object.<T> CarryCRTBuilder
<T> getCarryCRTBuilder
(Class<T> elementArrayType) Returns aCarryCRTBuilder
object.Returns aConvolutionBuilder
object.Returns aDataStorageBuilder
object.Class
<?> Returns the element array type of the data objects created.int
Returns the element size of the data objects created, in bytes.Class
<?> Returns the element type of the data objects created.Returns anExecutionBuilder
object.Returns aMatrixBuilder
object.Returns anNTTBuilder
object.void
shutdown()
Shuts down the builder factory.
-
Constructor Details
-
LongBuilderFactory
public LongBuilderFactory()Default constructor.
-
-
Method Details
-
getApfloatBuilder
Description copied from interface:BuilderFactory
Returns anApfloatBuilder
object.- Specified by:
getApfloatBuilder
in interfaceBuilderFactory
- Returns:
- An
ApfloatBuilder
object.
-
getDataStorageBuilder
Description copied from interface:BuilderFactory
Returns aDataStorageBuilder
object.- Specified by:
getDataStorageBuilder
in interfaceBuilderFactory
- Returns:
- A
DataStorageBuilder
object.
-
getAdditionBuilder
public <T> AdditionBuilder<T> getAdditionBuilder(Class<T> elementType) throws IllegalArgumentException Description copied from interface:BuilderFactory
Returns anAdditionBuilder
object.- Specified by:
getAdditionBuilder
in interfaceBuilderFactory
- Type Parameters:
T
- The element type of the additions.- Parameters:
elementType
- The element type of the additions.- Returns:
- An
AdditionBuilder
object. - Throws:
IllegalArgumentException
- In case of unsupported element type.
-
getConvolutionBuilder
Description copied from interface:BuilderFactory
Returns aConvolutionBuilder
object.- Specified by:
getConvolutionBuilder
in interfaceBuilderFactory
- Returns:
- A
ConvolutionBuilder
object.
-
getNTTBuilder
Description copied from interface:BuilderFactory
Returns anNTTBuilder
object.- Specified by:
getNTTBuilder
in interfaceBuilderFactory
- Returns:
- An
NTTBuilder
object.
-
getMatrixBuilder
Description copied from interface:BuilderFactory
Returns aMatrixBuilder
object.- Specified by:
getMatrixBuilder
in interfaceBuilderFactory
- Returns:
- A
MatrixBuilder
object.
-
getCarryCRTBuilder
public <T> CarryCRTBuilder<T> getCarryCRTBuilder(Class<T> elementArrayType) throws IllegalArgumentException Description copied from interface:BuilderFactory
Returns aCarryCRTBuilder
object.- Specified by:
getCarryCRTBuilder
in interfaceBuilderFactory
- Type Parameters:
T
- The element array type of the carry-CRT.- Parameters:
elementArrayType
- The element array type of the carry-CRT.- Returns:
- A
CarryCRTBuilder
object. - Throws:
IllegalArgumentException
- In case of unsupported element array type.
-
getExecutionBuilder
Description copied from interface:BuilderFactory
Returns anExecutionBuilder
object.- Specified by:
getExecutionBuilder
in interfaceBuilderFactory
- Returns:
- An
ExecutionBuilder
object.
-
getElementType
Description copied from interface:BuilderFactory
Returns the element type of the data objects created.- Specified by:
getElementType
in interfaceBuilderFactory
- Returns:
- The element type of the data objects created.
-
getElementArrayType
Description copied from interface:BuilderFactory
Returns the element array type of the data objects created.- Specified by:
getElementArrayType
in interfaceBuilderFactory
- Returns:
- The element array type of the data objects created.
-
getElementSize
public int getElementSize()Description copied from interface:BuilderFactory
Returns the element size of the data objects created, in bytes.- Specified by:
getElementSize
in interfaceBuilderFactory
- Returns:
- The element size of the data objects created, in bytes.
-
shutdown
Description copied from interface:BuilderFactory
Shuts down the builder factory. Clean-up tasks can be executed by this method. This method is invoked by theApfloatContext
when cleanupAtExit is enabled.- Specified by:
shutdown
in interfaceBuilderFactory
- Throws:
ApfloatRuntimeException
-
gc
Description copied from interface:BuilderFactory
Do garbage collection and related things such as empty any reference queues.- Specified by:
gc
in interfaceBuilderFactory
- Throws:
ApfloatRuntimeException
-