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 28440

For questions about using and representing matrices on a computer in order to solve computational problems. Should generally also include a tag about the specific property/problem you are solving (e.g. [tag:linear-algebra], [tag:eigenvalues], [tag:inverse].

2 votes
1 answer
215 views

BLAS operation question

I have a $N \times N$ matrix $A$ where $U$ is stored in the upper triangle (plus diagonal), and $L$ is stored in the lower triangle. … I want to store the product $U L^T$ in-place in the upper triangle of the matrix $A$. …
vibe's user avatar
  • 1,078
3 votes
0 answers
45 views

Reweighted least squares factorization

Now multiplying a diagonal matrix by a trapezoidal gives a trapezoidal matrix, so the problem becomes solving the trapezoidal least squares problem $$ (D_i L) z = y $$ My question is how can this trapezoidal …
vibe's user avatar
  • 1,078
1 vote
0 answers
89 views

Fast calculation of $A^T B$

I need to compute a matrix-matrix product, $A^T B$, where $A$ is $n \times r$ sparse, and $B$ is $n \times q$ dense. The number of rows $n$ is far larger than both $r$ and $q$. … In fact $n$ is so large I cannot store the entire matrix $B$ in memory, so I build it one row at a time and update the matrix product $A^T B$ accordingly. …
vibe's user avatar
  • 1,078
3 votes
2 answers
240 views

Parallel assembly of matrix

The bottleneck of the code is when I need to update the matrix $A$. I give each thread its own matrix A to update and then sum them all together at the end for the final A. … I added a #if flag to enable/disable the matrix copy operation which is the slow part. …
vibe's user avatar
  • 1,078
7 votes
Accepted

Algorithm to factorize matrix whose many rows are already of upper triangular form?

In brief, recursive LU on a $M \times N$ matrix $A$ proceeds by partitioning the matrix into 4 blocks: \begin{align} \pmatrix{A_{11} & A_{12} \\ A_{21} & A_{22}} &= \pmatrix{L_{11} & 0 \\ L_{21} & L_{22 … However, for your specialized matrix, you should pick $A_{11}$ to be a square upper triangular matrix. …
vibe's user avatar
  • 1,078
4 votes
0 answers
108 views

Block matrix and DSYRK

I want to compute the matrix $$ A = \sum_{i=1}^N v_i v_i^T $$ where each $v_i$ is a given vector of length $2500$, so that $A$ is $2500 \times 2500$, and my $N$ is about 2 million. … Currently, I am choosing $\textrm{block_size} = 50000$, which I only chose so that the total size of the $W_k$ storage matrix is 1GB ($50000 \times 2500 \times 8 = 1 GB$). …
vibe's user avatar
  • 1,078
2 votes
1 answer
193 views

Measuring the extent to which two sets of vectors span the same space

I have a set of measurements $y_i$, $1 \leq i \leq N$, and I want to model these measurements with a linear model. I have two possible models I can use, $$ y \approx A c $$ and $$ y \approx B d $$ whe …
vibe's user avatar
  • 1,078