Fixed version syntax

This commit is contained in:
Alexander Nozik 2018-08-24 20:55:44 +03:00
parent 544f65d9a2
commit ce5c281427
2 changed files with 5 additions and 5 deletions

View File

@ -14,5 +14,5 @@ subprojects{
} }
group = 'scientifik' group = 'scientifik'
version = '0.1 - SNAPSHOT' version = '0.0.1-SNAPSHOT'

View File

@ -10,7 +10,7 @@ package scientifik.kmath.operations
* It also allows to override behavior for optional operations * It also allows to override behavior for optional operations
* *
*/ */
interface TrigonometricOperations<T>: Field<T> { interface TrigonometricOperations<T> : Field<T> {
fun sin(arg: T): T fun sin(arg: T): T
fun cos(arg: T): T fun cos(arg: T): T
@ -39,10 +39,10 @@ fun <T : MathElement<T, out PowerOperations<T>>> sqr(arg: T): T = arg pow 2.0
/* Exponential */ /* Exponential */
interface ExponentialOperations<T>{ interface ExponentialOperations<T> {
fun exp(arg: T): T fun exp(arg: T): T
fun ln(arg: T): T fun ln(arg: T): T
} }
fun <T: MathElement<T, out ExponentialOperations<T>>> exp(arg:T): T = arg.context.exp(arg) fun <T : MathElement<T, out ExponentialOperations<T>>> exp(arg: T): T = arg.context.exp(arg)
fun <T: MathElement<T, out ExponentialOperations<T>>> ln(arg:T): T = arg.context.ln(arg) fun <T : MathElement<T, out ExponentialOperations<T>>> ln(arg: T): T = arg.context.ln(arg)