generic-matrices {caracas}R Documentation

Generate generic vectors and matrices

Description

Generate generic vectors and matrices.

Usage

vector_sym(n, entry = "v")

matrix_sym(nrow, ncol, entry = "v")

matrix_sym_diag(nrow, entry = "v")

matrix_sym_symmetric(nrow, entry = "v")

Arguments

n

Length of vector

entry

The symbolic name of each entry.

nrow, ncol

Number of rows and columns

Examples

if (has_sympy()) {
  vector_sym(4, "b")
  matrix_sym(3, 2, "a")
  matrix_sym_diag(4, "s")
  matrix_sym_symmetric(4, "s")
}


[Package caracas version 2.1.1 Index]