public class MatrixUtils
extends java.lang.Object
Constructor and Description |
---|
MatrixUtils() |
Modifier and Type | Method and Description |
---|---|
static hex.psvm.psvm.LLMatrix |
productMtDM(water.fvec.Frame m,
water.fvec.Vec diagonal)
Calculates matrix product M'DM
|
static double[] |
productMtv(water.fvec.Frame m,
water.fvec.Vec v)
Calculates matrix-vector product M'v
|
public static hex.psvm.psvm.LLMatrix productMtDM(water.fvec.Frame m, water.fvec.Vec diagonal)
m
- Frame representing the M matrix (m x n), M' is expected to be lower triangulardiagonal
- Vec representation of a diagonal matrix (m x m)public static double[] productMtv(water.fvec.Frame m, water.fvec.Vec v)
m
- Frame representing matrix M (m x n)v
- Vec representing vector v (m x 1)