Interface LinearAlgebraBackend<E>
- Type Parameters:
E- the element type supported by this backend (e.g., Real, Double)
- All Superinterfaces:
AlgorithmProvider, AutoCloseable, Backend, ComputeBackend, LinearAlgebraProvider<E>
- All Known Implementing Classes:
CPUSparseLinearAlgebraProvider, GRPCLinearAlgebraBackend
Interface for linear algebra backends.
Combines general backend metadata with linear algebra implementation details.
- Since:
- 1.2
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetName()Returns the display name for UI presentation.default intReturns the priority for auto-selection (higher = preferred).default StringgetType()Returns the backend type category (e.g., "plotting", "molecular", "tensor", "math").default booleanChecks if this backend is currently available (libraries loaded, etc.).default voidshutdown()Called when the application is shutting down or the backend is being replaced.Methods inherited from interface AlgorithmProvider
description, getMetadataMethods inherited from interface Backend
getAlgorithmProviders, getStatusMessage, isExplicitlyDisabledMethods inherited from interface ComputeBackend
createBackend, createContext, getAcceleratorType, getDescription, getId, supportsComplexNumbers, supportsFloatingPoint, supportsParallelOpsMethods inherited from interface LinearAlgebraProvider
acos, acosh, add, add, angle, asin, asinh, atan, atanh, cbrt, cholesky, close, conditionNumber, configure, conjugateTranspose, cos, cosh, cross, determinant, dot, eigen, exp, getAlgorithmType, getEnvironmentInfo, inverse, isCompatible, log, log10, lu, multiply, multiply, multiply, norm, normalize, pow, projection, qr, rank, scale, score, sin, sinh, solve, solve, solve, solve, solveTriangular, sqrt, subtract, subtract, svd, tan, tanh, trace, transpose
-
Method Details
-
getType
-
getName
Description copied from interface:BackendReturns the display name for UI presentation.- Specified by:
getNamein interfaceAlgorithmProvider- Specified by:
getNamein interfaceBackend- Specified by:
getNamein interfaceLinearAlgebraProvider<E>
-
getPriority
default int getPriority()Description copied from interface:BackendReturns the priority for auto-selection (higher = preferred). Used when multiple backends are available.- Specified by:
getPriorityin interfaceAlgorithmProvider- Specified by:
getPriorityin interfaceBackend- Specified by:
getPriorityin interfaceLinearAlgebraProvider<E>
-
isAvailable
default boolean isAvailable()Description copied from interface:BackendChecks if this backend is currently available (libraries loaded, etc.).Default implementation checks
Backend.isExplicitlyDisabled()and returns false if it is.- Specified by:
isAvailablein interfaceAlgorithmProvider- Specified by:
isAvailablein interfaceBackend
-
shutdown
default void shutdown()Description copied from interface:BackendCalled when the application is shutting down or the backend is being replaced. Use this to release hardware resources, close file handles, or stop background threads.- Specified by:
shutdownin interfaceAlgorithmProvider- Specified by:
shutdownin interfaceBackend
-