Learn R Programming

TFORGE (version 0.1.16)

has_fixedtrace: Check if the supplied sample(s) have fixed trace

Description

Compares the trace of all the supplied matrices to check that they are equal.

Usage

has_fixedtrace(x, tolerance = sqrt(.Machine$double.eps))

Value

TRUE or FALSE

Arguments

x

A sample or multiple samples of matrices suitable for as_flat().

tolerance

Tolerance on the relative difference, passed to all.equal()