Add adapters of scalar functions to MST and vice versa #150

Merged
CommanderTvis merged 23 commits from kotlingrad into dev 2020-11-01 21:09:45 +03:00
Showing only changes of commit 84f7535fdd - Show all commits

View File

@ -58,6 +58,7 @@ public fun <X : SFun<X>> MST.sfun(proto: X): SFun<X> {
altavir commented 2020-10-13 15:36:56 +03:00 (Migrated from github.com)
Review

change to toMst()

change to toMst()
altavir commented 2020-10-13 15:36:56 +03:00 (Migrated from github.com)
Review

change to toMst()

change to toMst()
SpaceOperations.MINUS_OPERATION -> Sum(left.sfun(proto), Negative(right.sfun(proto))) SpaceOperations.MINUS_OPERATION -> Sum(left.sfun(proto), Negative(right.sfun(proto)))
RingOperations.TIMES_OPERATION -> Prod(left.sfun(proto), right.sfun(proto)) RingOperations.TIMES_OPERATION -> Prod(left.sfun(proto), right.sfun(proto))
FieldOperations.DIV_OPERATION -> Prod(left.sfun(proto), Power(right.sfun(proto), Negative(One()))) FieldOperations.DIV_OPERATION -> Prod(left.sfun(proto), Power(right.sfun(proto), Negative(One())))
PowerOperations.POW_OPERATION -> Power(left.sfun(proto), SConst((right as MST.Numeric).value))
altavir commented 2020-10-13 15:36:56 +03:00 (Migrated from github.com)
Review

change to toMst()

change to toMst()
else -> error("Binary operation $operation not defined in $this") else -> error("Binary operation $operation not defined in $this")
} }
} }

altavir commented 2020-10-13 15:36:56 +03:00 (Migrated from github.com)
Review

change to toMst()

change to toMst()
altavir commented 2020-10-13 15:36:56 +03:00 (Migrated from github.com)
Review

change to toMst()

change to toMst()