torch_matrix_rank | R Documentation |
Matrix_rank
self |
(Tensor) the input 2-D tensor |
tol |
(float, optional) the tolerance value. Default: |
symmetric |
(bool, optional) indicates whether |
Returns the numerical rank of a 2-D tensor. The method to compute the
matrix rank is done using SVD by default. If symmetric
is TRUE
,
then input
is assumed to be symmetric, and the computation of the
rank is done by obtaining the eigenvalues.
tol
is the threshold below which the singular values (or the eigenvalues
when symmetric
is TRUE
) are considered to be 0. If tol
is not
specified, tol
is set to S.max() * max(S.size()) * eps
where S
is the
singular values (or the eigenvalues when symmetric
is TRUE
), and eps
is the epsilon value for the datatype of input
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.