 DeepLearning,Tensor,SingularValueDecomposition - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

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

DeepLearning,Tensor,SingularValueDecomposition

compute singular value decomposition of a Tensor

 Calling Sequence SingularValueDecomposition(x,opts)

Parameters

 x - Tensor opts - zero or 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 SingularValueDecomposition(x,opts) or SVD(x,opts) commands compute a singular value decomposition of one or more matrices in x

Examples

 > $\mathrm{with}\left(\mathrm{DeepLearning}\right):$
 > $t≔\mathrm{Constant}\left(\mathrm{LinearAlgebra}:-\mathrm{VandermondeMatrix}\left(⟨3.,5.,7.⟩\right)\right)$
 ${t}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Name: Const:0}}\\ {\mathrm{Shape: \left[3, 3\right]}}\\ {\mathrm{Data Type: float\left[8\right]}}\end{array}\right]$ (1)
 > $\mathrm{svd}≔\mathrm{SingularValueDecomposition}\left(t\right)$
 ${\mathrm{svd}}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Name: none}}\\ {\mathrm{Shape: undefined}}\\ {\mathrm{Data Type: undefined}}\end{array}\right]$ (2)
 > $\mathrm{value}\left(\mathrm{svd}\right)$
 $\left[\begin{array}{c}{56.4641241067444}\\ {2.18767256385950}\\ {0.129528419652346}\end{array}\right]{,}\left[\begin{array}{ccc}{0.166183955496311}& {0.784470926894502}& {0.597484943570030}\\ {0.451491366392332}& {0.478138549997582}& {-0.753351891933242}\\ {0.876663241506558}& {-0.394954290853373}& {0.274722895164790}\end{array}\right]{,}\left[\begin{array}{ccc}{0.0264652748454962}& {0.396611083565445}& {0.917605164338342}\\ {0.157492062963468}& {0.904808849092890}& {-0.395622543223603}\\ {0.987165558217498}& {-0.154985789659065}& {0.0385170828710182}\end{array}\right]$ (3)

Compatibility

 • The DeepLearning,Tensor,SingularValueDecomposition command was introduced in Maple 2018.
 • For more information on Maple 2018 changes, see Updates in Maple 2018.

 See Also