CppADCodeGen 2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
Loading...
Searching...
No Matches
CppAD::cg::LanguageLatex< Base > Class Template Reference

#include <language_latex.hpp>

Inheritance diagram for CppAD::cg::LanguageLatex< Base >:
Inheritance graph
Collaboration diagram for CppAD::cg::LanguageLatex< Base >:
Collaboration graph

Public Types

using Node = OperationNode< Base >
 
using Arg = Argument< Base >
 

Public Member Functions

 LanguageLatex ()
 
const std::string & getAssignString () const
 
void setAssignString (const std::string &assign)
 
bool isIgnoreZeroDepAssign () const
 
void setIgnoreZeroDepAssign (bool ignore)
 
virtual void setFilename (const std::string &name)
 
virtual void setVariableEnvironment (const std::string &begin, const std::string &end)
 
virtual const std::string & getVariableEnvironmentStart () const
 
virtual const std::string & getVariableEnvironmentEnd () const
 
virtual void setDependentVarEnvironment (const std::string &begin, const std::string &end)
 
virtual const std::string & getDependentVarEnvironmentStart () const
 
virtual const std::string & getDependentVarEnvironmentEnd () const
 
virtual void setIndependentVarEnvironment (const std::string &begin, const std::string &end)
 
virtual const std::string & getIndependentVarEnvironmentStart () const
 
virtual const std::string & getIndependentVarEnvironmentEnd () const
 
virtual void setEquationEnvironment (const std::string &begin, const std::string &end)
 
virtual const std::string & getEquationEnvironmentStart () const
 
virtual const std::string & getEquationEnvironmentEnd () const
 
virtual void setAlgorithmLineEnvironment (const std::string &begin, const std::string &end)
 
virtual const std::string & getAlgorithmLineEnvironmentStart () const
 
virtual const std::string & getAlgorithmLineEnvironmentEnd () const
 
virtual void setEquationBlockEnvironment (const std::string &begin, const std::string &end)
 
virtual const std::string & getEquationBlockEnvironmentStart () const
 
virtual const std::string & getEquationBlockEnvironmentEnd () const
 
virtual void setAgorithmFileEnvironment (const std::string &begin, const std::string &end)
 
virtual const std::string & getAgorithmFileEnvironmentStart () const
 
virtual const std::string & getAgorithmFileEnvironmentEnd () const
 
virtual void setForEnvironment (const std::string &begin, const std::string &end)
 
virtual const std::string & getForEnvironmentStart () const
 
virtual const std::string & getForEnvironmentEnd () const
 
virtual void setConditionEnvironment (const std::string &begin, const std::string &end)
 
virtual const std::string & getConditionEnvironmentStart () const
 
virtual const std::string & getConditionEnvironmentEnd () const
 
virtual void setIfEnvironment (const std::string &begin, const std::string &end)
 
virtual const std::string & getIfEnvironmentStart () const
 
virtual const std::string & getIfEnvironmentEnd () const
 
virtual void setElseIfEnvironment (const std::string &begin, const std::string &end)
 
virtual const std::string & getElseIfEnvironmentStart () const
 
virtual const std::string & getElseIfEnvironmentEnd () const
 
virtual void setElseEnvironment (const std::string &begin, const std::string &end)
 
virtual const std::string & getElseEnvironmentStart () const
 
virtual const std::string & getElseEnvironmentEnd () const
 
virtual size_t getParameterPrecision () const
 
virtual void setParameterPrecision (size_t p)
 
virtual void setAlwaysEnclosePowBase (bool enclose)
 
virtual bool isAlwaysEnclosePowBase () const
 
const std::string & getMultiplicationOperator () const
 
void setMultiplicationOperator (const std::string &multOpStr)
 
const std::string & getMultiplicationConstParOperator () const
 
void setMultiplicationConstParOperator (const std::string &multValOpStr)
 
virtual void setMaxAssignmentsPerFunction (size_t maxAssignmentsPerFunction, std::map< std::string, std::string > *sources)
 
void printStaticIndexArray (std::ostringstream &os, const std::string &name, const std::vector< size_t > &values)
 
void printStaticIndexMatrix (std::ostringstream &os, const std::string &name, const std::map< size_t, std::map< size_t, size_t > > &values)
 
void printRandomIndexPatternDeclaration (std::ostringstream &os, const std::string &identation, const std::set< RandomIndexPattern * > &randomPatterns)
 

Static Public Member Functions

static void printIndexCondExpr (std::ostringstream &out, const std::vector< size_t > &info, const std::string &index)
 
static void generateNames4RandomIndexPatterns (const std::set< RandomIndexPattern * > &randomPatterns)
 
static std::string indexPattern2String (const IndexPattern &ip, const Node &index)
 
static std::string indexPattern2String (const IndexPattern &ip, const std::vector< const Node * > &indexes)
 
static std::string linearIndexPattern2String (const LinearIndexPattern &lip, const Node &index)
 

Protected Member Functions

void generateSourceCode (std::ostream &out, std::unique_ptr< LanguageGenerationData< Base > > info) override
 
size_t getVariableID (const Node &node) const
 
virtual void printAlgorithmFileStart (std::ostream &out)
 
virtual void printAlgorithmFileEnd (std::ostream &out)
 
virtual void checkEquationEnvStart ()
 
virtual void checkEquationEnvEnd ()
 
unsigned printAssignment (Node &node)
 
unsigned printAssignment (Node &nodeName, const Arg &nodeRhs)
 
unsigned printAssignment (Node &nodeName, Node &nodeRhs)
 
virtual void printAssignmentStart (Node &op)
 
virtual void printAssignmentStart (Node &node, const std::string &varName, bool isDep)
 
virtual void printAssignmentEnd ()
 
virtual void printAssignmentEnd (Node &op)
 
virtual void saveLocalFunction (std::vector< std::string > &localFuncNames, bool zeroDependentArray)
 
bool createsNewVariable (const Node &var, size_t totalUseCount, size_t opCount) const override
 
virtual bool requiresVariableName (const Node &var) const
 
virtual bool directlyAssignsVariable (const Node &var) const
 
bool requiresVariableArgument (enum CGOpCode op, size_t argIndex) const override
 
const std::string & createVariableName (Node &var)
 
bool requiresVariableDependencies () const override
 
virtual void printIndependentVariableName (Node &op)
 
virtual unsigned print (const Arg &arg)
 
virtual unsigned printExpression (Node &node)
 
virtual unsigned printExpressionNoVarCheck (Node &node)
 
