Modifier and Type | Class and Description |
---|---|
static class |
Gram.Cholesky |
static class |
Gram.GramTask
Task to compute gram matrix normalized by the number of observations (not counting rows with NAs).
|
static class |
Gram.InPlaceCholesky |
Modifier and Type | Field and Description |
---|---|
double |
_diagAdded |
double[][] |
_xx |
Constructor and Description |
---|
Gram() |
Gram(Gram g) |
Gram(int N,
int diag,
int dense,
int sparse,
boolean hasIntercept) |
Modifier and Type | Method and Description |
---|---|
void |
add(Gram grm) |
void |
addDiag(double d) |
void |
addDiag(double d,
boolean add2Intercept) |
void |
addRow(double[] x,
int catN,
int[] catIndexes,
double w) |
Gram.Cholesky |
cholesky(Gram.Cholesky chol) |
Gram.Cholesky |
cholesky(Gram.Cholesky chol,
boolean parallelize,
java.lang.String id)
Compute the cholesky decomposition.
|
Gram |
clone() |
double |
diagAvg() |
double |
diagMin() |
int |
fullN() |
double[][] |
getDenseXX() |
double[][] |
getXX() |
boolean |
hasNaNsOrInfs() |
void |
mul(double x) |
double[] |
mul(double[] x) |
void |
mul(double[] x,
double[] res) |
java.lang.String |
toString() |
frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
public Gram()
public Gram(int N, int diag, int dense, int sparse, boolean hasIntercept)
public Gram(Gram g)
public final int fullN()
public void addDiag(double d)
public void addDiag(double d, boolean add2Intercept)
public double diagAvg()
public double diagMin()
public java.lang.String toString()
toString
in class java.lang.Object
public Gram.Cholesky cholesky(Gram.Cholesky chol)
public Gram.Cholesky cholesky(Gram.Cholesky chol, boolean parallelize, java.lang.String id)
chol
- public double[][] getXX()
public double[][] getDenseXX()
public void add(Gram grm)
public final boolean hasNaNsOrInfs()
public final void addRow(double[] x, int catN, int[] catIndexes, double w)
public void mul(double x)
public double[] mul(double[] x)
public void mul(double[] x, double[] res)