Package net.sf.tweety.math.util
Class OjAlgoMathUtils
- java.lang.Object
-
- net.sf.tweety.math.util.OjAlgoMathUtils
-
public class OjAlgoMathUtils extends java.lang.ObjectProvides some utility functions for solving quadratic problems with ojAlgo.- Author:
- NicoPotyka
-
-
Constructor Summary
Constructors Constructor Description OjAlgoMathUtils()
-
Method Summary
Modifier and Type Method Description static org.ojalgo.matrix.PrimitiveMatrixgetOnes(int m, int n)Create (m,n)-matrix containing only ones.static org.ojalgo.matrix.PrimitiveMatrixgetUnityMultiple(int n, double scalar)Create unity matrix multiplied by scalar.
-
-
-
Method Detail
-
getOnes
public static org.ojalgo.matrix.PrimitiveMatrix getOnes(int m, int n)Create (m,n)-matrix containing only ones.- Parameters:
m- some intn- some int- Returns:
- a matrix
-
getUnityMultiple
public static org.ojalgo.matrix.PrimitiveMatrix getUnityMultiple(int n, double scalar)Create unity matrix multiplied by scalar.- Parameters:
n- some intscalar- a double value- Returns:
- the unity matrix
-
-