virtual unsigned printAssignOp (Node &node)
 
virtual void printUnaryFunction (Node &op)
 
virtual void printPowFunction (Node &op)
 
virtual unsigned printOperationAlias (Node &op)
 
virtual void printOperationAdd (Node &op)
 
virtual void printOperationMinus (Node &op)
 
virtual void printOperationDiv (Node &op)
 
bool encloseInParenthesesMul (const Arg &arg) const
 
bool encloseInParenthesesMul (const Node *node) const
 
virtual void printOperationMul (Node &op)
 
virtual void printOperationUnaryMinus (Node &op)
 
virtual void printConditionalAssignment (Node &node)
 
bool isSameArgument (const Arg &newArg, const Arg *oldArg)
 
virtual void printArrayCreationOp (Node &op)
 
virtual void printSparseArrayCreationOp (Node &op)
 
void printArrayStructInit (const std::string &dataArrayName, size_t pos, const std::vector< Node * > &arrays, size_t k)
 
void printArrayStructInit (const std::string &dataArrayName, Node &array)
 
void markArrayChanged (Node &ty)
 
size_t printArrayCreationUsingLoop (size_t startPos, Node &array, size_t startj, std::vector< const Arg * > &tmpArrayValues)
 
std::string getTempArrayName (const Node &op)
 
virtual void printArrayElementOp (Node &op)
 
virtual void printAtomicForwardOp (Node &atomicFor)
 
virtual void printAtomicReverseOp (Node &atomicRev)
 
virtual unsigned printDependentMultiAssign (Node &node)
 
virtual void printLoopStart (Node &node)
 
virtual void printLoopEnd (Node &node)
 
virtual void printLoopIndexedDep (Node &node)
 
virtual void printLoopIndexedIndep (Node &node)
 
virtual void printLoopIndexedTmp (Node &node)
 
virtual void printTmpVar (Node &node)
 
virtual void printIndexAssign (Node &node)
 
virtual void printIndexCondExprOp (Node &node)
 
virtual void printStartIf (Node &node)
 
virtual void printElseIf (Node &node)
 
virtual void printElse (Node &node)
 
virtual void printEndIf (Node &node)
 
virtual void printCondResult (Node &node)
 
virtual void printUserCustom (Node &node)
 
bool isDependent (const Node &arg) const
 
virtual void printParameter (const Base &value)
 
virtual const std::string & getComparison (enum CGOpCode op) const
 
const std::string & getPrintfBaseFormat ()
 

Static Protected Member Functions

static bool isFunction (enum CGOpCode op)
 
static bool isUnaryFunction (enum CGOpCode op)
 
static bool isCondAssign (enum CGOpCode op)
 

Protected Attributes

LanguageGenerationData< Base > * _info
 
size_t _indentationLevel
 
std::string _startVar
 
std::string _endVar
 
std::string _startDepVar
 
std::string _endDepVar
 
std::string _startIndepVar
 
std::string _endIndepVar
 
std::string _startEq
 
std::string _endEq
 
std::string _startAlgLine
 
std::string _endAlgLine
 
std::string _startEqBlock
 
std::string _endEqBlock
 
std::string _algFileStart
 
std::string _algFileEnd
 
std::string _forStart
 
std::string _forEnd
 
std::string _conditionStart
 
std::string _conditionEnd
 
std::string _ifStart
 
std::string _ifEnd
 
std::string _elseIfStart
 
std::string _elseIfEnd
 
std::string _elseStart
 
std::string _elseEnd
 
std::string _assignStr
 
std::string _multOpStr
 
std::string _multValOpStr
 
std::string _endline
 
std::ostringstream _code
 
VariableNameGenerator< Base > * _nameGen
 
std::ostringstream _ss
 
size_t _independentSize
 
size_t _minTemporaryVarID
 
std::map< size_t, size_t > _dependentIDs
 
const ArrayView< CG< Base > > * _dependent
 
std::map< size_t, Node * > _temporary
 
bool _ignoreZeroDepAssign
 
std::string _filename
 
size_t _maxAssignmentsPerFile
 
std::map< std::string, std::string > * _sources
 
std::vector< const Arg * > _tmpArrayValues
 
std::vector< const Arg * > _tmpSparseArrayValues
 
std::vector< const LoopStartOperationNode< Base > * > _currentLoops
 
size_t _parameterPrecision
 
bool _inEquationEnv
 
bool _powBaseEnclose
 

Static Protected Attributes

static const std::string _C_STATIC_INDEX_ARRAY = "index"
 
static const std::string _C_SPARSE_INDEX_ARRAY = "idx"
 
static const std::string _COMP_OP_LT = "<"
 
static const std::string _COMP_OP_LE = "\\le"
 
static const std::string _COMP_OP_EQ = "=="
 
static const std::string _COMP_OP_GE = "\\ge"
 
static const std::string _COMP_OP_GT = ">"
 
static const std::string _COMP_OP_NE = "\\ne"
 
static const std::string _ATOMIC_TX = "atx"
 
static const std::string _ATOMIC_TY = "aty"
 
static const std::string _ATOMIC_PX = "apx"
 
static const std::string _ATOMIC_PY = "apy"
 

Detailed Description

template<class Base>
class CppAD::cg::LanguageLatex< Base >

Generates code for the Latex language. It creates a generic implementation using custom latex environments which must be implemented by the user.

Author
Joao Leal

Definition at line 30 of file language_latex.hpp.

Member Typedef Documentation

◆ Arg

template<class Base >
using CppAD::cg::LanguageLatex< Base >::Arg = Argument<Base>

Definition at line 33 of file language_latex.hpp.

◆ Node

template<class Base >
using CppAD::cg::LanguageLatex< Base >::Node = OperationNode<Base>

Definition at line 32 of file language_latex.hpp.

Constructor & Destructor Documentation

◆ LanguageLatex()

template<class Base >
CppAD::cg::LanguageLatex< Base >::LanguageLatex ( )
inline

Creates a Latex language source code generator

Definition at line 140 of file language_latex.hpp.

Member Function Documentation

◆ checkEquationEnvEnd()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::checkEquationEnvEnd ( )
inlineprotectedvirtual

Definition at line 962 of file language_latex.hpp.

◆ checkEquationEnvStart()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::checkEquationEnvStart ( )
inlineprotectedvirtual

Definition at line 955 of file language_latex.hpp.

◆ createsNewVariable()

template<class Base >
bool CppAD::cg::LanguageLatex< Base >::createsNewVariable ( const Node op,
size_t  totalUseCount,
size_t  opCount 
) const
inlineoverrideprotectedvirtual

