Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
apete committed Mar 16, 2024
1 parent bfaff49 commit 1e586f1
Show file tree
Hide file tree
Showing 36 changed files with 58 additions and 53 deletions.
1 change: 0 additions & 1 deletion src/main/java/org/ojalgo/array/BufferArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
import org.ojalgo.scalar.Scalar;
import org.ojalgo.structure.Access1D;
import org.ojalgo.structure.Structure1D;
import org.ojalgo.structure.StructureAnyD;
import org.ojalgo.type.NumberDefinition;
import org.ojalgo.type.math.MathType;

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/ojalgo/data/DataBatch.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.data;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.ONE;
import static org.ojalgo.function.constant.PrimitiveMath.ZERO;

import java.util.Collection;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.data.domain.finance.portfolio;

import static org.ojalgo.function.constant.BigMath.*;
import static org.ojalgo.function.constant.BigMath.ONE;
import static org.ojalgo.function.constant.BigMath.ZERO;

import java.math.BigDecimal;
import java.util.Arrays;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/ojalgo/equation/Equation.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.equation;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.ONE;
import static org.ojalgo.function.constant.PrimitiveMath.ZERO;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@
*/
package org.ojalgo.function.multiary;

import org.ojalgo.matrix.store.GenericStore;
import org.ojalgo.matrix.store.MatrixStore;
import org.ojalgo.matrix.store.PhysicalStore;
import org.ojalgo.matrix.store.Primitive64Store;
import org.ojalgo.scalar.ComplexNumber;
import org.ojalgo.scalar.RationalNumber;
import org.ojalgo.scalar.Scalar;
import org.ojalgo.structure.Access1D;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@
*/
package org.ojalgo.function.multiary;

import org.ojalgo.matrix.store.GenericStore;
import org.ojalgo.matrix.store.MatrixStore;
import org.ojalgo.matrix.store.PhysicalStore;
import org.ojalgo.matrix.store.Primitive64Store;
import org.ojalgo.scalar.ComplexNumber;
import org.ojalgo.scalar.RationalNumber;
import org.ojalgo.scalar.Scalar;
import org.ojalgo.structure.Access1D;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@
*/
package org.ojalgo.function.multiary;

import org.ojalgo.matrix.store.GenericStore;
import org.ojalgo.matrix.store.MatrixStore;
import org.ojalgo.matrix.store.PhysicalStore;
import org.ojalgo.matrix.store.Primitive64Store;
import org.ojalgo.scalar.ComplexNumber;
import org.ojalgo.scalar.RationalNumber;
import org.ojalgo.structure.Access1D;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@
*/
package org.ojalgo.function.multiary;

import org.ojalgo.matrix.store.GenericStore;
import org.ojalgo.matrix.store.MatrixStore;
import org.ojalgo.matrix.store.PhysicalStore;
import org.ojalgo.matrix.store.Primitive64Store;
import org.ojalgo.scalar.ComplexNumber;
import org.ojalgo.scalar.RationalNumber;
import org.ojalgo.scalar.Scalar;
import org.ojalgo.structure.Access1D;
import org.ojalgo.structure.Access2D;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@
*/
package org.ojalgo.function.multiary;

import org.ojalgo.matrix.store.GenericStore;
import org.ojalgo.matrix.store.MatrixStore;
import org.ojalgo.matrix.store.PhysicalStore;
import org.ojalgo.matrix.store.Primitive64Store;
import org.ojalgo.scalar.ComplexNumber;
import org.ojalgo.scalar.RationalNumber;
import org.ojalgo.scalar.Scalar;
import org.ojalgo.structure.Access1D;
import org.ojalgo.structure.Access2D;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.matrix.decomposition;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.MACHINE_SMALLEST;
import static org.ojalgo.function.constant.PrimitiveMath.ZERO;

import org.ojalgo.RecoverableCondition;
import org.ojalgo.array.BasicArray;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.matrix.decomposition;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.MACHINE_SMALLEST;
import static org.ojalgo.function.constant.PrimitiveMath.ZERO;

import org.ojalgo.RecoverableCondition;
import org.ojalgo.array.BasicArray;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/ojalgo/matrix/store/Primitive64Store.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.matrix.store;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.ONE;
import static org.ojalgo.function.constant.PrimitiveMath.ZERO;

import java.util.Arrays;

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/ojalgo/matrix/store/SparseStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.matrix.store;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.E;
import static org.ojalgo.function.constant.PrimitiveMath.ZERO;

import java.util.Arrays;
import java.util.function.IntBinaryOperator;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/ojalgo/optimisation/Variable.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.optimisation;

import static org.ojalgo.function.constant.BigMath.*;
import static org.ojalgo.function.constant.BigMath.ONE;
import static org.ojalgo.function.constant.BigMath.ZERO;

import java.math.BigDecimal;
import java.math.RoundingMode;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/ojalgo/optimisation/convex/QPESolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.optimisation.convex;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.ADD;
import static org.ojalgo.function.constant.PrimitiveMath.ZERO;

import org.ojalgo.matrix.store.MatrixStore;
import org.ojalgo.matrix.store.PhysicalStore;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,6 @@ public static final class StandardBuilder extends LinearSolver.Builder<StandardB
super();
}



}

static abstract class Builder<B extends LinearSolver.Builder<B>> extends GenericSolver.Builder<B, LinearSolver> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.optimisation.linear;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.ONE;
import static org.ojalgo.function.constant.PrimitiveMath.ZERO;

