# A matrix-vector product that avoids explicitly forming the transpose
# of the (potentially big) matrix.
matvec = function(A,x,transpose=FALSE)
{
if(transpose)
return( (t(t(x)%*%A))[,drop=FALSE] )
(A %*% x)[,drop=FALSE]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.