Usage
## S3 method for class 'ddmatrix':
diag(x)
## S3 method for class 'vector':
diag(x, nrow, ncol, type = "matrix", ...,
bldim = .BLDIM, ICTXT = .ICTXT)
## S3 method for class 'character':
diag(x, nrow, ncol, type = "matrix", ...,
min = 0, max = 1, mean = 0, sd = 1,
rate = 1, shape, scale = 1,
bldim = .BLDIM, ICTXT = .ICTXT)
Arguments
x
distributed matrix or a vector.
nrow,ncol
in the case that x
is a vector, these specify
the global dimension of the diagonal distributed matrix to be created.
type
character. Options are 'matrix' or 'ddmatrix', with partial
matching. This specifies the return type.
min, max
Min and max values for random uniform generation.
mean,sd
Mean and standard deviation for random normal generation.
rate
Rate for random exponential generation.
shape,scale
Shape and scale parameters for random weibull generation.
ICTXT
BLACS context number.