Description Usage Arguments Details Value Note Author(s) References See Also Examples
Computes the least squares estimate x
which minimizes the
Euclidian norm of A %x% x - b
, where A
is a
Kronecker product of matrices.
1 | klin.ls(A, b)
|
A |
A list that contains the matrices, preferably of class
|
b |
A conformable numeric vector. |
The matrices in the list A
should be of the class
Matrix
. This allows the user to take advantage of their
special structure (eg sparsity).
This function is just glue for klin.preparels
and
klin.solve
. If you are using the same A
multiple
times, it is suggested that you call klin.preparels
and
save the result. This allows Matrix
to memoize the factors of
crossprod(A[[i]])
where needed.
A numeric vector.
The algorithm (given in the reference) is orders of magnitude
more efficient (both in terms of CPU and memory usage) than computing
the Kronecker product and calling crossprod
and solve
.
Tamas K Papp <tpapp@princeton.edu>
Paul E. Buis and Wayne R. Dyksen. Efficient Vector and Parallel Manipulation of Tensor Products. ACM Transactions on Mathematical Software, Vol. 22, No. 1, March 1996, Pages 18–23.
klin.eval
, klin.solve
,
klin.preparels
, klin.klist
.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.