svd

Computes the singular value decomposition.

  1. SvdResult!T svd(Slice!(const(T)*, 2, kind) a, Flag!"slim" slim)
    @safe pure @nogc
    svd
    (
    T
    string algorithm = "gesvd"
    SliceKind kind
    )
    (
    Slice!(const(T)*, 2, kind) a
    ,
    Flag!"slim" slim = No.slim
    )
    if (
    algorithm == "gesvd" ||
    algorithm == "gesdd"
    )
  2. SvdResult!T svd(Slice!(RCI!T, 2, kind) matrix, Flag!"slim" slim)

Parameters

a Slice!(const(T)*, 2, kind)

input M x N matrix

slim Flag!"slim"

If true the first min(M,N) columns of u and the first min(M,N) rows of vt are returned in the ndslices u and vt. out result = SvdResult. ]

Return Value

Type: SvdResult!T

error code from CBlas

Meta