CommonUtils

object CommonUtils

Static utility methods.

Static utility methods.

Authors

Piotr Wendykier ([email protected])

class Object
trait Matchable
class Any

Value members

Concrete methods

def bitrv2(n: Int, ip: Array[Int], a: Array[Double], offa: Int): Unit
def bitrv2(n: Int, ip: Array[Int], a: Array[Float], offa: Int): Unit
def bitrv208(a: Array[Double], offa: Int): Unit
def bitrv208(a: Array[Float], offa: Int): Unit
def bitrv208neg(a: Array[Double], offa: Int): Unit
def bitrv208neg(a: Array[Float], offa: Int): Unit
def bitrv216(a: Array[Double], offa: Int): Unit
def bitrv216(a: Array[Float], offa: Int): Unit
def bitrv216neg(a: Array[Double], offa: Int): Unit
def bitrv216neg(a: Array[Float], offa: Int): Unit
def bitrv2conj(n: Int, ip: Array[Int], a: Array[Double], offa: Int): Unit
def bitrv2conj(n: Int, ip: Array[Int], a: Array[Float], offa: Int): Unit
def cftb040(a: Array[Double], offa: Int): Unit
def cftb040(a: Array[Float], offa: Int): Unit
def cftb1st(n: Int, a: Array[Double], offa: Int, w: Array[Double], startw: Int): Unit
def cftb1st(n: Int, a: Array[Float], offa: Int, w: Array[Float], startw: Int): Unit
def cftbsub(n: Int, a: Array[Double], offa: Int, ip: Array[Int], nw: Int, w: Array[Double]): Unit
def cftbsub(n: Int, a: Array[Float], offa: Int, ip: Array[Int], nw: Int, w: Array[Float]): Unit
def cftf040(a: Array[Double], offa: Int): Unit
def cftf040(a: Array[Float], offa: Int): Unit
def cftf081(a: Array[Double], offa: Int, w: Array[Double], startw: Int): Unit
def cftf081(a: Array[Float], offa: Int, w: Array[Float], startw: Int): Unit
def cftf082(a: Array[Double], offa: Int, w: Array[Double], startw: Int): Unit
def cftf082(a: Array[Float], offa: Int, w: Array[Float], startw: Int): Unit
def cftf161(a: Array[Double], offa: Int, w: Array[Double], startw: Int): Unit
def cftf161(a: Array[Float], offa: Int, w: Array[Float], startw: Int): Unit
def cftf162(a: Array[Double], offa: Int, w: Array[Double], startw: Int): Unit
def cftf162(a: Array[Float], offa: Int, w: Array[Float], startw: Int): Unit
def cftf1st(n: Int, a: Array[Double], offa: Int, w: Array[Double], startw: Int): Unit
def cftf1st(n: Int, a: Array[Float], offa: Int, w: Array[Float], startw: Int): Unit
def cftfsub(n: Int, a: Array[Double], offa: Int, ip: Array[Int], nw: Int, w: Array[Double]): Unit
def cftfsub(n: Int, a: Array[Float], offa: Int, ip: Array[Int], nw: Int, w: Array[Float]): Unit
def cftfx41(n: Int, a: Array[Double], offa: Int, nw: Int, w: Array[Double]): Unit
def cftfx41(n: Int, a: Array[Float], offa: Int, nw: Int, w: Array[Float]): Unit
def cftleaf(n: Int, isplt: Int, a: Array[Double], offa: Int, nw: Int, w: Array[Double]): Unit
def cftleaf(n: Int, isplt: Int, a: Array[Float], offa: Int, nw: Int, w: Array[Float]): Unit
def cftmdl1(n: Int, a: Array[Double], offa: Int, w: Array[Double], startw: Int): Unit
def cftmdl1(n: Int, a: Array[Float], offa: Int, w: Array[Float], startw: Int): Unit
def cftmdl2(n: Int, a: Array[Double], offa: Int, w: Array[Double], startw: Int): Unit
def cftmdl2(n: Int, a: Array[Float], offa: Int, w: Array[Float], startw: Int): Unit
def cftrec4(n: Int, a: Array[Double], offa: Int, nw: Int, w: Array[Double]): Unit
def cftrec4(n: Int, a: Array[Float], offa: Int, nw: Int, w: Array[Float]): Unit
def cftrec4_th(n: Int, a: Array[Double], offa: Int, nw: Int, w: Array[Double]): Unit
def cftrec4_th(n: Int, a: Array[Float], offa: Int, nw: Int, w: Array[Float]): Unit
def cfttree(n: Int, j: Int, k: Int, a: Array[Double], offa: Int, nw: Int, w: Array[Double]): Int
def cfttree(n: Int, j: Int, k: Int, a: Array[Float], offa: Int, nw: Int, w: Array[Float]): Int
def cftx020(a: Array[Double], offa: Int): Unit
def cftx020(a: Array[Float], offa: Int): Unit
def cftxb020(a: Array[Double], offa: Int): Unit
def cftxb020(a: Array[Float], offa: Int): Unit
def cftxc020(a: Array[Double], offa: Int): Unit
def cftxc020(a: Array[Float], offa: Int): Unit
def dctsub(n: Int, a: Array[Double], offa: Int, nc: Int, c: Array[Double], startc: Int): Unit
def dctsub(n: Int, a: Array[Float], offa: Int, nc: Int, c: Array[Float], startc: Int): Unit
def getReminder(n: Long, factors: Array[Int]): Long
def isPowerOf2(x: Int): Boolean

