Description Usage Arguments Details Value Communication Examples
Implementation of R's norm() function for shaq objects.
1 2 |
x |
A shaq |
type |
The type of norm: one, infinity, frobenius, max-modulus, and spectral. |
If type == "O" then the norm is calculated as the maximum of the
column sums.
If type == "I" then the norm is calculated as the maximum absolute
value of the row sums.
If type == "F" then the norm is calculated as the square root of the
sum of the square of the values of the matrix.
If type == "M" then the norm is calculated as the max of the absolute
value of the values of the matrix.
If type == "2" then the norm is calculated as the largest singular
value.
A number (length 1 regular vector).
If type == "O" then the communication consists of an allreduce,
quadratic on the number of columns.
If type == "I" then the communication conists of an allgather.
If type == "F" then the communication is an allreduce, quadratic on
the number of columns.
If type == "M" then the communication consists of an allgather.
If type == "2" then the communication consists of the same as that of
an svd() call: an allreduce, quadratic on the number of columns.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.