Whether or not a new variable is created as a result of this operation

Parameters
opOperation
totalUseCountthe number of times this node has been used as an argument in other operations
Returns
true if a new variable is created

Implements CppAD::cg::Language< Base >.

Definition at line 1060 of file language_latex.hpp.

◆ createVariableName()

template<class Base >
const std::string & CppAD::cg::LanguageLatex< Base >::createVariableName ( Node var)
inlineprotected

Definition at line 1133 of file language_latex.hpp.

◆ directlyAssignsVariable()

template<class Base >
virtual bool CppAD::cg::LanguageLatex< Base >::directlyAssignsVariable ( const Node var) const
inlineprotectedvirtual

Whether or not this operation assign its expression to a variable by itself.

Parameters
varthe operation node
Returns

Definition at line 1110 of file language_latex.hpp.

◆ encloseInParenthesesMul() [1/2]

template<class Base >
bool CppAD::cg::LanguageLatex< Base >::encloseInParenthesesMul ( const Arg arg) const
inlineprotected

Definition at line 1565 of file language_latex.hpp.

◆ encloseInParenthesesMul() [2/2]

template<class Base >
bool CppAD::cg::LanguageLatex< Base >::encloseInParenthesesMul ( const Node node) const
inlineprotected

Definition at line 1573 of file language_latex.hpp.

◆ generateNames4RandomIndexPatterns()

template<class Base >
void CppAD::cg::LanguageLatex< Base >::generateNames4RandomIndexPatterns ( const std::set< RandomIndexPattern * > &  randomPatterns)
inlinestatic

Definition at line 23 of file language_latex_index_patterns.hpp.

◆ generateSourceCode()

template<class Base >
void CppAD::cg::LanguageLatex< Base >::generateSourceCode ( std::ostream &  out,
std::unique_ptr< LanguageGenerationData< Base > >  info 
)
inlineoverrideprotectedvirtual

generate index array names (might be used for variable names)

generate variable names

function variable declaration

Determine the dependent variables that result from the same operations

non-constant variables

Source code generation magic!

Create the master latex file which inputs the other files

encapsulate the code in a function

Implements CppAD::cg::Language< Base >.

Definition at line 683 of file language_latex.hpp.

◆ getAgorithmFileEnvironmentEnd()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getAgorithmFileEnvironmentEnd ( ) const
inlinevirtual

Provides the string used to terminate the environment for each algorithm file.

Definition at line 385 of file language_latex.hpp.

◆ getAgorithmFileEnvironmentStart()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getAgorithmFileEnvironmentStart ( ) const
inlinevirtual

Provides the string used to create the environment for each algorithm file.

Definition at line 378 of file language_latex.hpp.

◆ getAlgorithmLineEnvironmentEnd()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getAlgorithmLineEnvironmentEnd ( ) const
inlinevirtual

Provides the string used to terminate the environment for each line.

Definition at line 330 of file language_latex.hpp.

◆ getAlgorithmLineEnvironmentStart()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getAlgorithmLineEnvironmentStart ( ) const
inlinevirtual

Provides the string used to create the environment for each line.

Definition at line 323 of file language_latex.hpp.

◆ getAssignString()

template<class Base >
const std::string & CppAD::cg::LanguageLatex< Base >::getAssignString ( ) const
inline

Definition at line 184 of file language_latex.hpp.

◆ getComparison()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getComparison ( enum CGOpCode  op) const
inlineprotectedvirtual

Definition at line 2091 of file language_latex.hpp.

◆ getConditionEnvironmentEnd()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getConditionEnvironmentEnd ( ) const
inlinevirtual

Provides the string used to terminate the environment for each condition.

Definition at line 437 of file language_latex.hpp.

◆ getConditionEnvironmentStart()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getConditionEnvironmentStart ( ) const
inlinevirtual

Provides the string used to create the environment for each condition.

Definition at line 430 of file language_latex.hpp.

◆ getDependentVarEnvironmentEnd()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getDependentVarEnvironmentEnd ( ) const
inlinevirtual

Provides the string used to terminate the environment for each dependent variable.

Definition at line 252 of file language_latex.hpp.

◆ getDependentVarEnvironmentStart()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getDependentVarEnvironmentStart ( ) const
inlinevirtual

Provides the string used to create the environment for each dependent variable.

Definition at line 245 of file language_latex.hpp.

◆ getElseEnvironmentEnd()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getElseEnvironmentEnd ( ) const
inlinevirtual

Provides the string used to terminate the environment for each else.

Definition at line 515 of file language_latex.hpp.

◆ getElseEnvironmentStart()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getElseEnvironmentStart ( ) const
inlinevirtual

Provides the string used to create the environment for each else.

Definition at line 508 of file language_latex.hpp.

◆ getElseIfEnvironmentEnd()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getElseIfEnvironmentEnd ( ) const
inlinevirtual

Provides the string used to terminate the environment for each else if.

Definition at line 489 of file language_latex.hpp.

◆ getElseIfEnvironmentStart()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getElseIfEnvironmentStart ( ) const
inlinevirtual

Provides the string used to create the environment for each else if.

Definition at line 482 of file language_latex.hpp.

◆ getEquationBlockEnvironmentEnd()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getEquationBlockEnvironmentEnd ( ) const
inlinevirtual

Provides the string used to terminate the environment for each equation block which can contain multiple equation lines with the same indentation.

Definition at line 359 of file language_latex.hpp.

◆ getEquationBlockEnvironmentStart()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getEquationBlockEnvironmentStart ( ) const
inlinevirtual

Provides the string used to create the environment for each equation block which can contain multiple equation lines with the same indentation.

Definition at line 351 of file language_latex.hpp.

◆ getEquationEnvironmentEnd()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getEquationEnvironmentEnd ( ) const
inlinevirtual

Provides the string used to terminate the environment for each equation.

Definition at line 304 of file language_latex.hpp.

◆ getEquationEnvironmentStart()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getEquationEnvironmentStart ( ) const
inlinevirtual

Provides the string used to create the environment for each equation.

Definition at line 297 of file language_latex.hpp.

◆ getForEnvironmentEnd()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getForEnvironmentEnd ( ) const
inlinevirtual

Provides the string used to terminate the environment for each for loop.

Definition at line 411 of file language_latex.hpp.

◆ getForEnvironmentStart()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getForEnvironmentStart ( ) const
inlinevirtual

Provides the string used to create the environment for each for loop.

