Changes for upcoming GSL extension project #148
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
|
@ -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>
|
||||
handle should probably be private handle should probably be private
That's true, but the current challenge is to build this at least That's true, but the current challenge is to build this at least
Currently, I can't even run cinterop in Actions Currently, I can't even run cinterop in Actions
|
||||
protected abstract val nativeHandle: CValues<out CStructVar>
|
||||
handle should probably be private handle should probably be private
That's true, but the current challenge is to build this at least That's true, but the current challenge is to build this at least
Currently, I can't even run cinterop in Actions Currently, I can't even run cinterop in Actions
|
||||
|
||||
handle should probably be private handle should probably be private
That's true, but the current challenge is to build this at least That's true, but the current challenge is to build this at least
Currently, I can't even run cinterop in Actions Currently, I can't even run cinterop in Actions
|
||||
override fun equals(other: Any?): Boolean {
|
||||
handle should probably be private handle should probably be private
That's true, but the current challenge is to build this at least That's true, but the current challenge is to build this at least
Currently, I can't even run cinterop in Actions Currently, I can't even run cinterop in Actions
|
||||
return NDStructure.equals(this, other as? NDStructure<*> ?: return false)
|
||||
handle should probably be private handle should probably be private
That's true, but the current challenge is to build this at least That's true, but the current challenge is to build this at least
Currently, I can't even run cinterop in Actions Currently, I can't even run cinterop in Actions
|
||||
}
|
||||
handle should probably be private handle should probably be private
That's true, but the current challenge is to build this at least That's true, but the current challenge is to build this at least
Currently, I can't even run cinterop in Actions Currently, I can't even run cinterop in Actions
|
||||
|
||||
public override fun hashCode(): Int {
|
||||
var result = nativeHandle.hashCode()
|
||||
@ -21,7 +25,7 @@ public sealed class GslMatrix<T : Any> : FeaturedMatrix<T> {
|
||||
handle should probably be private handle should probably be private
handle should probably be private handle should probably be private
That's true, but the current challenge is to build this at least That's true, but the current challenge is to build this at least
That's true, but the current challenge is to build this at least That's true, but the current challenge is to build this at least
Currently, I can't even run cinterop in Actions Currently, I can't even run cinterop in Actions
Currently, I can't even run cinterop in Actions Currently, I can't even run cinterop in Actions
|
||||
}
|
||||
}
|
||||
|
||||
public class GslRealMatrix(public override val nativeHandle: CValues<gsl_matrix>, features: Set<MatrixFeature>) :
|
||||
handle should probably be private handle should probably be private
That's true, but the current challenge is to build this at least That's true, but the current challenge is to build this at least
Currently, I can't even run cinterop in Actions Currently, I can't even run cinterop in Actions
|
||||
public class GslRealMatrix(protected override val nativeHandle: CValues<gsl_matrix>, features: Set<MatrixFeature>) :
|
||||
handle should probably be private handle should probably be private
That's true, but the current challenge is to build this at least That's true, but the current challenge is to build this at least
Currently, I can't even run cinterop in Actions Currently, I can't even run cinterop in Actions
|
||||
GslMatrix<Double>() {
|
||||
|
||||
public override val rowNum: Int
|
||||
@ -42,6 +46,6 @@ public class GslRealMatrix(public override val nativeHandle: CValues<gsl_matrix>
|
||||
handle should probably be private handle should probably be private
handle should probably be private handle should probably be private
That's true, but the current challenge is to build this at least That's true, but the current challenge is to build this at least
That's true, but the current challenge is to build this at least That's true, but the current challenge is to build this at least
Currently, I can't even run cinterop in Actions Currently, I can't even run cinterop in Actions
Currently, I can't even run cinterop in Actions Currently, I can't even run cinterop in Actions
|
||||
|
||||
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)
|
||||
handle should probably be private handle should probably be private
That's true, but the current challenge is to build this at least That's true, but the current challenge is to build this at least
Currently, I can't even run cinterop in Actions Currently, I can't even run cinterop in Actions
|
||||
return super.equals(other)
|
||||
handle should probably be private handle should probably be private
That's true, but the current challenge is to build this at least That's true, but the current challenge is to build this at least
Currently, I can't even run cinterop in Actions Currently, I can't even run cinterop in Actions
|
||||
}
|
||||
}
|
||||
|
||||
handle should probably be private handle should probably be private
handle should probably be private handle should probably be private
That's true, but the current challenge is to build this at least That's true, but the current challenge is to build this at least
That's true, but the current challenge is to build this at least That's true, but the current challenge is to build this at least
Currently, I can't even run cinterop in Actions Currently, I can't even run cinterop in Actions
Currently, I can't even run cinterop in Actions Currently, I can't even run cinterop in Actions
|
handle should probably be private
handle should probably be private
That's true, but the current challenge is to build this at least
That's true, but the current challenge is to build this at least
Currently, I can't even run cinterop in Actions
Currently, I can't even run cinterop in Actions