pfcor icon

matrixInverseVector

pfcor | PRO | 05/28/17 11:21:49 PM UTC | 0 ⭐ | 7463 👁️ | Never ⏰ | []
Octave |

180 B

|

None

|

0 👍

/

0 👎

function A_inv_b = matrixInverseVector(A, b, x_init, alpha)
    while norm(A*x_init - b)^2 > 1e-6,
        x_init -= alpha * 2*A*(A*x_init - b);
    end;
    A_inv_b = x_init;
end;

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