powered by
This function computes the Krylov sequence of a matrix and a vector.
krylov(A, b, m)
A matrix of size p x m containing the sequence b,Ab,..., A^(m-1)b.
square matrix of dimension p x p.
vector of length p
length of the Krylov sequence
Nicole Kraemer
A<-matrix(rnorm(8*8),ncol=8) b<-rnorm(8) K<-krylov(A,b,4)
Run the code above in your browser using DataLab