is.toeplitz: test if argument is a symmetric Toeplitz matrix

is.toeplitzR Documentation

test if argument is a symmetric Toeplitz matrix

Description

Auxilary function, used to validate the input of TrenchInverse

Usage

is.toeplitz(x)

Arguments

x

value to be tested

Details

A symmetric Toeplitz matrix of order n has (i,j)-entry of the form g[abs(1+i-j)], where g is a vector of length n.

Value

returns True or False according to whether x is or is not a symmetric Toeplitz matrix

Author(s)

A.I. McLeod

See Also

TrenchInverse, toeplitz

Examples

is.toeplitz(toeplitz(1:5))
is.toeplitz(5)

ltsa documentation built on Sept. 18, 2024, 5:07 p.m.