Package org.flag4j.complex_numbers
Class CNumberUtils
java.lang.Object
org.flag4j.complex_numbers.CNumberUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
maxStringLength
(double[] src) Computes the maximum length of the string representation of a double in an array of doubles.static int
maxStringLength
(double[] src, int stopIndex) Computes the maximum length of the string representation of a double in an array of doubles up until stopping index.static int
maxStringLength
(CNumber[] src) Computes the maximum length of the string representation of a double in an array of doubles.static int
maxStringLength
(CNumber[] src, int stopIndex) Computes the maximum length of the string representation of a double in an array of doubles up until stopping index.
-
Constructor Details
-
CNumberUtils
private CNumberUtils()
-
-
Method Details
-
maxStringLength
public static int maxStringLength(double[] src) Computes the maximum length of the string representation of a double in an array of doubles.- Parameters:
src
- Array for which to compute the max string representation length of a double in.- Returns:
- The maximum length of the string representation of the doubles in the array.
-
maxStringLength
Computes the maximum length of the string representation of a double in an array of doubles.- Parameters:
src
- Array for which to compute the max string representation length of a double in.- Returns:
- The maximum length of the string representation of the doubles in the array.
-
maxStringLength
public static int maxStringLength(double[] src, int stopIndex) Computes the maximum length of the string representation of a double in an array of doubles up until stopping index. The length of the last element is always considered.- Parameters:
src
- Array for which to compute the max string representation length of a double in.stopIndex
- Stopping index for finding max length.- Returns:
- The maximum length of the string representation of the doubles in the array.
-
maxStringLength
Computes the maximum length of the string representation of a double in an array of doubles up until stopping index. The length of the last element is always considered.- Parameters:
src
- Array for which to compute the max string representation length of a double in.stopIndex
- Stopping index for finding max length.- Returns:
- The maximum length of the string representation of the doubles in the array.
-