R - r_b = b - ones(1, n)*b/n; R = 1 - (r'*r)/(r_b' * r_b);...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function [ R ] = R(A, b, x0) % 1 - ||r||^2/||b - b_bar||^2 n = size(b,1); r = A*x0 - b;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: r_b = b - ones(1, n)*b/n; R = 1 - (r'*r)/(r_b' * r_b); end...
View Full Document

This note was uploaded on 03/12/2012 for the course CS 3220 taught by Professor Marschner during the Spring '09 term at Cornell University (Engineering School).

Ask a homework question - tutors are online