| scalarProduct | R Documentation |
The scalar product might depend on the space in which the operation takes place.
scalarProduct(x, y, space = NULL, ...)
## S3 method for class 'numeric'
scalarProduct(x, y = x, space, ...)
## S3 method for class 'BDataSplines'
scalarProduct(x, y, space = getBayesSpace(x), ...)
## S3 method for class 'BDataDensities'
scalarProduct(x, y = x, space = getBayesSpace(x), ...)
## S3 method for class 'BDataLogDensities'
scalarProduct(x, y = x, space = getBayesSpace(x), ...)
x |
an element of the space (or a dataset of such elements) |
y |
an element of the space (or a dataset of such elements) |
space |
the space in which the scalar product shall be computed |
... |
further generic arguments, like e.g. method for the compution |
A numeric scalar, vector, or matrix of inner products, depending on the inputs.
scalarProduct(numeric): of vectors (or rows of a matrix) potentially over the metric tensor of the space.
scalarProduct(BDataSplines): in BayesSpaces for BDataSplines objects
scalarProduct(BDataDensities): in BayesSpaces for BDataDensities objects
scalarProduct(BDataLogDensities): in BayesSpaces for BDataLogDensities objects
X <- BDataSplines(matrix(c(1,2,3,4,5, 2,1,0,1,2), nrow=2, byrow=TRUE),
B2Unif01Basis5)
scalarProduct(X, X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.