Package sfc :: Package symbolic_utils :: Module symbol_factory
[hide private]
[frames] | no frames]

Module symbol_factory

source code

This module contains utility functions for creating symbols and managing symbol contexts.

Classes [hide private]
  SymbolFactory
  TempSymbolContext
Functions [hide private]
 
symbol_exists(name)
Returns a symbol from the default sfc symbol factory.
source code
 
symbol(name)
Returns a symbol from the default sfc symbol factory.
source code
 
symbolic_vector(n, name)
Returns a length n vector of symbols from the default sfc symbol factory.
source code
 
symbolic_matrix(m, n, name)
Returns a n x n matrix of symbols from the default sfc symbol factory.
source code
 
symbols(names)
Returns a list of symbols with names from the default sfc symbol factory.
source code
Variables [hide private]
  _symbol_factory = SymbolFactory()
Function Details [hide private]

symbolic_vector(n, name)

source code 

Returns a length n vector of symbols from the default sfc symbol factory. The symbols will be named 'name<i>' with i=0,...,n-1. If n > 10, <i> will be prepadded with zeros.

symbolic_matrix(m, n, name)

source code 

Returns a n x n matrix of symbols from the default sfc symbol factory. If m<10 and n<10, the symbols will be named 'name<i><j>' with i=0,...,m-1, j=0,...,n-1. If m>=10 or n>=10, the symbols will be named 'name_<i>_<j>'.

symbols(names)

source code 

Returns a list of symbols with names from the default sfc symbol factory. 'names' must be an iterable sequence of strings.