Class CollectionConverters
java.lang.Object
org.episteme.core.mathematics.util.CollectionConverters
Utility class for converting between collections of primitives and Episteme
types.
Provides collection conversion methods for:
- List<Double> to List<Real>
- List<Real> to List<Double>
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionfromDoubleArray(double[] arr) Converts a primitive double array to List<Real>.Converts a List<Real> to List<Double>.static double[]toDoubleArray(List<Real> list) Converts a List<Real> to primitive double array.Converts a List<Double> to List<Real>.
-
Method Details
-
toReal
-
toDouble
-
toDoubleArray
-
fromDoubleArray
-