Skip to content

Commit

Permalink
fix: make indexed symbol real
Browse files Browse the repository at this point in the history
  • Loading branch information
rzyu45 committed Dec 28, 2024
1 parent 75d5139 commit 0b5fbcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Solverz/sym_algebra/symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class IdxSymBasic(Symbol):
"""
Basic class for Solverz indexed Symbols
"""
is_real = True

def __new__(cls, symbol, index, dim):
if not isinstance(index, (int, np.integer, list, idx, IdxSymBasic, Expr, slice, tuple)):
Expand Down

0 comments on commit 0b5fbcc

Please sign in to comment.