cc.mallet.grmm.util
Class Flops

java.lang.Object
  extended by cc.mallet.grmm.util.Flops

public class Flops
extends java.lang.Object

Utilities for flop (floating-point operation) counting. This is a much better way to measure computation than CPU time, because it avoids measuring non-essential properties of the implementations. $Id: Flops.java,v 1.1 2007/10/22 21:37:58 mccallum Exp $


Nested Class Summary
static class Flops.Watch
           
 
Constructor Summary
Flops()
           
 
Method Summary
static void div()
           
static void exp()
           
static void exp(int N)
           
static long getFlops()
           
static void increment(int N)
           
static void log()
           
static void log(int N)
           
static void pow(int N)
           
static void sqrt()
           
static void sumLogProb(int n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Flops

public Flops()
Method Detail

getFlops

public static long getFlops()

exp

public static void exp()

log

public static void log()

div

public static void div()

sqrt

public static void sqrt()

sumLogProb

public static void sumLogProb(int n)

increment

public static void increment(int N)

log

public static void log(int N)

exp

public static void exp(int N)

pow

public static void pow(int N)