Learn R Programming

rTensor (version 1.4.8)

innerProd-methods: Tensors Inner Product

Description

Returns the inner product between two Tensors

Usage

innerProd(tnsr1, tnsr2)

# S4 method for Tensor,Tensor innerProd(tnsr1, tnsr2)

Arguments

tnsr1

first Tensor instance

tnsr2

second Tensor instance

Value

inner product between x1 and x2

Details

innerProd(tnsr1,tnsr2)

Examples

Run this code
# NOT RUN {
tnsr1 <- rand_tensor()
tnsr2 <- rand_tensor()
innerProd(tnsr1,tnsr2)
# }

Run the code above in your browser using DataLab