Skip to content

Commit

Permalink
really suppress messages
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/destiny@124408 bc3139a8-67e5-0310-9ffc-ced21a209358
  • Loading branch information
Philipp Angerer committed Nov 23, 2016
1 parent 3cecda6 commit 675b5ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/diffusionmap.r
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,12 @@ no_censoring <- function(imputed_data, sigma, distance, dists, cb) {
# TODO: optimize local sigma no-censoring case
stopifnot(d2@uplo == 'U')
mask <- d2 != 0 & upper.tri(dists)
m <- function(mat) suppressWarnings(as(mat, 'dsCMatrix')[mask]) # suppress warning about "inefficient .M.sub.i.logical"
m <- function(mat) suppressMessages(as(mat, 'dsCMatrix')[mask]) # suppress warning about "inefficient .M.sub.i.logical"

S1 <- m(tcrossprod(Matrix(sigma)))
S2 <- m(outer(sigma ^ 2, sigma ^ 2, '+'))

sqrt(2 * S1 / S2) * exp(-d2@x / S2)
sqrt(2 * S1 / S2) * exp(-d2@x / (2*S2))
}

sparseMatrix(d2@i, p = d2@p, x = t_p, dims = dim(d2), symmetric = TRUE, index1 = FALSE)
Expand Down

0 comments on commit 675b5ea

Please sign in to comment.