create a symbolic vector
v = Vec() v = Vec( a ) v = Vec( b, n )
symbolic, double, or integer matrix, or symbolic set
string
non-negative integer scalar or vector
symbolic vector
Creates a symbolic vector v. The elements of symbolic vectors are symbolic scalars (cf. Sym).
Returns an empty vector.
Returns a vector with the elements of a matrix or set a.
For a scalar n, it returns a vector of length n, whose elements are different symbols named "b" appended by an index "1",..,"n".
For a vectorial n, it returns a vector length length(n), whose elemtents are different symbols named "b" appended by an index "n(1)",..,"n(length(n))".
// create empty vector a = Vec() // add some elements to vector a = [a, Sym("5")] a = [a, Sym("1.23")] a = [a, Sym("x")] // create a vector with elements x, x, x c = Vec(Sym("x")(ones(1,3))) // create a vector with elements x1, x2, x3, x4 d = Vec("x",4) // create a vector from amatrix e = Vec(Mat("a",2,3)) | ![]() | ![]() |
SymEngine: C++ library for fast symbolic manipulation.