DeepLearning,Tensor,Diagonal - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : DeepLearning Package : Tensors : Matrix Operations on Tensors : DeepLearning/Tensor/Diagonal

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: Const:0Shape: [3]Data Type: float[8]

(2)

valueDiagonalt

−35.0.0.0.65.0.0.0.41.

(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