innerProd-methods {rTensor}R Documentation

Tensors Inner Product

Description

Returns the inner product between two Tensors

Usage

innerProd(tnsr1, tnsr2)

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

Arguments

tnsr1

first Tensor instance

tnsr2

second Tensor instance

Details

innerProd(tnsr1,tnsr2)

Value

inner product between x1 and x2

Examples

tnsr1 <- rand_tensor()
tnsr2 <- rand_tensor()
innerProd(tnsr1,tnsr2)

[Package rTensor version 1.4.8 Index]