symforce.databuffer module¶
- class DataBuffer(name, n=None, m=None)[source]¶
Bases:
MatrixSymbol
Custom class to make sympy’s MatrixSymbol consistent with symengine, where we have a custom 1-D Databuffer. We want to force Databuffers to be 1-D since otherwise CSE will (rightfully) treat each index as a separate expression.
- Parameters:
name (str) –
n (T.Optional[T.Scalar]) –
m (T.Optional[T.Scalar]) –
- Return type:
- default_assumptions = {'algebraic': False, 'commutative': False, 'complex': False, 'composite': False, 'even': False, 'extended_negative': False, 'extended_nonnegative': False, 'extended_nonpositive': False, 'extended_nonzero': False, 'extended_positive': False, 'extended_real': False, 'imaginary': False, 'integer': False, 'irrational': False, 'negative': False, 'noninteger': False, 'nonnegative': False, 'nonpositive': False, 'nonzero': False, 'odd': False, 'positive': False, 'prime': False, 'rational': False, 'real': False, 'transcendental': False, 'zero': False}¶
- is_algebraic = False¶
- is_complex = False¶
- is_composite = False¶
- is_even = False¶
- is_extended_negative = False¶
- is_extended_nonnegative = False¶
- is_extended_nonpositive = False¶
- is_extended_nonzero = False¶
- is_extended_positive = False¶
- is_extended_real = False¶
- is_imaginary = False¶
- is_integer = False¶
- is_irrational = False¶
- is_noninteger = False¶
- is_nonnegative = False¶
- is_nonpositive = False¶
- is_nonzero = False¶
- is_odd = False¶
- is_positive = False¶
- is_prime = False¶
- is_rational = False¶
- is_transcendental = False¶