4:26
      ˆÂ‘äÇò 8àFð]}¹¿ÏÁƒh¹À¿¾  5   ˆl–äY>” ”¾R( 	ÅÝÀ=pL©‹Fÿ�þB gÞ#eÁ6çÂƒh¹ÁÀ¿      10:130
      4:12
  /   ˆ{‹„„-i[D<†ªoZƒ›Ù«Ã555_‘I|¥‰ÓMdœv ©ƒ†ü+=ÃÂ +    ‹      Å•]oÚ0…ïû+<_ìŽ¼á«[ÛÄ#HC£€(Ó4M»pbC¬&vd›Röëç�ÐÒ	ö!!*E‰íœØç9~o¢Iþm:@Ÿæ·#4ýòq4ì#Ü øÚîDó¨zÑñü&À`ŒN­-®Öëµ·n{J/a>ƒÔæYŒÕ"±³“‹ #(H9eî‰+lÆÉP2þˆÔ�ZY#w3«8Én ˜Ê.ÙBdÜc<W^j¼D©Â-ÄTbÆd;uVFC&b˜•wMõÅ¸U*3�ò¬ ZÙy�ÚL+¶)=6_Å�[v�·¶Ê¦&�MÑÍÄR†Øª“@äKdtb‰’âŒÊ{o)ÑÌ†øû°?ùát`ÓòkP”j¾ñ‡~8¾™„&cšó èaÍ­Óô0QcQ®˜XÎŽŠï*ñ�øy|Â¨ÒDÜ$ZV(ù,‡¸�š¸8
êX»Ž ÕûªJÂþ–M^„1íÍãy4œU‘°rŠgwgÙ]L¦TsiQ$4O¬Ò›š¿2óVÆ¦¸ÙuQM§Å2µ˜ Ô@•ÿÉJÞKµ–û©¸ÄæÑ“ÛÂÇ¤nìýÍYËoµ~Ë]È÷¯ý÷v®üs"¸y¨áÆÓÌ`²×9JëÝå9QžJÈù�1yÑ=Î•×ýüJ8�/qNRh­nóœ»SP›ÖeöÔ<Fó²ýŒüWB}Š°=Ó¨ÎÝ_5õÏÚ    6   	ˆl–ßi~”ji?u	Aà¸”Å£�þ]yÐ,ÙdyÒŒAŒ`óÆ„d2/ÅÄÃ ?÷     	#### Tools for Package Testing --- in Matrix, sourced by ./test-tools.R
#### -------------------------

### ------- Part III --  "Matrix" (classes) specific ----------------------

## lower.tri() and upper.tri()  -- masking  base definitions
##	R/src/library/base/R/lower.tri.R
##	R/src/library/base/R/upper.tri.R
## but we do __not__ want to coerce to "base R" 'matrix' via as.matrix():
##
lower.tri <- function(x, diag = FALSE) if(diag) row(x) >= col(x) else row(x) > col(x)
upper.tri <- function(x, diag = FALSE) if(diag) row(x) <= col(x) else row(x) < col(x)

lsM <- function(...) {
    for(n in ls(..., envir=parent.frame()))
        if(is((. <- get(n)),"Matrix"))
            cat(sprintf("%5s: '%s' [%d x %d]\n",n,class(.), nrow(.),ncol(.)))
}

asD <- function(m) { ## as "Dense"
    if(canCoerce(m, "denseMatrix")) as(m, "denseMatrix")
    else if(canCoerce(m, (cl <- paste(.M.kind(m), "denseMatrix", sep=''))))
        as(m, cl)
    else if(canCoerce(m, "dgeMatrix")) as(m, "dgeMatrix")
    else stop("cannot coerce to a typical dense Matrix")
}

## "normal" sparse Matrix: Csparse, no diag="U"
asCsp <- function(x) diagU2N(as(x, "CsparseMatrix"))

##' @title quasi-identical dimnames
Qidentical.DN <- function(dx, dy) {

    stopifnot(is.list(dx) || is.null(dx),
	      is.list(dy) || is.null(dy))
    ## "empty"
    (is.null.DN(dx) && is.null.DN(dy)) || identical(dx, dy)
}

##' quasi-identical()  for 'Matrix' matrices
Qidentical <- function(x,y, strictClass = TRUE) {
    if(!identical(class(x), cy <- class(y))) {
        if(strictClass || !is(x, cy))
           return(FALSE)
        ## else try further
    }
    slts <- slotNames(x) ## MJ: should be slotNames(y), since is(x, class(y)) ??
    if("Dimnames" %in% slts) { ## always (or we have no 'Matrix')
	slts <- slts[slts != "Dimnames"]
	if(!Qidentical.DN(x@Dimnames, y@Dimnames) &&
	   ## allow for "completion" of (NULL, <names>) dimnames of symmetricMatrix:
	   !Qidentical.DN(dimnames(x), dimnames(y)))
	    return(FALSE)
    }
    if("factors" %in% slts) { ## allow one empty and one non-empty 'factors'
        slts <- slts[slts != "factors"]
        ## if both are not empty, they must be the same:
        if(length(xf <- x@factors) && length(yf <- y@factors))
            if(!identical(xf, yf)) return(FALSE)
    }
    for(sl in slts)
        if(!identical(slot(x,sl), slot(y,sl)))
            return(FALSE)
    TRUE
}

## MJ: It seems intuitive to allow either of is(x, class(y))
##     and is(y, class(x)) when strictClass=FALSE ...
.MJ.Qidentical <- function(x, y, strictClass = TRUE, skipSlots = NULL) {
    isxy <- identical(cx <- class(x), cy <- class(y))
    if (!isxy) {
        if (strictClass)
            return(FALSE)
        isxy <- is(x, cy)
        if (!(isxy || is(y, cx)))
            return(FALSE)
        ## else try further
    }
    slts <- slotNames(if (isxy) y else x)
    if (length(skipSlots))
        slts <- setdiff(slts, skipSlots)
    if ("Dimnames" %in% slts) { ## always, or we have no "Matrix"
	## allow symmetrization of 'Dimnames' for "symmetricMatrix" :
	slts <- slts[slts != "Dimnames"]
        if(!Qidentical.DN(x@Dimnames, y@Dimnames) &&
	   !Qidentical.DN(dimnames(x), dimnames(y)))
	    return(FALSE)
    }
    if ("factors" %in% slts) {
        ## 