generic-matrices: Generate generic vectors and matrices

generic-matricesR 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")
}


caracas documentation built on June 22, 2024, 10:59 a.m.