Deprecating div methods
This commit is contained in:
parent
1a7dddd497
commit
477f7dd079
@ -175,6 +175,7 @@ public interface SpaceOperations<T> : Algebra<T> {
|
||||
* @param k the divisor.
|
||||
* @return the quotient.
|
||||
*/
|
||||
@Deprecated("Dividing not allowed in a Ring")
|
||||
public operator fun T.div(k: Number): T = multiply(this, 1.0 / k.toDouble())
|
||||
|
||||
/**
|
||||
|
@ -96,6 +96,7 @@ public interface Nd4jArraySpace<T, S : Space<T>> : NDSpace<T, S>, Nd4jArrayAlgeb
|
||||
return a.ndArray.mul(k).wrap()
|
||||
}
|
||||
|
||||
@Deprecated("Avoid using this method, underlying array get casted to Doubles")
|
||||
public override operator fun NDStructure<T>.div(k: Number): Nd4jArrayStructure<T> {
|
||||
return ndArray.div(k).wrap()
|
||||
}
|
||||
|
21
kmath-torch/src/cppMain/.vscode/c_cpp_properties.json
vendored
Normal file
21
kmath-torch/src/cppMain/.vscode/c_cpp_properties.json
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Linux",
|
||||
"includePath": [
|
||||
"${workspaceFolder}/**",
|
||||
"${env:HOME}/miniconda3/envs/ghmc/include",
|
||||
"${env:HOME}/miniconda3/envs/ghmc/include/python3.8",
|
||||
"${env:HOME}/miniconda3/envs/ghmc/include/torch/csrc/api/include",
|
||||
"${env:HOME}/.jdks/openjdk-15.0.2/include",
|
||||
"${env:HOME}/.jdks/openjdk-15.0.2/include/linux"
|
||||
],
|
||||
"defines": [],
|
||||
"compilerPath": "/usr/bin/gcc",
|
||||
"cStandard": "gnu11",
|
||||
"cppStandard": "gnu++17",
|
||||
"intelliSenseMode": "gcc-x64"
|
||||
}
|
||||
],
|
||||
"version": 4
|
||||
}
|
71
kmath-torch/src/cppMain/.vscode/settings.json
vendored
Normal file
71
kmath-torch/src/cppMain/.vscode/settings.json
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
{
|
||||
"python.linting.pylintEnabled": false,
|
||||
"python.linting.mypyEnabled": true,
|
||||
"python.linting.enabled": false,
|
||||
"files.associations": {
|
||||
"chrono": "cpp",
|
||||
"cctype": "cpp",
|
||||
"clocale": "cpp",
|
||||
"cmath": "cpp",
|
||||
"cstdarg": "cpp",
|
||||
"cstddef": "cpp",
|
||||
"cstdio": "cpp",
|
||||
"cstdlib": "cpp",
|
||||
"cstring": "cpp",
|
||||
"ctime": "cpp",
|
||||
"cwchar": "cpp",
|
||||
"cwctype": "cpp",
|
||||
"array": "cpp",
|
||||
"atomic": "cpp",
|
||||
"*.tcc": "cpp",
|
||||
"cinttypes": "cpp",
|
||||
"complex": "cpp",
|
||||
"condition_variable": "cpp",
|
||||
"cstdint": "cpp",
|
||||
"deque": "cpp",
|
||||
"forward_list": "cpp",
|
||||
"list": "cpp",
|
||||
"unordered_map": "cpp",
|
||||
"unordered_set": "cpp",
|
||||
"vector": "cpp",
|
||||
"exception": "cpp",
|
||||
"algorithm": "cpp",
|
||||
"functional": "cpp",
|
||||
"iterator": "cpp",
|
||||
"map": "cpp",
|
||||
"memory": "cpp",
|
||||
"memory_resource": "cpp",
|
||||
"numeric": "cpp",
|
||||
"optional": "cpp",
|
||||
"random": "cpp",
|
||||
"ratio": "cpp",
|
||||
"set": "cpp",
|
||||
"string": "cpp",
|
||||
"string_view": "cpp",
|
||||
"system_error": "cpp",
|
||||
"tuple": "cpp",
|
||||
"type_traits": "cpp",
|
||||
"utility": "cpp",
|
||||
"fstream": "cpp",
|
||||
"initializer_list": "cpp",
|
||||
"iomanip": "cpp",
|
||||
"iosfwd": "cpp",
|
||||
"iostream": "cpp",
|
||||
"istream": "cpp",
|
||||
"limits": "cpp",
|
||||
"mutex": "cpp",
|
||||
"new": "cpp",
|
||||
"ostream": "cpp",
|
||||
"sstream": "cpp",
|
||||
"stdexcept": "cpp",
|
||||
"streambuf": "cpp",
|
||||
"thread": "cpp",
|
||||
"typeindex": "cpp",
|
||||
"typeinfo": "cpp",
|
||||
"valarray": "cpp",
|
||||
"variant": "cpp",
|
||||
"future": "cpp",
|
||||
"bit": "cpp"
|
||||
},
|
||||
"python.pythonPath": "${env:HOME}/miniconda3/envs/ghmc/bin/python"
|
||||
}
|
BIN
kmath-torch/src/jvmMain/java/kscience/kmath/torch/JTorch.class
Normal file
BIN
kmath-torch/src/jvmMain/java/kscience/kmath/torch/JTorch.class
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user