is_valid_row: Check if the row is valid for the matrix A

View source: R/row_operations.R

is_valid_rowR Documentation

Check if the row is valid for the matrix A

Description

Check if the row is valid for the matrix A

Usage

is_valid_row(A, row)

Arguments

A

The matrix A

row

The row to check if it is valid

Value

is_valid_row() returns TRUE if row is a valid row for A and FALSE otherwise

Examples

A <- diag(4)
# expect TRUE
is_valid_row(A, 3)
# expect FALSE
is_valid_row(A, 5)


jtipton25/dasc2594 documentation built on Oct. 7, 2022, 3:46 p.m.