def compute_svd(row_matrix, k, compute_u=False, r_cond=1e-9):
    """

    Computes the singular value decomposition of the RowMatrix.
    :param row_matrix:
    The given row matrix A of dimension (m X n) is decomposed into U * s * V'T where
    * s: DenseVector consisting of square root of the eigenvalues (singular values) in descending order.
    * U: (m X k) (left singular vectors) is a RowMatrix whose columns are the eigenvectors of (A X A')
    * v: (n X k) (right singular vectors) is a Matrix whose columns are the eigenvectors of (A' X A)
    :param k: number of singular values to keep. We might return less than k if there are numerically zero
     singular values.
    :param compute_u: Whether of not to compute U. If set to be True, then U is computed by A * V * sigma^-1
    :param r_cond: the reciprocal condition number. All singular values smaller than rCond * sigma(0) are treated
     as zero, where sigma(0) is the largest singular value.
    :returns: SVD object
    """
    java_model = row_matrix._java_matrix_wrapper.call("computeSVD", int(k), compute_u, float(r_cond))
    return SVD(java_model)
def compute_svd ( row_matrix , k , compute_u = False , r_cond = 1e-9 ) : java_model = row_matrix . _java_matrix_wrapper . call ( "computeSVD" , int ( k ) , compute_u , float ( r_cond ) ) return SVD ( java_model )
Computes the singular value decomposition of the RowMatrix.
    :param row_matrix:
    The given row matrix A of dimension (m X n) is decomposed into U * s * V'T where
    * s: DenseVector consisting of square root of the eigenvalues (singular values) in descending order.
    * U: (m X k) (left singular vectors) is a RowMatrix whose columns are the eigenvectors of (A X A')
    * v: (n X k) (right singular vectors) is a Matrix whose columns are the eigenvectors of (A' X A)
    :param k: number of singular values to keep. We might return less than k if there are numerically zero
     singular values.
    :param compute_u: Whether of not to compute U. If set to be True, then U is computed by A * V * sigma^-1
    :param r_cond: the reciprocal condition number. All singular values smaller than rCond * sigma(0) are treated
     as zero, where sigma(0) is the largest singular value.
    :returns: SVD object