Hi Sean,
Here you go:

sparsem= atrix.txt =3D=C2=A0

row, col ,val
0= ,0,.42
0,1,.28
0,2,.89
1,0,.83
1,1,= .34
1,2,.42
2,0,.23
3,0,.42
3,1,.98=
3,2,.88
4,0,.23
4,1,.36
4,2,.97

The vector is just the third column of the mat= rix which should give the trivial solution of [0,0,1]

<= div>This translates to this which is correct
There are zeros in t= he matrix (Not really sparse but just an example)
0.42 =C2= =A00.28 =C2=A00.89 =C2=A0
0.83 =C2=A00.34 =C2=A00.42 =C2=A0
=
0.23 =C2=A00.0 =C2=A0 0.0 =C2=A0=C2=A0
0.42 =C2=A00.98 =C2= =A00.88 =C2=A0
0.23 =C2=A00.36 =C2=A00.97 =C2=A0
=

Here is what I get for =C2=A0the Q and R

Q: -0.21470961288429483 =C2=A00.23590615093828807= =C2=A0 0.6784910613691661 =C2=A0 =C2=A0
-0.3920784235278427 =C2= =A0 -0.06171221388256143 =C2=A00.5847874866876442 =C2=A0 =C2=A0
-= 0.7748216464954987 =C2=A0 -0.4003560542230838 =C2=A0 -0.29392323671555354 = =C2=A0
-0.3920784235278427 =C2=A0 0.8517909521421976 =C2=A0 =C2= =A0-0.31435038559403217 =C2=A0
-0.21470961288429483 =C2=A0-0.2338= 9547730301666 =C2=A0-0.11165321782745863 =C2=A0
R: -1.07121426428= 14275 =C2=A0-0.8347536340918976 =C2=A0-1.227672225670157 =C2=A0
0= .0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00.76628086= 91141717 =C2=A0 0.7553315911660984 =C2=A0
0.0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00.0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00.7785210939368136 =C2=A0
=

When running this in matlab the numbers are the same bu= t row 1 is the last row and the last row is interchanged with row 3

On Mon, Nov 7, 2016 at 11:35 PM Sean Owen <sowen@cloudera.com> wrote:
Rather than post a la= rge section of code, please post a small example of the input matrix and it= s decomposition, to illustrate what you're saying is out of order.

On Tue, Nov 8, 2016 at 3:50 AM im= 281 <iman.mohtashemi@gmail.com> wrote:
I am getting the correc= t rows but they are out of order. Is this a bug or am
I doing something wrong?

--001a1143f2bcea8c3f0540cb21ae--