Definition at line 404 of file language_latex.hpp.

◆ getIfEnvironmentEnd()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getIfEnvironmentEnd ( ) const
inlinevirtual

Provides the string used to terminate the environment for each If.

Definition at line 463 of file language_latex.hpp.

◆ getIfEnvironmentStart()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getIfEnvironmentStart ( ) const
inlinevirtual

Provides the string used to create the environment for each If.

Definition at line 456 of file language_latex.hpp.

◆ getIndependentVarEnvironmentEnd()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getIndependentVarEnvironmentEnd ( ) const
inlinevirtual

Provides the string used to terminate the environment for each independent variable.

Definition at line 278 of file language_latex.hpp.

◆ getIndependentVarEnvironmentStart()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getIndependentVarEnvironmentStart ( ) const
inlinevirtual

Provides the string used to create the environment for each independent variable.

Definition at line 271 of file language_latex.hpp.

◆ getMultiplicationConstParOperator()

template<class Base >
const std::string & CppAD::cg::LanguageLatex< Base >::getMultiplicationConstParOperator ( ) const
inline

Provides the operator used for multiplication of constant parameters. The default is "\times".

Definition at line 589 of file language_latex.hpp.

◆ getMultiplicationOperator()

template<class Base >
const std::string & CppAD::cg::LanguageLatex< Base >::getMultiplicationOperator ( ) const
inline

Provides the operator used to define multiplications. The default is an empty space.

Note
Multiplications of constant parameters use a different multiplication markup string

Definition at line 569 of file language_latex.hpp.

◆ getParameterPrecision()

template<class Base >
virtual size_t CppAD::cg::LanguageLatex< Base >::getParameterPrecision ( ) const
inlinevirtual

Provides the maximum precision used to print constant values in the generated source code

Returns
the maximum number of digits

Definition at line 525 of file language_latex.hpp.

◆ getPrintfBaseFormat()

template<class Base >
const std::string & CppAD::cg::LanguageLatex< Base >::getPrintfBaseFormat ( )
inlineprotected

Definition at line 2118 of file language_latex.hpp.

◆ getTempArrayName()

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::getTempArrayName ( const Node op)
inlineprotected

Definition at line 283 of file language_latex_arrays.hpp.

◆ getVariableEnvironmentEnd()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getVariableEnvironmentEnd ( ) const
inlinevirtual

Provides the string used to terminate the environment for each variable.

Definition at line 226 of file language_latex.hpp.

◆ getVariableEnvironmentStart()

template<class Base >
virtual const std::string & CppAD::cg::LanguageLatex< Base >::getVariableEnvironmentStart ( ) const
inlinevirtual

Provides the string used to create the environment for each variable.

Definition at line 219 of file language_latex.hpp.

◆ getVariableID()

template<class Base >
size_t CppAD::cg::LanguageLatex< Base >::getVariableID ( const Node node) const
inlineprotected

Definition at line 942 of file language_latex.hpp.

◆ indexPattern2String() [1/2]

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::indexPattern2String ( const IndexPattern ip,
const Node index 
)
inlinestatic

Definition at line 154 of file language_latex_index_patterns.hpp.

◆ indexPattern2String() [2/2]

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::indexPattern2String ( const IndexPattern ip,
const std::vector< const Node * > &  indexes 
)
inlinestatic

Definition at line 160 of file language_latex_index_patterns.hpp.

◆ isAlwaysEnclosePowBase()

template<class Base >
virtual bool CppAD::cg::LanguageLatex< Base >::isAlwaysEnclosePowBase ( ) const
inlinevirtual

Whether or not to always enclose the base of a power within parenthesis.

Returns
true if the base is always enclosed within parenthesis

Definition at line 557 of file language_latex.hpp.

◆ isCondAssign()

template<class Base >
static bool CppAD::cg::LanguageLatex< Base >::isCondAssign ( enum CGOpCode  op)
inlinestaticprotected

Definition at line 2158 of file language_latex.hpp.

◆ isDependent()

template<class Base >
bool CppAD::cg::LanguageLatex< Base >::isDependent ( const Node arg) const
inlineprotected

Definition at line 2061 of file language_latex.hpp.

◆ isFunction()

template<class Base >
static bool CppAD::cg::LanguageLatex< Base >::isFunction ( enum CGOpCode  op)
inlinestaticprotected

Definition at line 2123 of file language_latex.hpp.

◆ isIgnoreZeroDepAssign()

template<class Base >
bool CppAD::cg::LanguageLatex< Base >::isIgnoreZeroDepAssign ( ) const
inline

Definition at line 192 of file language_latex.hpp.

◆ isSameArgument()

template<class Base >
bool CppAD::cg::LanguageLatex< Base >::isSameArgument ( const Arg newArg,
const Arg oldArg 
)
inlineprotected

Definition at line 1702 of file language_latex.hpp.

◆ isUnaryFunction()

template<class Base >
static bool CppAD::cg::LanguageLatex< Base >::isUnaryFunction ( enum CGOpCode  op)
inlinestaticprotected

Definition at line 2127 of file language_latex.hpp.

◆ linearIndexPattern2String()

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::linearIndexPattern2String ( const LinearIndexPattern lip,
const Node index 
)
inlinestatic

Definition at line 234 of file language_latex_index_patterns.hpp.

◆ markArrayChanged()

template<class Base >
void CppAD::cg::LanguageLatex< Base >::markArrayChanged ( Node ty)
inlineprotected

Definition at line 353 of file language_latex_arrays.hpp.

◆ print()

template<class Base >
virtual unsigned CppAD::cg::LanguageLatex< Base >::print ( const Arg arg)
inlineprotectedvirtual

Definition at line 1199 of file language_latex.hpp.

◆ printAlgorithmFileEnd()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printAlgorithmFileEnd ( std::ostream &  out)
inlineprotectedvirtual

Definition at line 951 of file language_latex.hpp.

◆ printAlgorithmFileStart()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printAlgorithmFileStart ( std::ostream &  out)
inlineprotectedvirtual

Definition at line 946 of file language_latex.hpp.

◆ printArrayCreationOp()

template<class Base >
void CppAD::cg::LanguageLatex< Base >::printArrayCreationOp ( Node op)
protectedvirtual

Definition at line 23 of file language_latex_arrays.hpp.

◆ printArrayCreationUsingLoop()

template<class Base >
size_t CppAD::cg::LanguageLatex< Base >::printArrayCreationUsingLoop ( size_t  startPos,
Node array,
size_t  startj,
std::vector< const Arg * > &  tmpArrayValues 
)
inlineprotected

