Package org.tweetyproject.math.util
Class OjAlgoMathUtils
java.lang.Object
org.tweetyproject.math.util.OjAlgoMathUtils
Provides some utility functions for solving quadratic problems with ojAlgo.
- Author:
- NicoPotyka
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.ojalgo.matrix.PrimitiveMatrix
getOnes
(int m, int n) Create (m,n)-matrix containing only ones.static org.ojalgo.matrix.PrimitiveMatrix
getUnityMultiple
(int n, double scalar) Create unity matrix multiplied by scalar.
-
Constructor Details
-
OjAlgoMathUtils
public OjAlgoMathUtils()Constructor
-
-
Method Details
-
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
-