Package space.kscience.kmath.ast.rendering
Types
Binary
Link copied to clipboard
abstract class Binary(operations: Collection<String>?) : FeaturedMathRenderer.RenderFeature
Content copied to clipboard
Abstract printing of unary operations that discards MST if their operation is not in operations or its type is not MST.Binary.
BinaryMinus
Link copied to clipboard
Handles binary nodes by producing BinaryMinusSyntax.
BinaryMinusSyntax
Link copied to clipboard
data class BinaryMinusSyntax(operation: String, left: OperandSyntax, right: OperandSyntax) : BinarySyntax
Content copied to clipboard
BinaryOperator
Link copied to clipboard
Handles binary nodes by producing BinaryOperatorSyntax.
BinaryOperatorSyntax
Link copied to clipboard
data class BinaryOperatorSyntax(operation: String, prefix: MathSyntax, left: MathSyntax, right: MathSyntax) : BinarySyntax
Content copied to clipboard
BinaryPlus
Link copied to clipboard
Handles binary nodes by producing BinaryPlusSyntax.
BinaryPlusSyntax
Link copied to clipboard
data class BinaryPlusSyntax(operation: String, left: OperandSyntax, right: OperandSyntax) : BinarySyntax
Content copied to clipboard
BinarySyntax
Link copied to clipboard
Exponent
Link copied to clipboard
Handles unary nodes by producing ExponentSyntax.
ExponentSyntax
Link copied to clipboard
data class ExponentSyntax(operation: String, operand: OperandSyntax, useOperatorForm: Boolean) : UnarySyntax
Content copied to clipboard
FeaturedMathRenderer
Link copied to clipboard
open class FeaturedMathRenderer(features: List<FeaturedMathRenderer.RenderFeature>) : MathRenderer
Content copied to clipboard
Implements MST render process with sequence of features.
FeaturedMathRendererWithPostProcess
Link copied to clipboard
open class FeaturedMathRendererWithPostProcess(features: List<FeaturedMathRenderer.RenderFeature>, stages: List<FeaturedMathRendererWithPostProcess.PostProcessPhase>) : FeaturedMathRenderer
Content copied to clipboard
Extends FeaturedMathRenderer by adding post-processing stages.
Fraction
Link copied to clipboard
Handles binary nodes by producing FractionSyntax.
FractionSyntax
Link copied to clipboard
data class FractionSyntax(operation: String, left: OperandSyntax, right: OperandSyntax, infix: Boolean) : BinarySyntax
Content copied to clipboard
InverseHyperbolicOperations
Link copied to clipboard
class InverseHyperbolicOperations(operations: Collection<String>?) : Unary
Content copied to clipboard
Handles binary nodes by producing inverse UnaryOperatorSyntax with ar prefix instead of a.
InverseTrigonometricOperations
Link copied to clipboard
class InverseTrigonometricOperations(operations: Collection<String>?) : Unary
Content copied to clipboard
Handles binary nodes by producing inverse UnaryOperatorSyntax with arc prefix instead of a.
LatexSyntaxRenderer
Link copied to clipboard
MathMLSyntaxRenderer
Link copied to clipboard
MathRenderer
Link copied to clipboard
MathSyntax
Link copied to clipboard
Multiplication
Link copied to clipboard
Handles binary nodes by producing MultiplicationSyntax.
MultiplicationSyntax
Link copied to clipboard
data class MultiplicationSyntax(operation: String, left: OperandSyntax, right: OperandSyntax, times: Boolean) : BinarySyntax
Content copied to clipboard
NumberSyntax
Link copied to clipboard
OperandSyntax
Link copied to clipboard
data class OperandSyntax(operand: MathSyntax, parentheses: Boolean) : MathSyntax
Content copied to clipboard
OperationSyntax
Link copied to clipboard
OperatorNameSyntax
Link copied to clipboard
Power
Link copied to clipboard
PrettyPrintFloats
Link copied to clipboard
class PrettyPrintFloats(types: Set<KClass<out Number>>) : FeaturedMathRenderer.RenderFeature
Content copied to clipboard
PrettyPrintIntegers
Link copied to clipboard
class PrettyPrintIntegers(types: Set<KClass<out Number>>) : FeaturedMathRenderer.RenderFeature
Content copied to clipboard
PrettyPrintPi
Link copied to clipboard
class PrettyPrintPi(symbols: Set<String>) : FeaturedMathRenderer.RenderFeature
Content copied to clipboard
RadicalSyntax
Link copied to clipboard
data class RadicalSyntax(operation: String, operand: MathSyntax) : UnarySyntax
Content copied to clipboard
RadicalWithIndexSyntax
Link copied to clipboard
data class RadicalWithIndexSyntax(operation: String, left: MathSyntax, right: MathSyntax) : BinarySyntax
Content copied to clipboard
SimplifyParentheses
Link copied to clipboard
class SimplifyParentheses(precedenceFunction: (MathSyntax) -> Int) : FeaturedMathRendererWithPostProcess.PostProcessPhase
Content copied to clipboard
Removes unnecessary parentheses from OperandSyntax.
SpecialSymbolSyntax
Link copied to clipboard
data class SpecialSymbolSyntax(kind: SpecialSymbolSyntax.Kind) : TerminalSyntax
Content copied to clipboard
SquareRoot
Link copied to clipboard
Handles binary nodes by producing RadicalSyntax with no index.
SubscriptSyntax
Link copied to clipboard
data class SubscriptSyntax(operation: String, left: MathSyntax, right: MathSyntax) : BinarySyntax
Content copied to clipboard
SuperscriptSyntax
Link copied to clipboard
data class SuperscriptSyntax(operation: String, left: MathSyntax, right: MathSyntax) : BinarySyntax
Content copied to clipboard
SymbolSyntax
Link copied to clipboard
SyntaxRenderer
Link copied to clipboard
TerminalSyntax
Link copied to clipboard
Unary
Link copied to clipboard
abstract class Unary(operations: Collection<String>?) : FeaturedMathRenderer.RenderFeature
Content copied to clipboard
Abstract printing of unary operations that discards MST if their operation is not in operations or its type is not MST.Unary.
UnaryMinus
Link copied to clipboard
Handles binary nodes by producing UnaryMinusSyntax.
UnaryMinusSyntax
Link copied to clipboard
data class UnaryMinusSyntax(operation: String, operand: OperandSyntax) : UnarySyntax
Content copied to clipboard
UnaryOperator
Link copied to clipboard
Handles unary nodes by producing UnaryOperatorSyntax.
UnaryOperatorSyntax
Link copied to clipboard
data class UnaryOperatorSyntax(operation: String, prefix: MathSyntax, operand: OperandSyntax) : UnarySyntax
Content copied to clipboard
UnaryPlus
Link copied to clipboard
Handles unary nodes by producing UnaryPlusSyntax.
UnaryPlusSyntax
Link copied to clipboard
data class UnaryPlusSyntax(operation: String, operand: OperandSyntax) : UnarySyntax
Content copied to clipboard
UnarySyntax
Link copied to clipboard
Functions
renderWithStringBuilder
Link copied to clipboard
Calls SyntaxRenderer.render with given node and a new StringBuilder instance, and returns its content.
Properties
BetterExponent
Link copied to clipboard
Applies ExponentSyntax.useOperatorForm to ExponentSyntax when the operand contains a fraction, a superscript or a subscript to improve readability.
BetterFraction
Link copied to clipboard
Chooses FractionSyntax.infix depending on the context.
BetterMultiplication
Link copied to clipboard
val BetterMultiplication: FeaturedMathRendererWithPostProcess.PostProcessPhase
Content copied to clipboard
Removes unnecessary times (×) symbols from MultiplicationSyntax.
PrintNumeric
Link copied to clipboard
PrintSymbol
Link copied to clipboard