chore: refactored and dependency add
This commit is contained in:
parent
2dff15c5aa
commit
6c815abd54
@ -3,13 +3,12 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":kmath-ast"))
|
api(project(":kmath-core"))
|
||||||
api(project(":kmath-complex"))
|
api("net.jafama:jafama:2.3.2")
|
||||||
api(project(":kmath-for-real"))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kscience{
|
repositories {
|
||||||
useHtml()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
readme {
|
readme {
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,6 +1,7 @@
|
|||||||
package space.kscience.kmath.jafama
|
package space.kscience.kmath.jafama
|
||||||
|
|
||||||
import space.kscience.kmath.operations.*
|
import space.kscience.kmath.operations.*
|
||||||
|
import net.jafama.*
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Advanced Number-like semifield that implements basic operations.
|
* 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.
|
* A field for [Double] without boxing. Does not produce appropriate field element.
|
||||||
*/
|
*/
|
||||||
@Suppress("EXTENSION_SHADOWED_BY_MEMBER", "OVERRIDE_BY_INLINE", "NOTHING_TO_INLINE")
|
@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 zero: Double get() = 0.0
|
||||||
public override inline val one: Double get() = 1.0
|
public override inline val one: Double get() = 1.0
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user