Update tasks
This commit is contained in:
parent
fb4d74e90f
commit
8f6163698c
12
.github/workflows/gradle.yml
vendored
12
.github/workflows/gradle.yml
vendored
@ -29,10 +29,10 @@ jobs:
|
||||
path: |
|
||||
~/.konan/dependencies
|
||||
~/.konan/kotlin-native-prebuilt-linux-1.4.20-eap-37
|
||||
key: ${{ runner.os }}-konan-1.4.0
|
||||
restore-keys: ${{ runner.os }}-konan-1.4.0
|
||||
key: ${{ runner.os }}-konan-1.4.20-eap-37
|
||||
restore-keys: ${{ runner.os }}-konan-1.4.20-eap-37
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew -Dorg.gradle.daemon=false --build-cache :kmath-gsl:cinteropLibgslNative build
|
||||
run: ./gradlew -Dorg.gradle.daemon=false --build-cache :kmath-gsl:cinteropLibgslLinuxX64 build
|
||||
build-osx:
|
||||
runs-on: macos-latest
|
||||
|
||||
@ -59,7 +59,7 @@ jobs:
|
||||
path: |
|
||||
~/.konan/dependencies
|
||||
~/.konan/kotlin-native-prebuilt-macos-1.4.20-eap-37
|
||||
key: ${{ runner.os }}-konan-1.4.0
|
||||
restore-keys: ${{ runner.os }}-konan-1.4.0
|
||||
key: ${{ runner.os }}-konan-1.4.20-eap-37
|
||||
restore-keys: ${{ runner.os }}-konan-1.4.20-eap-37
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew -Dorg.gradle.daemon=false --build-cache :kmath-gsl:cinteropLibgslNative build
|
||||
run: ./gradlew -Dorg.gradle.daemon=false --build-cache :kmath-gsl:cinteropLibgslMacosX64 build
|
||||
|
@ -1,9 +1,7 @@
|
||||
kotlin.code.style=official
|
||||
kotlin.parallel.tasks.in.project=true
|
||||
kotlin.mpp.enableGranularSourceSetsMetadata=true
|
||||
kotlin.native.enableDependencyPropagation=false
|
||||
kotlin.mpp.stability.nowarn=true
|
||||
|
||||
kotlin.parallel.tasks.in.project=true
|
||||
org.gradle.jvmargs=-XX:MaxMetaspaceSize=512m
|
||||
org.gradle.parallel=true
|
||||
systemProp.org.gradle.internal.publish.checksums.insecure=true
|
||||
systemProp.org.gradle.internal.publish.checksums.insecure=true
|
||||
|
@ -12,7 +12,11 @@ import org.gnu.gsl.gsl_matrix_equal
|
||||
import org.gnu.gsl.gsl_matrix_get
|
||||
|
||||
public sealed class GslMatrix<T : Any> : FeaturedMatrix<T> {
|
||||
public abstract val nativeHandle: CValues<out CStructVar>
|
||||
protected abstract val nativeHandle: CValues<out CStructVar>
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
return NDStructure.equals(this, other as? NDStructure<*> ?: return false)
|
||||
}
|
||||
|
||||
public override fun hashCode(): Int {
|
||||
var result = nativeHandle.hashCode()
|
||||
@ -21,7 +25,7 @@ public sealed class GslMatrix<T : Any> : FeaturedMatrix<T> {
|
||||
}
|
||||
}
|
||||
|
||||
public class GslRealMatrix(public override val nativeHandle: CValues<gsl_matrix>, features: Set<MatrixFeature>) :
|
||||
public class GslRealMatrix(protected override val nativeHandle: CValues<gsl_matrix>, features: Set<MatrixFeature>) :
|
||||
GslMatrix<Double>() {
|
||||
|
||||
public override val rowNum: Int
|
||||
@ -42,6 +46,6 @@ public class GslRealMatrix(public override val nativeHandle: CValues<gsl_matrix>
|
||||
|
||||
public override fun equals(other: Any?): Boolean {
|
||||
if (other is GslRealMatrix) gsl_matrix_equal(nativeHandle, other.nativeHandle)
|
||||
return NDStructure.equals(this, other as? NDStructure<*> ?: return false)
|
||||
return super.equals(other)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user