grapes-.-grapes: Dot Product

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Returns the dot product (or inner product) of two tensors.

Usage

1
t1 %.% t2

Arguments

t1

Tensor. Vector or matrix.

t2

Tensor. Vector or matrix.

Details

This is a wrapper to the %*% infix operator and a compatibility layer to the Yacas Dot command.

If any of the arguments is a scalar, the function performs scalar multiplication.

Value

Numeric.

Author(s)

Ivan Jacob Agaloos Pesigan

See Also

Other operation functions: Dot()

Examples

1
c(1, 3, -5) %.% c(4, -2, -1)

jeksterslab/matrixR documentation built on Feb. 22, 2021, 8:10 a.m.