R/mlnormal_equal_list_matrices.R

Defines functions mlnormal_equal_list_matrices

## File Name: mlnormal_equal_list_matrices.R
## File Version: 0.12


mlnormal_equal_list_matrices <- function( list_mat1, list_mat2, dim_list,
        eps=1E-30)
{
    if ( is.null(dim_list) ){
        dim_list <- length(list_mat1)
    }
    v1 <- 1
    for ( dd in 1:dim_list ){
        v1 <- v1 * mlnormal_equal_matrix( mat1=list_mat1[[dd]],
                    mat2=list_mat2[[dd]], eps=eps )
    }
    res <- if ( v1==1 ){ TRUE } else { FALSE }
    return(res)
}

Try the LAM package in your browser

Any scripts or data that you put into this service are public.

LAM documentation built on May 18, 2022, 5:17 p.m.