Dev #127

Merged
altavir merged 214 commits from dev into master 2020-08-11 08:33:21 +03:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit 09641a5c9c - Show all commits

View File

@ -4,7 +4,7 @@ import scientifik.kmath.expressions.Expression
import scientifik.kmath.operations.NumericAlgebra import scientifik.kmath.operations.NumericAlgebra
/** /**
* The expression evaluates MST on-flight * The expression evaluates MST on-flight. Should be much faster than functional expression, but slower than ASM-generated expressions.
*/ */
class MSTExpression<T>(val algebra: NumericAlgebra<T>, val mst: MST) : Expression<T> { class MSTExpression<T>(val algebra: NumericAlgebra<T>, val mst: MST) : Expression<T> {

View File

@ -12,6 +12,9 @@ import scientifik.kmath.operations.PowerOperations
import scientifik.kmath.operations.RingOperations import scientifik.kmath.operations.RingOperations
import scientifik.kmath.operations.SpaceOperations import scientifik.kmath.operations.SpaceOperations
/**
* TODO move to common
*/
private object ArithmeticsEvaluator : Grammar<MST>() { private object ArithmeticsEvaluator : Grammar<MST>() {
val num by token("-?[\\d.]+(?:[eE]-?\\d+)?") val num by token("-?[\\d.]+(?:[eE]-?\\d+)?")
val lpar by token("\\(") val lpar by token("\\(")