Learn R Programming

RAINBOWR (version 0.1.35)

is.diag: Function to judge the square matrix whether it is diagonal matrix or not

Description

Function to judge the square matrix whether it is diagonal matrix or not

Usage

is.diag(x)

Value

If `x` is diagonal matrix, `TRUE`. Otherwise the function returns `FALSE`.

Arguments

x

Square matrix.