Navigation

Operators and Keywords

Function List:

C++ API

: bw = bandwidth (A, type)
: [lower, upper] = bandwidth (A)

Compute the bandwidth of A.

The type argument is the string "lower" for the lower bandwidth and "upper" for the upper bandwidth. If no type is specified return both the lower and upper bandwidth of A.

The lower/upper bandwidth of a matrix is the number of subdiagonals/superdiagonals with nonzero entries.

See also: isbanded, isdiag, istril, istriu.

Package: octave