Represents a pairwise similarity or distance matrix.
as.PairwiseMatrix(x, ...)# S4 method for matrix
as.PairwiseMatrix(x, ...)
# S4 method for PairwiseMatrix
as.matrix(x, ...)
an R object.
additional arguments to be passed to methods.
.Data
entries of the matrix in column-major order. Entries in the upper triangle and/or on the diagonal may be omitted.
Dim
integer vector of length 2. The dimensions of the matrix.
Diag
logical indicating whether the diagonal entries are stored in
.Data
.
If the elements being compared are from the same set, the matrix may be symmetric if the comparator is symmetric. In this case, entries in the upper triangle and/or along the diagonal may not be stored in memory, since they are redundant.