Close
Close window
tril - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

MTM

tril

compute the lower triangular matrix

Calling Sequence

tril(A)

tril(A,k)

Parameters

A

-

matrix, vector, array, or scalar

k

-

(optional) integer

Description

For a matrix A, the tril(A) command returns a matrix R where R[i,j] = A[i,j] when R[i,j] is on or below the main diagonal of R. R[i,j] = 0, otherwise.

For a matrix A, the tril(A,k) command returns a matrix R where R[i,j] = A[i,j] when R[i,j] is on or below the diagonal of R indexed by k. R[i,j] = 0 otherwise.

The diagonals of a matrix are indexed using signed integers, where the main diagonal has index 0. Superdiagonals are indexed with positive integers and subdiagonals are indexed with negative integers.

Examples

>

withMTM:

>

AMatrix1,2,1,4,5,6,2,8,1

A121456281

(1)
>

trilA

100450281

(2)
>

trilA,1

120456281

(3)
>

trilA,1

000400280

(4)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /