Learn R Programming

gallery (version 1.0.0)

clement: Create Clement tridiagonal matrix with zero diagonal entries

Description

Returns an n-by-n tridiagonal matrix with zeros on the main diagonal. For k=0, A is nonsymmetric. For k=1, A is symmetric

Usage

clement(n, k = 0)

Value

Clement tridiagonal matrix with zero diagonal entries

Arguments

n

order of matrix

k

0 indicates symmetric matrix, 1 asymmetric