Given \(\bold{A}\) an \(n\) by \(n\) real matrix and an \(n\)-vector \(\bold{b}\),
this function constructs the Krylov matrix \(\bold{K}\), where
$$\bold{K} = [\bold{b},\bold{Ab},\dots,\bold{A}^{m-1}\bold{b}].$$
Usage
krylov(a, b, m = ncol(a))
Value
Returns an \(n\) by \(m\) matrix.
Arguments
a
a numeric square matrix of order \(n\) by \(n\) for which the Krylov
matrix is to be computed.