The MATLAB function sprandsym generates a random symmetric matrix and will additionally make the matrix positive definite. The statement
generates a sparse random symmetric positive definite matrix of size where density is the fraction of nonzeros, and the reciprocal of rc is the exact condition number. Using spransym, generate a sparse symmetric positive definite matrix of dimension with zeros, and condition number of Execute and preconditionedusing random random0 tol and numiter For preconditioned use incomplete Cholesky with droptol Compare the time required and the resulting residual.
For the remaining problems, unless stated otherwise, use0 and let be a random vector.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here