eigen_Xt_times_diag_w_times_X {fastLogisticRegressionWrap} | R Documentation |
Via the eigen package
eigen_Xt_times_diag_w_times_X(X, w, num_cores = 1)
X |
A numeric matrix of size n x p |
w |
A numeric vector of length p |
num_cores |
The number of cores to use. Unless p is large, keep to the default of 1. |
The resulting matrix
n = 100
p = 10
X = matrix(rnorm(n * p), nrow = n, ncol = p)
w = rnorm(p)
eigen_Xt_times_diag_w_times_X(t(X), w)