Diagonal - Maple Help

Online Help

All Products    Maple    MapleSim


DeepLearning,Tensor,Diagonal

construct diagonal tensor

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

Diagonal(x,opts)

Parameters

x

-

Tensor

opts

-

zero of more options as specified below.

Options

• 

name=string

The value of option name specifies an optional name for this Tensor, to be displayed in output and when visualizing the dataflow graph.

Description

• 

The Diagonal(x,opts) command returns a diagonal Tensor with a given diagonal values.

• 

Given a diagonal x, this operation returns a Tensor with the diagonal and everything else padded with zeros.

Examples

withDeepLearning:

V35.0,65.0,41.0

V−35.065.041.0

(1)

tConstantV

tDeepLearning TensorName: noneShape: undefinedData Type: float[8]

(2)

Diagonalt

DeepLearning TensorName: noneShape: undefinedData Type: float[8]

(3)

Compatibility

• 

The DeepLearning,Tensor,Diagonal command was introduced in Maple 2018.

• 

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

See Also

DeepLearning Overview

LinearAlgebra

Tensor