from independents array

from independents array in a loop

constant value?

print the loop

update values in the global temporary array

Definition at line 140 of file language_latex_arrays.hpp.

◆ printArrayElementOp()

template<class Base >
void CppAD::cg::LanguageLatex< Base >::printArrayElementOp ( Node op)
protectedvirtual

Definition at line 291 of file language_latex_arrays.hpp.

◆ printArrayStructInit() [1/2]

template<class Base >
void CppAD::cg::LanguageLatex< Base >::printArrayStructInit ( const std::string &  dataArrayName,
Node array 
)
inlineprotected

TODO: finish this

Definition at line 317 of file language_latex_arrays.hpp.

◆ printArrayStructInit() [2/2]

template<class Base >
void CppAD::cg::LanguageLatex< Base >::printArrayStructInit ( const std::string &  dataArrayName,
size_t  pos,
const std::vector< Node * > &  arrays,
size_t  k 
)
inlineprotected

Definition at line 307 of file language_latex_arrays.hpp.

◆ printAssignment() [1/3]

template<class Base >
unsigned CppAD::cg::LanguageLatex< Base >::printAssignment ( Node node)
inlineprotected

Definition at line 969 of file language_latex.hpp.

◆ printAssignment() [2/3]

template<class Base >
unsigned CppAD::cg::LanguageLatex< Base >::printAssignment ( Node nodeName,
const Arg nodeRhs 
)
inlineprotected

Definition at line 973 of file language_latex.hpp.

◆ printAssignment() [3/3]

template<class Base >
unsigned CppAD::cg::LanguageLatex< Base >::printAssignment ( Node nodeName,
Node nodeRhs 
)
inlineprotected

Definition at line 985 of file language_latex.hpp.

◆ printAssignmentEnd() [1/2]

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printAssignmentEnd ( )
inlineprotectedvirtual

Definition at line 1034 of file language_latex.hpp.

◆ printAssignmentEnd() [2/2]

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printAssignmentEnd ( Node op)
inlineprotectedvirtual

Definition at line 1038 of file language_latex.hpp.

◆ printAssignmentStart() [1/2]

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printAssignmentStart ( Node node,
const std::string &  varName,
bool  isDep 
)
inlineprotectedvirtual

Definition at line 1013 of file language_latex.hpp.

◆ printAssignmentStart() [2/2]

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printAssignmentStart ( Node op)
inlineprotectedvirtual

Definition at line 1009 of file language_latex.hpp.

◆ printAssignOp()

template<class Base >
virtual unsigned CppAD::cg::LanguageLatex< Base >::printAssignOp ( Node node)
inlineprotectedvirtual

Definition at line 1378 of file language_latex.hpp.

◆ printAtomicForwardOp()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printAtomicForwardOp ( Node atomicFor)
inlineprotectedvirtual

the values of ty are now changed

Definition at line 1739 of file language_latex.hpp.

◆ printAtomicReverseOp()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printAtomicReverseOp ( Node atomicRev)
inlineprotectedvirtual

the values of px are now changed

Definition at line 1778 of file language_latex.hpp.

◆ printConditionalAssignment()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printConditionalAssignment ( Node node)
inlineprotectedvirtual

Definition at line 1658 of file language_latex.hpp.

◆ printCondResult()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printCondResult ( Node node)
inlineprotectedvirtual

Definition at line 2044 of file language_latex.hpp.

◆ printDependentMultiAssign()

template<class Base >
virtual unsigned CppAD::cg::LanguageLatex< Base >::printDependentMultiAssign ( Node node)
inlineprotectedvirtual

Definition at line 1825 of file language_latex.hpp.

◆ printElse()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printElse ( Node node)
inlineprotectedvirtual

the first argument is the if start node, the following arguments are assignments in the previous if branch

Definition at line 2002 of file language_latex.hpp.

◆ printElseIf()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printElseIf ( Node node)
inlineprotectedvirtual

the first argument is the condition, the second argument is the if start node, the following arguments are assignments in the previous if branch

Definition at line 1968 of file language_latex.hpp.

◆ printEndIf()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printEndIf ( Node node)
inlineprotectedvirtual

Definition at line 2027 of file language_latex.hpp.

◆ printExpression()

template<class Base >
virtual unsigned CppAD::cg::LanguageLatex< Base >::printExpression ( Node node)
inlineprotectedvirtual

Definition at line 1210 of file language_latex.hpp.

◆ printExpressionNoVarCheck()

template<class Base >
virtual unsigned CppAD::cg::LanguageLatex< Base >::printExpressionNoVarCheck ( Node node)
inlineprotectedvirtual

Definition at line 1236 of file language_latex.hpp.

◆ printIndependentVariableName()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printIndependentVariableName ( Node op)
inlineprotectedvirtual

Definition at line 1193 of file language_latex.hpp.

◆ printIndexAssign()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printIndexAssign ( Node node)
inlineprotectedvirtual

Definition at line 1915 of file language_latex.hpp.

◆ printIndexCondExpr()

template<class Base >
static void CppAD::cg::LanguageLatex< Base >::printIndexCondExpr ( std::ostringstream &  out,
const std::vector< size_t > &  info,
const std::string &  index 
)
inlinestatic

Definition at line 615 of file language_latex.hpp.

◆ printIndexCondExprOp()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printIndexCondExprOp ( Node node)
inlineprotectedvirtual

Definition at line 1930 of file language_latex.hpp.

◆ printLoopEnd()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printLoopEnd ( Node node)
inlineprotectedvirtual

Definition at line 1868 of file language_latex.hpp.

◆ printLoopIndexedDep()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printLoopIndexedDep ( Node node)
inlineprotectedvirtual

Definition at line 1880 of file language_latex.hpp.

◆ printLoopIndexedIndep()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printLoopIndexedIndep ( Node node)
inlineprotectedvirtual

Definition at line 1887 of file language_latex.hpp.

◆ printLoopIndexedTmp()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printLoopIndexedTmp ( Node node)
inlineprotectedvirtual

Definition at line 1897 of file language_latex.hpp.

◆ printLoopStart()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printLoopStart ( Node node)
inlineprotectedvirtual

Definition at line 1848 of file language_latex.hpp.

◆ printOperationAdd()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printOperationAdd ( Node op)
inlineprotectedvirtual

Definition at line 1506 of file language_latex.hpp.

◆ printOperationAlias()

template<class Base >
virtual unsigned CppAD::cg::LanguageLatex< Base >::printOperationAlias ( Node op)
inlineprotectedvirtual

