class_docstr: A printer to convert SymPy expressions to strings of Rust code
class_docstr_tok: ["A","printer","to","convert","SymPy","expressions","to","strings","of","Rust","code"]
code: def _print_Indexed(self, expr):
      # calculate index for 1d array
      dims = expr.shape
      elem = S.Zero
      offset = S.One
      for i in reversed(range(expr.rank)):
          elem += expr.indices[i] * offset
          offset *= dims[i]
      return "%s[%s]" % (
          self._print(expr.base.label),
          self._print(elem),
      )
  
imports: from __future__ import annotations
  from typing import Any
  from sympy.core import S, Rational, Float, Lambda
  from sympy.core.numbers import equal_valued
  from sympy.printing.codeprinter import CodePrinter
label_desc: Use image node_id 16 for calling the RustCodePrinter obj's underlying member method code with example usage: obj._print_Indexed(expr) and returns: unknown