matrix.inner | R Documentation |
Computes the inner product between two rectangular matrices calling BLAS.
matrix.inner(x, y = x)
x |
a numeric matrix. |
y |
a numeric matrix. |
a real value, indicating the inner product between two matrices.
x <- matrix(c(1, 1, 1,
1, 2, 1,
1, 3, 1,
1, 1,-1,
1, 2,-1,
1, 3,-1), ncol = 3, byrow = TRUE)
y <- matrix(1, nrow = 6, ncol = 3)
matrix.inner(x, y)
# must be equal
matrix.norm(x, type = "Frobenius")^2
matrix.inner(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.