Definition at line 1501 of file language_latex.hpp.

◆ printOperationDiv()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printOperationDiv ( Node op)
inlineprotectedvirtual

Definition at line 1550 of file language_latex.hpp.

◆ printOperationMinus()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printOperationMinus ( Node op)
inlineprotectedvirtual

Definition at line 1524 of file language_latex.hpp.

◆ printOperationMul()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printOperationMul ( Node op)
inlineprotectedvirtual

Definition at line 1590 of file language_latex.hpp.

◆ printOperationUnaryMinus()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printOperationUnaryMinus ( Node op)
inlineprotectedvirtual

Definition at line 1641 of file language_latex.hpp.

◆ printParameter()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printParameter ( const Base &  value)
inlineprotectedvirtual

Definition at line 2069 of file language_latex.hpp.

◆ printPowFunction()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printPowFunction ( Node op)
inlineprotectedvirtual

Definition at line 1466 of file language_latex.hpp.

◆ printRandomIndexPatternDeclaration()

template<class Base >
void CppAD::cg::LanguageLatex< Base >::printRandomIndexPatternDeclaration ( std::ostringstream &  os,
const std::string &  identation,
const std::set< RandomIndexPattern * > &  randomPatterns 
)
inline

1D

2D

Definition at line 56 of file language_latex_index_patterns.hpp.

◆ printSparseArrayCreationOp()

template<class Base >
void CppAD::cg::LanguageLatex< Base >::printSparseArrayCreationOp ( Node op)
protectedvirtual

Definition at line 65 of file language_latex_arrays.hpp.

◆ printStartIf()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printStartIf ( Node node)
inlineprotectedvirtual

the first argument is the condition, following arguments are just extra dependencies that must be defined outside the if

Definition at line 1946 of file language_latex.hpp.

◆ printStaticIndexArray()

template<class Base >
void CppAD::cg::LanguageLatex< Base >::printStaticIndexArray ( std::ostringstream &  os,
const std::string &  name,
const std::vector< size_t > &  values 
)
inline

Definition at line 86 of file language_latex_index_patterns.hpp.

◆ printStaticIndexMatrix()

template<class Base >
void CppAD::cg::LanguageLatex< Base >::printStaticIndexMatrix ( std::ostringstream &  os,
const std::string &  name,
const std::map< size_t, std::map< size_t, size_t > > &  values 
)
inline

Definition at line 100 of file language_latex_index_patterns.hpp.

◆ printTmpVar()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printTmpVar ( Node node)
inlineprotectedvirtual

Definition at line 1906 of file language_latex.hpp.

◆ printUnaryFunction()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printUnaryFunction ( Node op)
inlineprotectedvirtual

Definition at line 1384 of file language_latex.hpp.

◆ printUserCustom()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::printUserCustom ( Node node)
inlineprotectedvirtual

Definition at line 2055 of file language_latex.hpp.

◆ requiresVariableArgument()

template<class Base >
bool CppAD::cg::LanguageLatex< Base >::requiresVariableArgument ( enum CGOpCode  op,
size_t  argIndex 
) const
inlineoverrideprotectedvirtual

Implements CppAD::cg::Language< Base >.

Definition at line 1129 of file language_latex.hpp.

◆ requiresVariableDependencies()

template<class Base >
bool CppAD::cg::LanguageLatex< Base >::requiresVariableDependencies ( ) const
inlineoverrideprotectedvirtual

Whether or not this language can use information regarding the dependencies between different equations/variables.

Implements CppAD::cg::Language< Base >.

Definition at line 1189 of file language_latex.hpp.

◆ requiresVariableName()

template<class Base >
virtual bool CppAD::cg::LanguageLatex< Base >::requiresVariableName ( const Node var) const
inlineprotectedvirtual

Definition at line 1085 of file language_latex.hpp.

◆ saveLocalFunction()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::saveLocalFunction ( std::vector< std::string > &  localFuncNames,
bool  zeroDependentArray 
)
inlineprotectedvirtual

Definition at line 1042 of file language_latex.hpp.

◆ setAgorithmFileEnvironment()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::setAgorithmFileEnvironment ( const std::string &  begin,
const std::string &  end 
)
inlinevirtual

Defines the Latex environment for each algorithm file.

Parameters
begina string creating the environment
enda string terminating the environment

Definition at line 369 of file language_latex.hpp.

◆ setAlgorithmLineEnvironment()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::setAlgorithmLineEnvironment ( const std::string &  begin,
const std::string &  end 
)
inlinevirtual

Defines the Latex environment for each algorithm line.

Parameters
begina string creating the environment
enda string terminating the environment

Definition at line 314 of file language_latex.hpp.

◆ setAlwaysEnclosePowBase()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::setAlwaysEnclosePowBase ( bool  enclose)
inlinevirtual

Defines whether or not to always enclose the base of a power within parenthesis. By default the base is only enclosed in parenthesis if it contains of a mathematical expression.

Parameters
enclosetrue to always enclose the base in parenthesis

Definition at line 547 of file language_latex.hpp.

◆ setAssignString()

template<class Base >
void CppAD::cg::LanguageLatex< Base >::setAssignString ( const std::string &  assign)
inline

Definition at line 188 of file language_latex.hpp.

◆ setConditionEnvironment()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::setConditionEnvironment ( const std::string &  begin,
const std::string &  end 
)
inlinevirtual

Defines the Latex environment for each condition.

Parameters
begina string creating the environment
enda string terminating the environment

Definition at line 421 of file language_latex.hpp.

◆ setDependentVarEnvironment()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::setDependentVarEnvironment ( const std::string &  begin,
const std::string &  end 
)
inlinevirtual

Defines the Latex environment for each dependent variable.

Parameters
begina string creating the environment
enda string terminating the environment

Definition at line 236 of file language_latex.hpp.

◆ setElseEnvironment()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::setElseEnvironment ( const std::string &  begin,
const std::string &  end 
)
inlinevirtual

Defines the Latex environment for each else.

Parameters
begina string creating the environment
enda string terminating the environment

Definition at line 499 of file language_latex.hpp.

◆ setElseIfEnvironment()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::setElseIfEnvironment ( const std::string &  begin,
const std::string &  end 
)
inlinevirtual

Defines the Latex environment for each else if.

Parameters
begina string creating the environment
enda string terminating the environment

Definition at line 473 of file language_latex.hpp.

◆ setEquationBlockEnvironment()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::setEquationBlockEnvironment ( const std::string &  begin,
const std::string &  end 
)
inlinevirtual

