フィルターのクリア

Problem with lscov for sparse input matrix with specified covariance vector

4 ビュー (過去 30 日間)
Matthias Schabel
Matthias Schabel 2020 年 4 月 11 日
I am using lscov to solve a system of multiple small linear least squares problems set up as a block diagonal sparse matrix as follows:
blks = cell([1 size(X,2)]);
for i=1:size(X,2)
blks{i} = sparse([ones(size(X(:,i))) X(:,i)]);
end
A = blkdiag(blks{:});
Y = Y(:);
wY = wY(:);
[p,u] = lscov(A,Y); % this works for both normal and sparse A
%[p,u] = lscov(A,Y,wY); % this works when A is passed as full(A), fails when A is sparse, giving zero values for p
Wondering if anyone has thoughts on this?
Thanks,
Matthias

回答 (0 件)

カテゴリ

Help Center および File ExchangeOperating on Diagonal Matrices についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by