Skip to content

Commit

Permalink
Provide private constructors to all algos that need them
Browse files Browse the repository at this point in the history
  • Loading branch information
bdezonia committed Jul 31, 2019
1 parent 5e3a713 commit 74d2a43
Show file tree
Hide file tree
Showing 103 changed files with 200 additions and 19 deletions.
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/Clamp.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
*/
public class Clamp {

private Clamp() { }

/**
*
* @param algebra
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/Convolve1D.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
*/
public class Convolve1D {

private Convolve1D() { }

/**
*
* @param alg
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/ConvolveND.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
*/
public class ConvolveND {

private ConvolveND() { }

/**
*
* @param alg
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/Copy.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
*/
public class Copy {

private Copy() { }

/**
*
* @param algebra
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
*/
public class CopyBackward {

private CopyBackward() { }

/**
*
* @param algebra
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/CopyIf.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
*/
public class CopyIf {

private CopyIf() { }

/**
*
* @param algebra
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/Correlate1D.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
*/
public class Correlate1D {

private Correlate1D() { }

/**
*
* @param alg
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/CorrelateND.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
*/
public class CorrelateND {

private CorrelateND() { }

/**
*
* @param alg
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/DeepCopy.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
*/
public class DeepCopy {

private DeepCopy() { }

/**
*
* @param alg
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/DivMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
*/
public class DivMod {

private DivMod() { }

/**
*
* @param alg
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/EqualRange.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
*/
public class EqualRange {

private EqualRange() { }

/**
*
* @param alg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
*/
public class ExponentialCalculation {

private ExponentialCalculation() { }

/**
* Create a numeric value from an exponential description. Can create nonreal values
* depending upon inputs.
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/FindEnd.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
*/
public class FindEnd {

private FindEnd() { }

/**
*
* @param algebra
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
*/
public class FindFirstOf {

/**
private FindFirstOf() { }

/**
*
* @param algebra
* @param elements
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/ForEach.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
*/
public class ForEach {

private ForEach() { }

/**
*
* @param algU
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/Gaussian.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
*/
public class Gaussian {

private Gaussian() { }

/**
*
* @param alg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
*/
public class GaussianFilter1D {

private GaussianFilter1D() { }

/**
*
* @param alg
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/Generate.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
*/
public class Generate {

private Generate() { }

/**
*
* @param algU
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
*/
public class InplaceTransform1 {

private InplaceTransform1() { }

/**
* In place initialization of one whole list by a Procedure1.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
*/
public class InplaceTransform2 {

private InplaceTransform2() { }

/**
* In place transformation of one whole list by a Procedure2.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
*/
public class InplaceTransform3 {


private InplaceTransform3() { }

/**
* In place transformation of one whole list by a Procedure3.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
*/
public class InplaceTransform4 {

private InplaceTransform4() { }

/**
* In place transformation of one whole list by a Procedure4.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
*/
public class IsPartitioned {

private IsPartitioned() { }

/**
*
* @param algebra
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/IsSorted.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
*/
public class IsSorted {

private IsSorted() { }

/**
*
* @param alg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
*/
public class IsSortedUntil {

private IsSortedUntil() { }

/**
*
* @param alg
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/KMeans.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
*/
public class KMeans {

private KMeans() { }

/**
* KMeans.compute()
* Usage: Pass in a list of points (all of the same dimension > 0) that span any region.
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/LeftRotate.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
*/
public class LeftRotate {

private LeftRotate() { }

/**
* Do a left rotation of a set of values.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
*/
public class LexicographicalCompare {

private LexicographicalCompare() { }

/**
* LexicographicalCompare compares two lists treating them as tuples of values.
* The comparison returns true if the 1st "tuple" is less than the 2nd "tuple".
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/LowerBound.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
*/
public class LowerBound {

private LowerBound() { }

/**
*
* @param alg
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/Map.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
*/
public class Map {

private Map() { }

/**
*
* @param algU
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
*/
public class MatrixConstantDiagonal {

private MatrixConstantDiagonal() { }

/**
*
* @param alg
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/Max.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
*/
public class Max {

private Max() { }

/**
*
* @param algebra
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/Min.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
*/
public class Min {

private Min() { }

/**
*
* @param algebra
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/MinMax.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
*
*/
public class MinMax {

private MinMax() { }

/**
*
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/Mismatch.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
*/
public class Mismatch {

private Mismatch() { }

/**
*
* @param algebra
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/nom/bdezonia/zorbage/algorithm/Multiply.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
*/
public class Multiply {

private Multiply() { }

// TODO: BitOperations dependency should be avoided. Need a HalfDouble interface
// that can be depended upon instead and easily implemented for all integer like
// types.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
*/
public class NextPermutation {

private NextPermutation() { }

/**
*
* @param alg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
*/
public class OctonionCartesian {

private OctonionCartesian() { }

/**
*
* @param r
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
*/
public class OctonionCylindrical {

private OctonionCylindrical() { }

/**
*
* @param rad
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
*/
public class OctonionFromComplex {

private OctonionFromComplex() { }

/**
*
* @param c1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
*/
public class OctonionFromQuaternion {

private OctonionFromQuaternion() { }

/**
*
* @param q1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
*/
public class OctonionMultiPolar {

private OctonionMultiPolar() { }

/**
*
* @param rho1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
*/
public class OctonionSpherical {

private OctonionSpherical() { }

/**
*
* @param rho
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
*/
public class ParallelConvolveND {

private ParallelConvolveND() { }

/**
*
* @param alg
Expand Down
Loading

0 comments on commit 74d2a43

Please sign in to comment.