Checks if x is a power-of-two number.

Checks if x is a power-of-two number.

Value Params
x

input value

Returns

true if x is a power-of-two number

def isPowerOf2(x: Long): Boolean
def makect(nc: Int, c: Array[Double], startc: Int, ip: Array[Int]): Unit
def makect(nc: Int, c: Array[Float], startc: Int, ip: Array[Int]): Unit
def makeipt(nw: Int, ip: Array[Int]): Unit
def makewt(nw: Int, ip: Array[Int], w: Array[Double]): Unit
def makewt(nw: Int, ip: Array[Int], w: Array[Float]): Unit
def nextPow2(x: Int): Int

Returns the closest power-of-two number greater than or equal to x.

Returns the closest power-of-two number greater than or equal to x.

Value Params
x

input value

Returns

the closest power-of-two number greater than or equal to x

def nextPow2(x: Long): Long
def prevPow2(x: Int): Int

Returns the closest power-of-two number less than or equal to x.

Returns the closest power-of-two number less than or equal to x.

Value Params
x

input value

Returns

the closest power-of-two number less then or equal to x

def prevPow2(x: Long): Long
def resetThreadsBeginN(): Unit

Resets the minimal size of 2D and 3D data for which threads are used.

Resets the minimal size of 2D and 3D data for which threads are used.

Resets the minimal size of 1D data for which two and four threads are used.

Resets the minimal size of 1D data for which two and four threads are used.

def rftbsub(n: Int, a: Array[Double], offa: Int, nc: Int, c: Array[Double], startc: Int): Unit
def rftbsub(n: Int, a: Array[Float], offa: Int, nc: Int, c: Array[Float], startc: Int): Unit
def rftfsub(n: Int, a: Array[Double], offa: Int, nc: Int, c: Array[Double], startc: Int): Unit
def rftfsub(n: Int, a: Array[Float], offa: Int, nc: Int, c: Array[Float], startc: Int): Unit
def scale(n: Int, m: Double, a: Array[Double], offa: Int, complex: Boolean): Unit
def scale(n: Int, m: Float, a: Array[Float], offa: Int, complex: Boolean): Unit
def sleep(millis: Long): Unit

Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds.

Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds.

Value Params
millis

the length of time to sleep in milliseconds

Returns the minimal size of 1D data for which two threads are used.

Returns the minimal size of 1D data for which two threads are used.

Returns

the minimal size of 1D data for which two threads are used

Sets the minimal size of 1D data for which two threads are used.

Sets the minimal size of 1D data for which two threads are used.

Value Params
n

the minimal size of 1D data for which two threads are used

Returns the minimal size of 1D data for which four threads are used.

Returns the minimal size of 1D data for which four threads are used.

Returns

the minimal size of 1D data for which four threads are used

Sets the minimal size of 1D data for which four threads are used.

Sets the minimal size of 1D data for which four threads are used.

Value Params
n

the minimal size of 1D data for which four threads are used

Returns the minimal size of 2D data for which threads are used.

Returns the minimal size of 2D data for which threads are used.

Returns

the minimal size of 2D data for which threads are used

def threadsBeginN_2D_=(n: Int): Unit

Sets the minimal size of 2D data for which threads are used.

Sets the minimal size of 2D data for which threads are used.

Value Params
n

the minimal size of 2D data for which threads are used

Returns the minimal size of 3D data for which threads are used.

Returns the minimal size of 3D data for which threads are used.

Returns

the minimal size of 3D data for which threads are used

def threadsBeginN_3D_=(n: Int): Unit

Sets the minimal size of 3D data for which threads are used.

Sets the minimal size of 3D data for which threads are used.

Value Params
n

the minimal size of 3D data for which threads are used