import java.util.Arrays;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.optimisation.linear;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.ONE;
import static org.ojalgo.function.constant.PrimitiveMath.ZERO;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/ojalgo/random/Binomial.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.random;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.HALF;
import static org.ojalgo.function.constant.PrimitiveMath.ONE;

import org.ojalgo.function.constant.PrimitiveMath;
import org.ojalgo.function.special.CombinatorialFunctions;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/ojalgo/random/ContinuousDistribution.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.random;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.ONE;
import static org.ojalgo.function.constant.PrimitiveMath.TWO;

public interface ContinuousDistribution extends Distribution {

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/ojalgo/random/Erlang.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.random;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.ONE;
import static org.ojalgo.function.constant.PrimitiveMath.ZERO;

import org.ojalgo.function.constant.PrimitiveMath;

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/ojalgo/random/Exponential.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.random;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.ONE;
import static org.ojalgo.function.constant.PrimitiveMath.ZERO;

import org.ojalgo.function.constant.PrimitiveMath;

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/ojalgo/random/Geometric.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.random;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.HALF;
import static org.ojalgo.function.constant.PrimitiveMath.ONE;

import org.ojalgo.function.constant.PrimitiveMath;

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/ojalgo/random/Poisson.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.random;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.ONE;
import static org.ojalgo.function.constant.PrimitiveMath.ZERO;

import org.ojalgo.function.constant.PrimitiveMath;
import org.ojalgo.function.special.MissingMath;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/ojalgo/random/RandomNumber.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.random;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.ONE;
import static org.ojalgo.function.constant.PrimitiveMath.ZERO;

import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/ojalgo/random/Weibull.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.random;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.ONE;
import static org.ojalgo.function.constant.PrimitiveMath.TWO;

import org.ojalgo.function.constant.PrimitiveMath;
import org.ojalgo.function.special.GammaFunction;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/ojalgo/random/process/PoissonProcess.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.random.process;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.SQRT;
import static org.ojalgo.function.constant.PrimitiveMath.ZERO;

import org.ojalgo.ProgrammingError;
import org.ojalgo.random.Exponential;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/ojalgo/random/scedasticity/ARCH.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.random.scedasticity;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.TWELVE;
import static org.ojalgo.function.constant.PrimitiveMath.ZERO;

import java.util.Arrays;

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/ojalgo/type/CalendarDate.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.type;

import static java.time.temporal.ChronoField.*;
import static java.time.temporal.ChronoField.INSTANT_SECONDS;
import static java.time.temporal.ChronoField.NANO_OF_SECOND;

import java.time.*;
import java.time.temporal.*;
Expand Down
6 changes: 4 additions & 2 deletions src/test/java/org/ojalgo/ann/NeuralNetworkWorkedExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
*/
package org.ojalgo.ann;

import static org.ojalgo.ann.ArtificialNeuralNetwork.Activator.*;
import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.ann.ArtificialNeuralNetwork.Activator.SIGMOID;
import static org.ojalgo.ann.ArtificialNeuralNetwork.Activator.SOFTMAX;
import static org.ojalgo.function.constant.PrimitiveMath.FIVE;
import static org.ojalgo.function.constant.PrimitiveMath.ONE;

import java.util.ArrayList;
import java.util.List;
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/org/ojalgo/function/multiary/LinearCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public void setup() {

myLinearFunction2 = LinearFunction.factory(Primitive64Store.FACTORY).coefficients(linear.transpose()).make(linear.transpose().size());
myAffineFunction2 = AffineFunction.factory(Primitive64Store.FACTORY).coefficients(linear.transpose()).make(linear.transpose().size());
myQuadraticFunction2 = QuadraticFunction.factory(Primitive64Store.FACTORY).quadratic(quadratic).linear(linear.transpose()).make(linear.transpose().size());
myQuadraticFunction2 = QuadraticFunction.factory(Primitive64Store.FACTORY).quadratic(quadratic).linear(linear.transpose())
.make(linear.transpose().size());

myArg = Primitive64Store.FACTORY.makeFilled(arity, 1, new Uniform(-1, 2));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.function.special;

import static org.ojalgo.function.constant.PrimitiveMath.*;
import static org.ojalgo.function.constant.PrimitiveMath.ONE;
import static org.ojalgo.function.constant.PrimitiveMath.ZERO;

import org.junit.jupiter.api.Test;
import org.ojalgo.TestUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.optimisation.convex;

import static org.ojalgo.function.constant.BigMath.*;
import static org.ojalgo.function.constant.BigMath.ONE;
import static org.ojalgo.function.constant.BigMath.TWO;

import java.math.BigDecimal;
import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.optimisation.integer;

import static org.ojalgo.function.constant.BigMath.*;
import static org.ojalgo.function.constant.BigMath.ONE;
import static org.ojalgo.function.constant.BigMath.ZERO;

import java.math.BigDecimal;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
*/
package org.ojalgo.optimisation.integer;

import static org.ojalgo.function.constant.BigMath.*;
import static org.ojalgo.function.constant.BigMath.ONE;
import static org.ojalgo.function.constant.BigMath.ZERO;

import java.math.BigDecimal;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
@Tag("network")
public class OptimisationServiceTest {


private static final String PATH_ENVIRONMENT = "/optimisation/v01/environment";
private static final String PATH_TEST = "/optimisation/v01/test";
private static final String HOST = "http://51.20.44.70:8080";
Expand Down

0 comments on commit 1e586f1

Please sign in to comment.