Special matrices: zeros_sym, ones_sym, eye_sym

zeros_sym(nrow, ncol)

ones_sym(nrow, ncol)

eye_sym(nrow, ncol)

Arguments

nrow, ncol

Number of rows and columns of output

Examples


if (has_sympy()){
  zeros_sym(3, 4)
  ones_sym(3, 4)
  eye_sym(3, 4)
}
#> c: ⎡1  0  0  0⎤
#>    ⎢          ⎥
#>    ⎢0  1  0  0⎥
#>    ⎢          ⎥
#>    ⎣0  0  1  0⎦