type/MVIndex - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/MVIndex

type/MVIndex

check for an expression of type MVIndex (Matrix or Vector index)

 Calling Sequence type(expr, MVIndex)

Parameters

 expr - any expression

Description

 • The type(expr, MVIndex) function returns true if expr is an integer, an integer range, or a list whose elements are either integers or ranges of integers.

Examples

 > $\mathrm{type}\left(1,\mathrm{MVIndex}\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{type}\left(4..-1,\mathrm{MVIndex}\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{type}\left(\left[1,3..5,7,8,10..-1\right],\mathrm{MVIndex}\right)$
 ${\mathrm{true}}$ (3)

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam