Skip to content

Commit

Permalink
improve doc of svd(). fixes #2358
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Mar 4, 2013
1 parent 39be18b commit cc4ae19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions doc/manual/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ differences that may trip up Julia users accustomed to MATLAB:
operators, ``<``, ``>``, ``!=``, etc.
- The elements of a collection can be passed as arguments to a function
using ``...``, as in ``xs=[1,2]; f(xs...)``.
- Julia's ``svd`` returns singular values as a vector instead of as a
full diagonal matrix.

Noteworthy differences from R
-----------------------------
Expand Down
4 changes: 2 additions & 2 deletions doc/stdlib/base.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2288,11 +2288,11 @@ Linear algebra functions in Julia are largely implemented by calling functions f

.. function:: svd(A, [thin]) -> U, S, V

Compute the SVD of A, returning ``U``, ``S``, and ``V`` such that ``A = U*S*V'``. If ``thin`` is ``true``, an economy mode decomposition is returned.
Compute the SVD of A, returning ``U``, vector ``S``, and ``V`` such that ``A == U*diagm(S)*V'``. If ``thin`` is ``true``, an economy mode decomposition is returned.

.. function:: svdt(A, [thin]) -> U, S, Vt

Compute the SVD of A, returning ``U``, ``S``, and ``Vt`` such that ``A = U*S*Vt``. If ``thin`` is ``true``, an economy mode decomposition is returned.
Compute the SVD of A, returning ``U``, vector ``S``, and ``Vt`` such that ``A = U*diagm(S)*Vt``. If ``thin`` is ``true``, an economy mode decomposition is returned.

.. function:: svdvals(A)

Expand Down

0 comments on commit cc4ae19

Please sign in to comment.