layer_pairwise_residual: Create Pairwise Layer

Description Usage Arguments Value

View source: R/2-layers-pairwise.R

Description

This function computes all pairwise residuals in the final dimension of a tensor. For example, if the tensor has the dimensions (2, 3, 4), this function will return a tensor with the dimensions (2, 3, 4, 4). The element (2, 3, i, j) would contain the value ((2, 3, i) - (2, 3, j))^2.

Usage

1

Arguments

object

The incoming layer.

name

A string. The prefix label for all layers.

Value

A layer of the pairwise residuals.


tpq/caress documentation built on March 11, 2021, 8:03 p.m.