symbolic vector predicate
t = isVector( s )
symbolic
boolean
Returns true (%t) if symbolic s is a vector and false (%f) otherwise.
Please note, that symbolic (1,n)- or (n,1)-matrices are not vectors in the context of this predicate function.
// some symbolics a = Sym("1.234+x") b = Vec("x",3) c = Mat(a(ones(3,1))) // what is a vector? isVector(a) isVector(b) isVector(c) | ![]() | ![]() |
SymEngine: C++ library for fast symbolic manipulation.