Skip to contents

Check if two matrices are equivalent, handling sparse matrices and data frames.

Usage

matrix_is_equivalent(X, Y, tolerance = 1e-10)

Arguments

X

First matrix

Y

Second matrix

tolerance

Numeric tolerance for comparison. Default is 1e-10.

Value

Logical indicating if matrices are equivalent.