Question

How can I extract only the diagonal elements of a matrix product without computing the whole product matrix?

I have nxk matrix (A) and a kxk (B) matrix where n>>k. I want the diagonal terms of A*B*A' in a n-vector. It would be wasteful ...

circa 8 anni ago | 1 answer | 1

Question

How can I use glmfit to reduce the number of independent variables in a Logistic Regression model?

I am using GLMFIT to perform Logistic Regression on data. I would like to use it to eliminate the independent variables that ar...

circa 8 anni ago | 0 answers | 0

Question

How can I perform matrix operation efficiently?

I have an array X(n,m) where m<<n and n can be very large. First, I want to create a 3-d array of dimension (m,m,n) such that ea...

circa 8 anni ago | 2 answers | 0