chore: refactored and dependency add

This commit is contained in:
therealansh 2021-06-03 01:37:23 +05:30
parent 2dff15c5aa
commit 6c815abd54
8 changed files with 6 additions and 10775 deletions

View File

@ -3,13 +3,12 @@ plugins {
}
dependencies {
api(project(":kmath-ast"))
api(project(":kmath-complex"))
api(project(":kmath-for-real"))
api(project(":kmath-core"))
api("net.jafama:jafama:2.3.2")
}
kscience{
useHtml()
repositories {
mavenCentral()
}
readme {

View File

@ -1,13 +0,0 @@
/*
* Copyright 2018-2021 KMath contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package space.kscience.kmath.jafama;
public class DoubleWrapper {
public double value;
@Override
public String toString() {
return Double.toString(this.value);
}
}

View File

@ -1,13 +0,0 @@
/*
* Copyright 2018-2021 KMath contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package space.kscience.kmath.jafama;
public class IntWrapper {
public int value;
@Override
public String toString() {
return Integer.toString(this.value);
}
}

View File

@ -1,6 +1,7 @@
package space.kscience.kmath.jafama
import space.kscience.kmath.operations.*
import net.jafama.*
/**
* Advanced Number-like semifield that implements basic operations.
@ -55,7 +56,7 @@ public interface ExtendedField<T> : ExtendedFieldOperations<T>, Field<T>, Numeri
* A field for [Double] without boxing. Does not produce appropriate field element.
*/
@Suppress("EXTENSION_SHADOWED_BY_MEMBER", "OVERRIDE_BY_INLINE", "NOTHING_TO_INLINE")
public object DoubleField : ExtendedField<Double>, Norm<Double, Double>, ScaleOperations<Double> {
public object JafamaDoubleField : ExtendedField<Double>, Norm<Double, Double>, ScaleOperations<Double> {
public override inline val zero: Double get() = 0.0
public override inline val one: Double get() = 1.0