
Check if an object has fixed diagonal
fixdiag(x, …)
fixdiag(x, …) <- value
# S3 method for ff
fixdiag(x, …)
# S3 method for default
fixdiag(x, …)
# S3 method for dist
fixdiag(x, …)
an ff or ram object
assignement value
further arguments (not used)
NULL or the scalar representing the fixed diagonal
ff symmetric matrices can be declared to have fixed diagonal at creation time. Compatibility function fixdiag.default
returns NULL, fixdiag.dist
returns 0.
# NOT RUN {
fixdiag(matrix(1:16, 4, 4))
fixdiag(dist(rnorm(1:4)))
# }
Run the code above in your browser using DataLab