Hi,

I was trying to understand how the newly added commands (mdump and mrdump), to dump circuit matrices, work. I ran a simple resistive circuit in ngspice:

Simple resisitive network

R1 n1 n2 1

R2 n2 n3 1

R3 n2 0 0.5

R4 n3 0 1

V1 n1 0 DC 2

.END

According to the circuit, for a DC analysis, the command "mdump" should give me a matrix like:

1 -1 0 1

-1 4 -1 0

0 -1 2 0

and the RHS vector should be

0

0

0

2

but, mdump gives:

Matrix after factorization:

1 2 3 4

1 1 -1 … 1

2 -1 0.25 -0.25 …

3 … -1 0.571 …

4 1 … … …

and mrdump gives:

2

0.571428571428571

0.285714285714286

-1.42857142857143

which is in fact the solution vector not RHS !

Can anyone help me please with this?

Thanks,

M. R. darabad