countEdges: Count the edges information of an initial random tensor...

Description Usage Arguments Value Examples

View source: R/countEdges.R

Description

This function counts

Usage

1
countEdges(X, G)

Arguments

X

A list of matrices

G

The core tensor. A rTensor::Tensor object.

Value

a 2-dim vector describing sum of tensor values and average value.

Examples

1
2
3
4
5
6
n = 10
k = 3
X = matrix(rnorm(n*k),n,k)
X = list(X,X,X)
G = rTensor::as.tensor(array(rexp(k^3),dim = rep(k,3)))
res = countEdges(X, G)

MuzheZeng/fastRTG documentation built on May 12, 2020, 1:43 p.m.