Class OjAlgoMathUtils


  • public class OjAlgoMathUtils
    extends java.lang.Object
    Provides 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.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 Detail

      • OjAlgoMathUtils

        public OjAlgoMathUtils()
    • Method Detail

      • 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