public class Omega extends Object
Constructor and Description |
---|
Omega(long seed,
int kp) |
Modifier and Type | Method and Description |
---|---|
protected void |
accumDots(int aIndex,
double aElement,
double[] yRow) |
protected void |
accumDots(int aIndex,
double aElement,
Vector yRow) |
void |
computeYRow(Vector aRow,
double[] yRow)
Deprecated.
|
void |
computeYRow(Vector aRow,
Vector yRowOut)
A version to compute yRow as a sparse vector in case of extremely sparse
matrices
|
double |
getQuick(int row,
int column)
Get omega element at (x,y) uniformly distributed within [-1...1)
|
static long |
murmur64(byte[] val,
int offset,
int len,
long seed) |
static long |
murmur64(long val,
int len,
long seed)
Shortened version for data < 8 bytes packed into
len lowest bytes
of val . |
Vector |
mutlithreadedTRightMultiply(Vector v) |
public double getQuick(int row, int column)
row
- omega rowcolumn
- omega column@Deprecated public void computeYRow(Vector aRow, double[] yRow)
aRow
- row of matrix A (size n)yRow
- row of matrix Y (result) must be pre-allocated to size of (k+p)public void computeYRow(Vector aRow, Vector yRowOut)
aRow
- yRowOut
- protected void accumDots(int aIndex, double aElement, double[] yRow)
protected void accumDots(int aIndex, double aElement, Vector yRow)
public static long murmur64(long val, int len, long seed)
len
lowest bytes
of val
.val
- the valuelen
- the length of data packed into this many low bytes of val
seed
- the seed to usepublic static long murmur64(byte[] val, int offset, int len, long seed)
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.