Commit Graph

219 Commits

Author SHA1 Message Date
15d874fb06 Remove MST.Symbolic
Replace it by Symbol
LogicAlgebra
2021-05-16 19:53:21 +03:00
Iaroslav Postovalov
591b408729
MST rendering: support infix division, use arcsin instead sin^-1 form for inverse trigonometric functions 2021-05-04 17:22:09 +07:00
Alexander Nozik
eca1ad48f5
Merge pull request #273 from mipt-npm/feature/jupyter
Add Jupyter integration
2021-05-02 21:28:17 +03:00
Iaroslav Postovalov
f0627b2ced
Simplify and revise test cases for MST compilation engines #285 2021-05-03 00:27:16 +07:00
Iaroslav Postovalov
77d72c7bf6
Add Jupyter integration 2021-04-30 20:50:00 +07:00
Iaroslav Postovalov
e3f7b7a5fa
Promote kmath-ast as experimental, mark AST Rendering and WASM with @UnstableKMathAPI 2021-04-28 10:27:08 +07:00
Iaroslav Postovalov
488f5f0008
Redesign exponential function rendering 2021-04-21 22:13:03 +07:00
Iaroslav Postovalov
23d2f8d758
Merge pull request #289 from mipt-npm/commandertvis/rendering-tests
Move AST rendering tests to common
2021-04-21 19:57:36 +07:00
Iaroslav Postovalov
cfa9077e29
Move AST rendering tests to common 2021-04-21 19:50:33 +07:00
Iaroslav Postovalov
0a0d0af94a
Configure copyright scoping 2021-04-21 19:46:02 +07:00
Iaroslav Postovalov
b6a57dbfd0
MST compilation to WebAssembly with Binaryen, reorganize internal JS bindings, tests refactor 2021-04-21 19:17:57 +07:00
Iaroslav Postovalov
84fa878ee3
Update dependencies 2021-04-20 19:14:59 +07:00
Iaroslav Postovalov
e9c31b7827
Merge branch 'master' into dev
# Conflicts:
#	README.md
#	build.gradle.kts
#	examples/src/main/kotlin/space/kscience/kmath/stat/DistributionBenchmark.kt
#	examples/src/main/kotlin/space/kscience/kmath/structures/ParallelRealNDField.kt
#	kmath-ast/README.md
#	kmath-ast/build.gradle.kts
#	kmath-ast/src/commonMain/kotlin/space/kscience/kmath/ast/MstExpression.kt
#	kmath-complex/README.md
#	kmath-complex/build.gradle.kts
#	kmath-complex/src/commonMain/kotlin/space/kscience/kmath/complex/ComplexNDField.kt
#	kmath-core/README.md
#	kmath-core/build.gradle.kts
#	kmath-core/src/commonMain/kotlin/space/kscience/kmath/expressions/MST.kt
#	kmath-core/src/commonMain/kotlin/space/kscience/kmath/expressions/MstAlgebra.kt
#	kmath-core/src/commonMain/kotlin/space/kscience/kmath/nd/RealNDField.kt
#	kmath-core/src/commonMain/kotlin/space/kscience/kmath/structures/RealBufferField.kt
#	kmath-coroutines/build.gradle.kts
#	kmath-coroutines/src/commonMain/kotlin/space/kscience/kmath/chains/BlockingRealChain.kt
#	kmath-coroutines/src/jvmMain/kotlin/space/kscience/kmath/structures/LazyNDStructure.kt
#	kmath-dimensions/src/commonTest/kotlin/kscience/dimensions/DMatrixContextTest.kt
#	kmath-for-real/README.md
#	kmath-functions/README.md
#	kmath-functions/src/commonMain/kotlin/space/kscience/kmath/interpolation/Interpolator.kt
#	kmath-functions/src/commonMain/kotlin/space/kscience/kmath/interpolation/LoessInterpolator.kt
#	kmath-functions/src/commonMain/kotlin/space/kscience/kmath/interpolation/XYPointSet.kt
#	kmath-geometry/build.gradle.kts
#	kmath-nd4j/README.md
#	kmath-nd4j/build.gradle.kts
#	kmath-stat/src/commonMain/kotlin/space/kscience/kmath/distributions/FactorizedDistribution.kt
#	kmath-stat/src/commonMain/kotlin/space/kscience/kmath/stat/Distribution.kt
#	kmath-stat/src/commonMain/kotlin/space/kscience/kmath/stat/Fitting.kt
#	kmath-stat/src/commonMain/kotlin/space/kscience/kmath/stat/OptimizationProblem.kt
#	kmath-stat/src/jvmMain/kotlin/space/kscience/kmath/stat/distributions.kt
#	kmath-viktor/src/main/kotlin/space/kscience/kmath/viktor/ViktorNDStructure.kt
2021-04-16 18:02:44 +07:00
Iaroslav Postovalov
41b7349a43
Setup copyright headers, add references to third-party files, update LICENSE 2021-04-16 00:15:00 +07:00
6cea5742e8 Blocking statistics. Move MST to core 2021-04-14 12:40:26 +03:00
Iaroslav Postovalov
cf91da1a98
Add pi and e constants, some unrelated changes 2021-04-05 23:44:42 +07:00
Iaroslav Postovalov
e6921025d1
Remove redundant try-catch expressions 2021-04-02 16:46:12 +07:00
a91d468b74 Refactor Algebra and ExpressionAlgebra. Introduce bindSymbolOrNull on the top level 2021-04-01 21:27:30 +03:00
af4866e876 Refactor MST 2021-04-01 20:15:49 +03:00
Iaroslav Postovalov
9ee506b1d2
Some experiments with MST rendering 2021-03-31 16:12:07 +07:00
aeceb4a337 Move dataset to core 2021-03-19 14:53:14 +03:00
206e4cbcf6 Real -> Double 2021-03-16 21:17:26 +03:00
05f742452d Structure naming change 2021-03-16 20:56:20 +03:00
0aa73cd48f Vector space refactor (optimization) 2021-03-14 09:43:22 +03:00
803f298d8b Make vector spaces great again 2021-03-11 11:28:10 +03:00
fd51564628 Return field get access in algebras 2021-03-11 10:18:59 +03:00
522f39cef3 replace Space by Group 2021-03-10 22:09:19 +03:00
8ae8ebe871 Fully refactor algebra split ScaleOperations from Space. 2021-03-08 21:03:48 +03:00
Iaroslav Postovalov
9f663ae7f7
Update dependencies 2021-02-26 21:50:06 +07:00
c6ea423bd6 Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	CHANGELOG.md
#	kmath-core/api/kmath-core.api
#	kmath-core/src/commonMain/kotlin/space/kscience/kmath/domains/HyperSquareDomain.kt
#	kmath-histograms/src/commonMain/kotlin/space/kscience/kmath/histogram/RealHistogram.kt
#	kmath-histograms/src/commonTest/kotlin/scietifik/kmath/histogram/MultivariateHistogramTest.kt
#	kmath-histograms/src/jsMain/kotlin/space/kscience/kmath/histogram/Counters.kt
#	kmath-histograms/src/jvmMain/kotlin/space/kscience/kmath/histogram/Counters.kt
#	kmath-histograms/src/jvmMain/kotlin/space/kscience/kmath/histogram/UnivariateHistogram.kt
#	kmath-histograms/src/jvmMain/kotlin/space/kscience/kmath/histogram/UnivariateHistogramSpace.kt
2021-02-19 09:46:25 +03:00
8485d28872 Change package name to space.kscience 2021-02-18 11:17:28 +03:00
987997cc02 Histograms refactor 2021-02-12 22:43:35 +03:00
Iaroslav Postovalov
f054a4c039
Fix JVM signature of generated invoke method 2021-02-11 23:34:48 +07:00
Iaroslav Postovalov
9748e0bfbe
Merge branch 'dev' into feature/quaternion
# Conflicts:
#	CHANGELOG.md
#	examples/src/main/kotlin/kscience/kmath/stat/DistributionBenchmark.kt
#	kmath-complex/src/commonMain/kotlin/kscience/kmath/complex/ComplexNDField.kt
#	kmath-core/src/commonMain/kotlin/kscience/kmath/operations/Complex.kt
#	kmath-core/src/commonTest/kotlin/kscience/kmath/structures/NDFieldTest.kt
2021-01-20 01:10:31 +07:00
ab32cd9561 Numeric operations are decoupled from Ring 2021-01-19 17:16:43 +03:00
Iaroslav Postovalov
2012d2c3f1
Fix #172, add constant folding for unary operations from numeric nodes 2021-01-07 22:42:37 +07:00
Iaroslav Postovalov
acf9dd2b6a
Extract complex and quaternion systems to another module 2021-01-06 21:01:37 +07:00
Iaroslav Postovalov
ea8dc63b1a
Update doc comments in parser.kt 2021-01-05 20:14:50 +07:00
Iaroslav Postovalov
2c7cb1b04f
Rename ...Operation functions returning function to ...OperationFunction 2021-01-05 19:56:42 +07:00
Iaroslav Postovalov
1a5efd0a17
Improve ASM and ESTree tests quality 2020-12-22 18:17:24 +07:00
Iaroslav Postovalov
1b0f462e54
Reformat build.gradle.kts 2020-12-22 17:49:32 +07:00
Iaroslav Postovalov
d631c048c7
Fix minor problems, update README 2020-12-22 16:00:51 +07:00
Iaroslav Postovalov
c738fb1f2a
Make return types more specific in MstAlgebra.kt 2020-12-22 13:44:52 +07:00
Iaroslav Postovalov
2310aca9db
Improve consistency of operations in MstAlgebra 2020-12-22 13:42:12 +07:00
Iaroslav Postovalov
d521fa0d8d
Fix wrong function name 2020-12-22 13:15:01 +07:00
Iaroslav Postovalov
1ab6702bb4
Delete unused property 2020-12-22 13:11:44 +07:00
Iaroslav Postovalov
46ac73d2c1
Add undefined handling in constant insertion 2020-12-22 13:11:12 +07:00
Iaroslav Postovalov
d657f40e3f
Fix KDoc comments 2020-12-22 12:58:35 +07:00
Iaroslav Postovalov
cfc13cda8f
Rename files and JSBuilder 2020-12-22 12:57:50 +07:00
Iaroslav Postovalov
306eaecdb1
Remove invalid import 2020-12-20 21:55:20 +07:00
Iaroslav Postovalov
7002bdb5bd
Remove redundant suppression 2020-12-20 21:45:02 +07:00
Iaroslav Postovalov
12d6422065
Fix wrong package 2020-12-20 21:43:04 +07:00
Iaroslav Postovalov
4294bc1b97
Hide bindings from public API 2020-12-20 19:23:10 +07:00
Iaroslav Postovalov
d9932042e8
Delete TS bindings 2020-12-20 19:04:43 +07:00
Iaroslav Postovalov
9a875bc7db
Add missing newline 2020-12-20 19:04:09 +07:00
Iaroslav Postovalov
95701bec1b
Add informative NoSuchElementException message 2020-12-20 19:02:36 +07:00
Iaroslav Postovalov
3cd00b9df6
Inline internal functions with one usage 2020-12-20 18:55:59 +07:00
Iaroslav Postovalov
484b35cb4f
Fix failing tests 2020-12-20 18:34:35 +07:00
Iaroslav Postovalov
a655404486
Fix typo 2020-12-20 17:43:21 +07:00
Iaroslav Postovalov
32d77c0e7f
Implement ESTree based code generation for the MST 2020-12-20 17:42:57 +07:00
Iaroslav Postovalov
a5c00051c2
Merge branch 'feature/dynamic-ops-currying' into feature/estree-codegen 2020-12-20 00:58:17 +07:00
Iaroslav Postovalov
d66fb4be75
Delete empty file 2020-12-20 00:56:08 +07:00
Iaroslav Postovalov
bdd33ca6ca
Add dependencies needed for ESTree codegen 2020-12-20 00:49:48 +07:00
Iaroslav Postovalov
07d6d89192
Replace reflective constructor invocation with method handle 2020-12-09 14:43:37 +07:00
Iaroslav Postovalov
95c1504c00
Add cast microoptimization to AsmBuilder 2020-12-09 11:41:37 +07:00
Iaroslav Postovalov
cc45e3683b
Refactor ASM builder 2020-12-08 16:16:32 +07:00
Iaroslav Postovalov
f001389f4c
Merge branch 'dev' into feature/dynamic-ops-currying
# Conflicts:
#	kmath-core/src/commonMain/kotlin/kscience/kmath/linear/MatrixContext.kt
2020-12-08 15:12:52 +07:00
Iaroslav Postovalov
e62cf4fc65
Rewrite ASM codegen to use curried operators, fix bugs, update benchmarks 2020-12-08 14:42:42 +07:00
5368bb5d4a Readme update 2020-11-30 11:25:21 +03:00
Iaroslav Postovalov
e447a15304
Make MstAlgebra operations return specific types 2020-11-28 13:42:18 +07:00
Iaroslav Postovalov
3e7c9d8dce
Rework unary/binary operation API 2020-11-28 13:37:37 +07:00
Iaroslav Postovalov
29a670483b
Update KG and Maven repos, delete symbol delegate provider, implement working differentiable mst expression based on SFun shape to MST conversion 2020-10-30 01:09:11 +07:00
Iaroslav Postovalov
2b7803290f
Merge branch 'dev' into kotlingrad
# Conflicts:
#	settings.gradle.kts
2020-10-28 18:37:21 +07:00
04d3f4a99f Fix ASM 2020-10-22 09:28:18 +03:00
707ad21f77 New Expression API 2020-10-19 22:51:33 +03:00
Iaroslav Postovalov
06c3ce5aaf
Simplify extensions.kt 2020-10-12 23:42:13 +07:00
Iaroslav Postovalov
4bf430b2c0
Rename converter functions, add symbol delegate provider for MstAlgebra 2020-10-12 23:17:54 +07:00
Iaroslav Postovalov
57bdee4936
Add test, update MstAlgebra a bit to return concrete types 2020-10-12 22:34:05 +07:00
Iaroslav Postovalov
a12c645416
Move to kscience 2020-10-03 23:13:08 +07:00
Iaroslav Postovalov
a465ab64f0
Remove accidentally left main method 2020-10-01 01:21:34 +07:00
Iaroslav Postovalov
7d60fa142d
Remove kotlin-reflect dependency (-2MiB to library size), optimize type copying, optimize reflection usages, optimize lexer 2020-09-30 21:28:39 +07:00
Iaroslav Postovalov
8014b3df0b
Simplify asm.kt 2020-09-25 20:49:08 +07:00
28190f9800 scientifik -> kscience 2020-09-20 22:39:27 +03:00
da742d6c69 Fix things after merge 2020-09-20 22:25:50 +03:00
5032523bbf Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	build.gradle.kts
#	examples/src/main/kotlin/scientifik/kmath/linear/LinearAlgebraBenchmark.kt
#	kmath-ast/build.gradle.kts
#	kmath-ast/src/commonMain/kotlin/scientifik/kmath/ast/MstAlgebra.kt
#	kmath-commons/build.gradle.kts
#	kmath-core/src/commonMain/kotlin/scientifik/kmath/misc/AutoDiff.kt
#	kmath-core/src/commonMain/kotlin/scientifik/kmath/operations/Complex.kt
#	kmath-core/src/commonMain/kotlin/scientifik/kmath/structures/Buffers.kt
#	kmath-core/src/commonMain/kotlin/scientifik/kmath/structures/FlaggedBuffer.kt
#	kmath-core/src/commonMain/kotlin/scientifik/kmath/structures/IntBuffer.kt
#	kmath-core/src/commonMain/kotlin/scientifik/kmath/structures/RealBuffer.kt
#	kmath-core/src/commonMain/kotlin/scientifik/kmath/structures/ShortBuffer.kt
#	kmath-for-real/build.gradle.kts
#	kmath-functions/build.gradle.kts
#	kmath-memory/build.gradle.kts
#	kmath-prob/build.gradle.kts
2020-09-20 21:59:10 +03:00
Alexander Nozik
51b7d4e73e
Merge pull request #140 from mipt-npm/autodiff-update
Upgrade AutoDiff support of trigonometric ops, also fix some problems with MstAlgebra
2020-09-20 18:21:36 +03:00
Iaroslav
b89a05347c
Hotfix some problems with MstAlgebra.kt 2020-09-20 19:26:44 +07:00
Iaroslav
4cebca51ef
Add @author annotations, minor KDoc updates 2020-09-20 19:01:27 +07:00
Iaroslav
5eaeb82a0f
Make one-liners not one-liners, add newlines at EOFs, optimize imports and Kotlin extension configurations 2020-09-20 16:36:48 +07:00
Iaroslav Postovalov
6b79e79d21
Update tools and Kotlin, specify public explicitly, minor contracts refactor 2020-09-09 09:55:26 +07:00
Iaroslav
5e4522bb06
Upgrade build tools plugin to dev version; file reformat; change dependencies' versions; specify visibility explicitly at certain places (core, especially), make some interfaces fun 2020-09-08 16:40:47 +07:00
Iaroslav Postovalov
40888f66d6
Replace opt-in annotations with useExperimentalAnnotation for modules 2020-08-22 16:49:21 +07:00
Iaroslav
1d18832aa6
Provide contracts for many functions, make inline several functions, replace <algebra>.run { and with(<algebra>> { with <algebra> {, add newlines at EOFs, specify operator modifier explicitly at many places, reformat files, replace if (...) error guards with require and check 2020-08-22 02:42:59 +07:00
Iaroslav
6ead822cc3
Fix after-merge issues, provide default implementations for hyperbolic functions, remove their interface 2020-08-09 23:31:49 +07:00
Iaroslav
cb5234a334
Document AST and expressions API, implement ExtendedField over MST and Expression<T> 2020-08-08 04:57:20 +07:00
c2ca7b871d Merge SCI-MR-10 from improved-java-math-big-numbers 2020-07-29 08:39:19 +00:00
Iaroslav
11c98d6acf
Upgrade better-parse to 0.4.0 2020-07-27 23:06:28 +07:00
Iaroslav
0995dca8b8
Delete unchecked cast, revert evaluate changes, add RealField handling "pow" operation 2020-07-27 20:46:57 +07:00
Iaroslav
c64a89c6b6
Implement power as binary operation with unchecked cast, add tests on parser precedence 2020-07-27 19:27:59 +07:00
Iaroslav
a5499260fa
Update num rule to match 1e+1 like numbers 2020-07-27 15:45:05 +07:00