Dimensions of a caracas symbol

# S3 method for caracas_symbol
dim(x) <- value

Arguments

x

caracas symbol

value

new dimension

Examples

if (has_sympy()) {
  v <- vector_sym(4)
  v
  dim(v)
  dim(v) <- c(2, 2)
  v
  m <- matrix_sym(2, 2)
  dim(m)
  dim(m) <- c(4, 1)
  m
}
#> c: [v₁₁  v₂₁  v₁₂  v₂₂]ᵀ