Module ojalgo

Class VirtualMachine

java.lang.Object
org.ojalgo.machine.BasicMachine
org.ojalgo.machine.VirtualMachine

public final class VirtualMachine extends BasicMachine
  • Field Details

    • architecture

      public final Hardware.Architecture architecture
    • cache

      public final long cache
      The size of one top level (L3 or L2) cache unit in bytes.
    • cores

      public final int cores
      The total number of processor cores.
    • units

      public final int units
      The number of top level (L3 or L2) cache units. If there is a L3 cache this usually corresponds to the number of CPU:s.
  • Method Details

    • getMemory

      public static long getMemory()
    • collectGarbage

      public void collectGarbage()
    • equals

      public boolean equals(Object obj)
    • getAvailableDim1D

      public int getAvailableDim1D(long elementSize)
    • getAvailableDim2D

      public int getAvailableDim2D(long elementSize)
    • getAvailableMemory

      public long getAvailableMemory()
    • hashCode

      public int hashCode()
    • limitBy

      public VirtualMachine limitBy(double fraction)
      Parameters:
      fraction - [0.0, 1.0]
      Returns:
      A limited VirtualMachine
    • toString

      public String toString()
      Overrides:
      toString in class BasicMachine
    • cache

      public final long cache()
      The total amount of top level (L3 or L2) cache memory in bytes.
    • isMultiCore

      public final boolean isMultiCore()
    • isMultiThread

      public final boolean isMultiThread()
    • isMultiUnit

      public final boolean isMultiUnit()