test_mat_size: Test to make sure that matricies are the right size

Description Usage Arguments Examples

View source: R/test_mat_size.R

Description

Test to make sure that matricies are the right size

Usage

1
test_mat_size(correct_size, mat, name)

Arguments

correct_size

the correct size of a matrix

mat

The matrix to test.

name

The name of the matrix as a string.

Examples

1
2
3
4
5
6
7
8
test_mat_size(c(2,3),zeros(2,3),"foo")

## Not run: 
  test_mat_size(c(2,3),zeros(2,6),"foo")

## End(Not run)

test_mat_size(c(1,3),c(2,6,7),"foo")

PopED documentation built on May 21, 2021, 5:08 p.m.