Rank - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


DeepLearning/Tensor/Rank

get rank of a Tensor

DeepLearning/Tensor/Shape

get shape of a Tensor

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Rank(t)

Shape(t)

Parameters

t

-

Tensor

Description

• 

The Rank(t) command returns an integer describing the rank of Tensor t.

• 

The Shape(t) command returns a list describing the structure of the Tensor t.

Examples

> 

with⁡DeepLearning:

> 

t≔Constant⁡−55.,−70.,−67.,13.,77.,−58.

t≔DeepLearning TensorShape: [6, 1]Data Type: float[8]

(1)
> 

Rank⁡t

2

(2)
> 

Shape⁡t

6,1

(3)

Compatibility

• 

The DeepLearning/Tensor/Rank and DeepLearning/Tensor/Shape commands were introduced in Maple 2018.

• 

For more information on Maple 2018 changes, see Updates in Maple 2018.

See Also

DeepLearning Overview

Tensor