Defines the Latex environment for each equation block which can contain multiple equation lines with the same indentation.

Parameters
begina string creating the environment
enda string terminating the environment

Definition at line 341 of file language_latex.hpp.

◆ setEquationEnvironment()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::setEquationEnvironment ( const std::string &  begin,
const std::string &  end 
)
inlinevirtual

Defines the Latex environment for each equation.

Parameters
begina string creating the environment (e.g. "$", "\\begin{algomathdisplay}", "\\[")
enda string terminating the environment (e.g. "$\\;", "\\end{algomathdisplay}\\;", "\\]\\;")

Definition at line 288 of file language_latex.hpp.

◆ setFilename()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::setFilename ( const std::string &  name)
inlinevirtual

Definition at line 200 of file language_latex.hpp.

◆ setForEnvironment()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::setForEnvironment ( const std::string &  begin,
const std::string &  end 
)
inlinevirtual

Defines the Latex environment for each for loop.

Parameters
begina string creating the environment
enda string terminating the environment

Definition at line 395 of file language_latex.hpp.

◆ setIfEnvironment()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::setIfEnvironment ( const std::string &  begin,
const std::string &  end 
)
inlinevirtual

Defines the Latex environment for each If.

Parameters
begina string creating the environment
enda string terminating the environment

Definition at line 447 of file language_latex.hpp.

◆ setIgnoreZeroDepAssign()

template<class Base >
void CppAD::cg::LanguageLatex< Base >::setIgnoreZeroDepAssign ( bool  ignore)
inline

Definition at line 196 of file language_latex.hpp.

◆ setIndependentVarEnvironment()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::setIndependentVarEnvironment ( const std::string &  begin,
const std::string &  end 
)
inlinevirtual

Defines the Latex environment for each independent variable.

Parameters
begina string creating the environment
enda string terminating the environment

Definition at line 262 of file language_latex.hpp.

◆ setMaxAssignmentsPerFunction()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::setMaxAssignmentsPerFunction ( size_t  maxAssignmentsPerFunction,
std::map< std::string, std::string > *  sources 
)
inlinevirtual

Definition at line 604 of file language_latex.hpp.

◆ setMultiplicationConstParOperator()

template<class Base >
void CppAD::cg::LanguageLatex< Base >::setMultiplicationConstParOperator ( const std::string &  multValOpStr)
inline

Defines the operator used for multiplication of constant parameters. The default is "\times". Another common alternative is "\cdot". Please take into account that numbers too close together are difficult to distinguish.

Definition at line 600 of file language_latex.hpp.

◆ setMultiplicationOperator()

template<class Base >
void CppAD::cg::LanguageLatex< Base >::setMultiplicationOperator ( const std::string &  multOpStr)
inline

Defines the operator used for multiplications. The default is an empty space. Other common alternatives are "\cdot" and "\times".

Note
Multiplications of constant parameters use a different multiplication operator

Definition at line 581 of file language_latex.hpp.

◆ setParameterPrecision()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::setParameterPrecision ( size_t  p)
inlinevirtual

Defines the maximum precision used to print constant values in the generated source code

Parameters
pthe maximum number of digits

Definition at line 535 of file language_latex.hpp.

◆ setVariableEnvironment()

template<class Base >
virtual void CppAD::cg::LanguageLatex< Base >::setVariableEnvironment ( const std::string &  begin,
const std::string &  end 
)
inlinevirtual

Defines the Latex environment for each variable.

Parameters
begina string creating the environment
enda string terminating the environment

Definition at line 210 of file language_latex.hpp.

Member Data Documentation

◆ _algFileEnd

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_algFileEnd
protected

Definition at line 77 of file language_latex.hpp.

◆ _algFileStart

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_algFileStart
protected

Definition at line 76 of file language_latex.hpp.

◆ _assignStr

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_assignStr
protected

Definition at line 88 of file language_latex.hpp.

◆ _ATOMIC_PX

template<class Base >
const std::string CppAD::cg::LanguageLatex< Base >::_ATOMIC_PX = "apx"
staticprotected

Definition at line 45 of file language_latex.hpp.

◆ _ATOMIC_PY

template<class Base >
const std::string CppAD::cg::LanguageLatex< Base >::_ATOMIC_PY = "apy"
staticprotected

Definition at line 46 of file language_latex.hpp.

◆ _ATOMIC_TX

template<class Base >
const std::string CppAD::cg::LanguageLatex< Base >::_ATOMIC_TX = "atx"
staticprotected

Definition at line 43 of file language_latex.hpp.

◆ _ATOMIC_TY

template<class Base >
const std::string CppAD::cg::LanguageLatex< Base >::_ATOMIC_TY = "aty"
staticprotected

Definition at line 44 of file language_latex.hpp.

◆ _C_SPARSE_INDEX_ARRAY

template<class Base >
const std::string CppAD::cg::LanguageLatex< Base >::_C_SPARSE_INDEX_ARRAY = "idx"
staticprotected

Definition at line 36 of file language_latex.hpp.

◆ _C_STATIC_INDEX_ARRAY

template<class Base >
const std::string CppAD::cg::LanguageLatex< Base >::_C_STATIC_INDEX_ARRAY = "index"
staticprotected

Definition at line 35 of file language_latex.hpp.

◆ _code

template<class Base >
std::ostringstream CppAD::cg::LanguageLatex< Base >::_code
protected

Definition at line 96 of file language_latex.hpp.

◆ _COMP_OP_EQ

template<class Base >
const std::string CppAD::cg::LanguageLatex< Base >::_COMP_OP_EQ = "=="
staticprotected

Definition at line 39 of file language_latex.hpp.

◆ _COMP_OP_GE

template<class Base >
const std::string CppAD::cg::LanguageLatex< Base >::_COMP_OP_GE = "\\ge"
staticprotected

Definition at line 40 of file language_latex.hpp.

◆ _COMP_OP_GT

template<class Base >
const std::string CppAD::cg::LanguageLatex< Base >::_COMP_OP_GT = ">"
staticprotected

Definition at line 41 of file language_latex.hpp.

◆ _COMP_OP_LE

template<class Base >
const std::string CppAD::cg::LanguageLatex< Base >::_COMP_OP_LE = "\\le"
staticprotected

Definition at line 38 of file language_latex.hpp.

◆ _COMP_OP_LT

template<class Base >
const std::string CppAD::cg::LanguageLatex< Base >::_COMP_OP_LT = "<"
staticprotected

