Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 4405

Questions about working with or solving equations involving matrices which are known or suspected to have many nonzero elements. Contrast with sparse matrix.

1 vote

Spectral decomposition of symmetric matrix

The implicit (Francis) QR iteration, with several additional tricks, is the standard algorithm. I suggest you to check a book such as Watkins' The Matrix Eigenvalue Problem for details; this is a clas …
Federico Poloni's user avatar
4 votes
1 answer
210 views

Trace of inverse from LU decomposition

Given an LU decomposition of $A\in \mathbb{R}^{n\times n}$, is there a way to compute $\operatorname{trace}(A^{-1})$ with lower complexity than that of the inversion ($O(n^3)$ in practice)? This quest …
Federico Poloni's user avatar
6 votes
Accepted

Matrix exponential of a Hamiltonian matrix

Very quick answer... The exponential of a Hamiltonian matrix is symplectic, a property that you probably wish to preserve, otherwise you would simply use a non-structure-preserving method. Indeed, th …
Federico Poloni's user avatar
2 votes
Accepted

Solving a linear system whose coefficient matrix is dense but symmetric

It can be lowered; it is called packed storage and Lapack has some functions to deal with it, e.g., ?PPSVX, ?SPSVX. As this storage scheme is somewhat uncommon, I don't think you can use it easily in …
Federico Poloni's user avatar
1 vote

Computing eigendecomposition of a Hermitian matrix that is almost unitary

A thing you might try: 1) perform a few iterations of the matrix sign iteration $A\mapsto \frac{1}{2}(A+A^{-1})$; the eigenvectors are unchanged, while the eigenvalues converge quadratically to $\pm …
Federico Poloni's user avatar
3 votes

Smart way to multiply 3 matrices

Have you considered working with the Cholesky (or low-rank) factor of $\rho(t_0)$ rather than with the matrix itself? This might reduce the number of products that you need to make, and it has the add …
Federico Poloni's user avatar
1 vote

Optimal algorithm choice for mixed diagonal/dense problem

This is what I wrote in the comments, formulated as an answer. If $\hat{\beta}_j=0$, then $\hat{\alpha}_j\neq 0$ otherwise the matrix wouldn't be invertible. So you can swap column $j$ with column $n …
Federico Poloni's user avatar