matrixes_can_multiply: Check if the passed entities are matrixes that can multiply...

View source: R/matrix.R

matrixes_can_multiplyR Documentation

Check if the passed entities are matrixes that can multiply together

Description

Check if the passed entities are matrixes that can multiply together

Usage

matrixes_can_multiply(m1, m2, result_num_rows = NULL, result_num_cols = NULL)

Arguments

m1

The first matrix

m2

The second matrix

result_num_rows

The expected number of rows of the result. Optional.

result_num_cols

The expected number of cols of the result. Optional.

Examples

## Not run: 
# For assertion
assertthat::assert_that(qscheck::matrixes_can_multiply(m1, m2))
# For check
if (qscheck::matrixes_can_multiply(m1, m2)) {}

## End(Not run)


AstraZeneca/qscheck documentation built on Nov. 1, 2023, 4:45 a.m.