public interface BuilderFactory
BuilderFactory object contains factory methods for building
the various parts of an apfloat using the Builder pattern. There
is no separate "director" object in the apfloat SPI; it is suggested
that the ApfloatImpl implementation itself acts as the director,
calling the different builders directly.| Modifier and Type | Method and Description |
|---|---|
void |
gc()
Do garbage collection and related things such as empty any reference queues.
|
<T> AdditionBuilder<T> |
getAdditionBuilder(Class<T> elementType)
Returns an
AdditionBuilder object. |
ApfloatBuilder |
getApfloatBuilder()
Returns an
ApfloatBuilder object. |
<T> CarryCRTBuilder<T> |
getCarryCRTBuilder(Class<T> elementArrayType)
Returns a
CarryCRTBuilder object. |
ConvolutionBuilder |
getConvolutionBuilder()
Returns a
ConvolutionBuilder object. |
DataStorageBuilder |
getDataStorageBuilder()
Returns a
DataStorageBuilder object. |
Class<?> |
getElementArrayType()
Returns the element array type of the data objects created.
|
int |
getElementSize()
Returns the element size of the data objects created, in bytes.
|
Class<?> |
getElementType()
Returns the element type of the data objects created.
|
MatrixBuilder |
getMatrixBuilder()
Returns a
MatrixBuilder object. |
NTTBuilder |
getNTTBuilder()
Returns an
NTTBuilder object. |
void |
shutdown()
Shuts down the builder factory.
|
ApfloatBuilder getApfloatBuilder()
ApfloatBuilder object.ApfloatBuilder object.DataStorageBuilder getDataStorageBuilder()
DataStorageBuilder object.DataStorageBuilder object.<T> AdditionBuilder<T> getAdditionBuilder(Class<T> elementType) throws IllegalArgumentException
AdditionBuilder object.T - The element type of the additions.elementType - The element type of the additions.AdditionBuilder object.IllegalArgumentException - In case of unsupported element type.ConvolutionBuilder getConvolutionBuilder()
ConvolutionBuilder object.ConvolutionBuilder object.NTTBuilder getNTTBuilder()
NTTBuilder object.NTTBuilder object.MatrixBuilder getMatrixBuilder()
MatrixBuilder object.MatrixBuilder object.<T> CarryCRTBuilder<T> getCarryCRTBuilder(Class<T> elementArrayType) throws IllegalArgumentException
CarryCRTBuilder object.T - The element array type of the carry-CRT.elementArrayType - The element array type of the carry-CRT.CarryCRTBuilder object.IllegalArgumentException - In case of unsupported element array type.Class<?> getElementType()
Class<?> getElementArrayType()
int getElementSize()
void shutdown()
throws ApfloatRuntimeException
ApfloatContext when cleanupAtExit is enabled.ApfloatRuntimeExceptionvoid gc() throws ApfloatRuntimeException
ApfloatRuntimeExceptionCopyright © 2024. All rights reserved.