Definition at line 37 of file language_latex.hpp.

◆ _COMP_OP_NE

template<class Base >
const std::string CppAD::cg::LanguageLatex< Base >::_COMP_OP_NE = "\\ne"
staticprotected

Definition at line 42 of file language_latex.hpp.

◆ _conditionEnd

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_conditionEnd
protected

Definition at line 81 of file language_latex.hpp.

◆ _conditionStart

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_conditionStart
protected

Definition at line 80 of file language_latex.hpp.

◆ _currentLoops

template<class Base >
std::vector<const LoopStartOperationNode<Base>*> CppAD::cg::LanguageLatex< Base >::_currentLoops
protected

Definition at line 125 of file language_latex.hpp.

◆ _dependent

template<class Base >
const ArrayView<CG<Base> >* CppAD::cg::LanguageLatex< Base >::_dependent
protected

Definition at line 109 of file language_latex.hpp.

◆ _dependentIDs

template<class Base >
std::map<size_t, size_t> CppAD::cg::LanguageLatex< Base >::_dependentIDs
protected

Definition at line 107 of file language_latex.hpp.

◆ _elseEnd

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_elseEnd
protected

Definition at line 87 of file language_latex.hpp.

◆ _elseIfEnd

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_elseIfEnd
protected

Definition at line 85 of file language_latex.hpp.

◆ _elseIfStart

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_elseIfStart
protected

Definition at line 84 of file language_latex.hpp.

◆ _elseStart

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_elseStart
protected

Definition at line 86 of file language_latex.hpp.

◆ _endAlgLine

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_endAlgLine
protected

Definition at line 71 of file language_latex.hpp.

◆ _endDepVar

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_endDepVar
protected

Definition at line 59 of file language_latex.hpp.

◆ _endEq

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_endEq
protected

Definition at line 67 of file language_latex.hpp.

◆ _endEqBlock

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_endEqBlock
protected

Definition at line 75 of file language_latex.hpp.

◆ _endIndepVar

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_endIndepVar
protected

Definition at line 63 of file language_latex.hpp.

◆ _endline

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_endline
protected

Definition at line 94 of file language_latex.hpp.

◆ _endVar

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_endVar
protected

Definition at line 55 of file language_latex.hpp.

◆ _filename

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_filename
protected

Definition at line 115 of file language_latex.hpp.

◆ _forEnd

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_forEnd
protected

Definition at line 79 of file language_latex.hpp.

◆ _forStart

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_forStart
protected

Definition at line 78 of file language_latex.hpp.

◆ _ifEnd

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_ifEnd
protected

Definition at line 83 of file language_latex.hpp.

◆ _ifStart

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_ifStart
protected

Definition at line 82 of file language_latex.hpp.

◆ _ignoreZeroDepAssign

template<class Base >
bool CppAD::cg::LanguageLatex< Base >::_ignoreZeroDepAssign
protected

Definition at line 113 of file language_latex.hpp.

◆ _indentationLevel

template<class Base >
size_t CppAD::cg::LanguageLatex< Base >::_indentationLevel
protected

Definition at line 51 of file language_latex.hpp.

◆ _independentSize

template<class Base >
size_t CppAD::cg::LanguageLatex< Base >::_independentSize
protected

Definition at line 102 of file language_latex.hpp.

◆ _inEquationEnv

template<class Base >
bool CppAD::cg::LanguageLatex< Base >::_inEquationEnv
protected

Definition at line 129 of file language_latex.hpp.

◆ _info

template<class Base >
LanguageGenerationData<Base>* CppAD::cg::LanguageLatex< Base >::_info
protected

Definition at line 49 of file language_latex.hpp.

◆ _maxAssignmentsPerFile

template<class Base >
size_t CppAD::cg::LanguageLatex< Base >::_maxAssignmentsPerFile
protected

Definition at line 117 of file language_latex.hpp.

◆ _minTemporaryVarID

template<class Base >
size_t CppAD::cg::LanguageLatex< Base >::_minTemporaryVarID
protected

Definition at line 104 of file language_latex.hpp.

◆ _multOpStr

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_multOpStr
protected

Definition at line 90 of file language_latex.hpp.

◆ _multValOpStr

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_multValOpStr
protected

Definition at line 92 of file language_latex.hpp.

◆ _nameGen

template<class Base >
VariableNameGenerator<Base>* CppAD::cg::LanguageLatex< Base >::_nameGen
protected

Definition at line 98 of file language_latex.hpp.

◆ _parameterPrecision

template<class Base >
size_t CppAD::cg::LanguageLatex< Base >::_parameterPrecision
protected

Definition at line 127 of file language_latex.hpp.

◆ _powBaseEnclose

template<class Base >
bool CppAD::cg::LanguageLatex< Base >::_powBaseEnclose
protected

Definition at line 131 of file language_latex.hpp.

◆ _sources

template<class Base >
std::map<std::string, std::string>* CppAD::cg::LanguageLatex< Base >::_sources
protected

Definition at line 119 of file language_latex.hpp.

◆ _ss

template<class Base >
std::ostringstream CppAD::cg::LanguageLatex< Base >::_ss
protected

Definition at line 100 of file language_latex.hpp.

◆ _startAlgLine

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_startAlgLine
protected

Definition at line 69 of file language_latex.hpp.

◆ _startDepVar

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_startDepVar
protected

Definition at line 57 of file language_latex.hpp.

◆ _startEq

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_startEq
protected

Definition at line 65 of file language_latex.hpp.

◆ _startEqBlock

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_startEqBlock
protected

Definition at line 73 of file language_latex.hpp.

◆ _startIndepVar

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_startIndepVar
protected

Definition at line 61 of file language_latex.hpp.

◆ _startVar

template<class Base >
std::string CppAD::cg::LanguageLatex< Base >::_startVar
protected

Definition at line 53 of file language_latex.hpp.

◆ _temporary

template<class Base >
std::map<size_t, Node*> CppAD::cg::LanguageLatex< Base >::_temporary
protected

Definition at line 111 of file language_latex.hpp.

◆ _tmpArrayValues

template<class Base >
std::vector<const Arg*> CppAD::cg::LanguageLatex< Base >::_tmpArrayValues
protected

Definition at line 121 of file language_latex.hpp.

◆ _tmpSparseArrayValues

template<class Base >
std::vector<const Arg*> CppAD::cg::LanguageLatex< Base >::_tmpSparseArrayValues
protected

Definition at line 123 of file language_latex.hpp.


The documentation for this class was generated from the following files: