Class OjAlgoMathUtils

java.lang.Object
org.tweetyproject.math.util.OjAlgoMathUtils

public class OjAlgoMathUtils extends Object
Provides some utility functions for solving quadratic problems with ojAlgo.
Author:
NicoPotyka
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OjAlgoMathUtils

      public OjAlgoMathUtils()
  • Method Details

    • getOnes

      public static org.ojalgo.matrix.PrimitiveMatrix getOnes(int m, int n)
      Create (m,n)-matrix containing only ones.
      Parameters:
      m - some int
      n - 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 int
      scalar - a double value
      Returns:
      the unity matrix