Commit Graph

591 Commits

Author SHA1 Message Date
AlyaNovikova
2d2c4bd474 add broadcast of all dims except the last 2, add tensors dot, fix bug in function times 2021-03-23 14:53:54 +03:00
Iaroslav Postovalov
67aa173927
Some documentation updates 2021-03-22 16:11:54 +07:00
Roland Grinis
0365d41f31 Merged PR 2021-03-21 17:57:19 +00:00
Andrei Kislitsyn
df402086da init test for analytic algebra 2021-03-21 19:08:30 +03:00
Andrei Kislitsyn
8e9a85078e Merge remote-tracking branch 'ups/feature/tensor-algebra' into andrew 2021-03-21 19:05:14 +03:00
Andrei Kislitsyn
fa78ed1f45 map and analytic funcions 2021-03-21 19:05:11 +03:00
Roland Grinis
d8ef190ed8 UnaryPlus fails API check 2021-03-21 08:07:17 +00:00
Roland Grinis
94e5ee4a6d TensorLinearStructure introduced 2021-03-21 08:01:52 +00:00
Roland Grinis
510c855a65 Merge dev, API check failed 2021-03-21 07:41:48 +00:00
Roland Grinis
b7e1349ead atanh as example 2021-03-20 18:59:54 +00:00
Roland Grinis
8933c820b3 merge PR 2021-03-19 20:32:57 +00:00
Andrei Kislitsyn
a0534b896f resolve conflict 2021-03-19 23:26:54 +03:00
Roland Grinis
93d3cb47be Testing linear structure 2021-03-19 20:10:08 +00:00
Roland Grinis
3535e51248 Broadcasting as its own algebra 2021-03-19 19:52:58 +00:00
Roland Grinis
274be61330 Explicit broadcasting enforced 2021-03-19 19:40:17 +00:00
Andrei Kislitsyn
5e94610e28 imp full and remove copypaste in geners 2021-03-19 17:51:30 +03:00
aeceb4a337 Move dataset to core 2021-03-19 14:53:14 +03:00
88d0c19a74 Refactor structure features. Basic curve fitting 2021-03-19 11:07:27 +03:00
Iaroslav Postovalov
c4367ac509
Merge branch 'dev' into commandertvis/issue226
# Conflicts:
#	kmath-histograms/src/commonMain/kotlin/space/kscience/kmath/histogram/Counter.kt
2021-03-17 23:57:50 +07:00
Andrei Kislitsyn
1fa0da2810 complete lu and matrix mapping 2021-03-17 17:53:14 +03:00
Roland Grinis
efb23591a9 Added squeeze 2021-03-17 07:36:35 +00:00
248d42c4e0 Remove MutableBufferND 2021-03-16 22:46:22 +03:00
90981f6a40 Remove contentEquals from Buffer 2021-03-16 21:56:09 +03:00
a3ca06a241 Remove StructureND identity #248 2021-03-16 21:43:29 +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
Roland Grinis
bd3425e7a5 IndexTensor type added to LinearOps 2021-03-16 14:43:20 +00:00
Roland Grinis
138d376289 Merge commit 'refs/pull/247/head' of ssh://git.jetbrains.space/mipt-npm/sci/kmath into feature/tensor-algebra 2021-03-16 14:01:14 +00:00
Roland Grinis
70bebbe848 1D mutable structure setter fixed 2021-03-16 12:12:28 +00:00
AlyaNovikova
99ee5aa54a add broadcast to functions 2021-03-16 14:57:19 +03:00
Roland Grinis
0553a28ee8 ReduceOpsTensorAlgebra 2021-03-16 07:47:02 +00:00
Roland Grinis
f4454a6cf6 Matrices from tensors test 2021-03-15 22:45:55 +00:00
Roland Grinis
791f55ee8a get dim 0 operator for tensors 2021-03-15 22:39:29 +00:00
Roland Grinis
7cb5cd8f71 BufferedTensor revisited 2021-03-15 22:11:15 +00:00
Roland Grinis
f8e0d4be17 MutableStructure 2D & 1D 2021-03-15 21:18:15 +00:00
Roland Grinis
b227a82a80 OrderedTensorAlgebra 2021-03-15 19:06:33 +00:00
Roland Grinis
b6a5fbfc14 Sync with Andrew 2021-03-15 17:08:45 +00:00
Roland Grinis
f66ac653e0 RealTensor to DoubleTensor rename 2021-03-15 16:59:50 +00:00
71ed56c2b6 Move features to scopes 2021-03-15 16:46:12 +03:00
Roland Grinis
a3ca861ebe Rename FFTs 2021-03-15 13:05:45 +00:00
Roland Grinis
50ed7ce28b ComplexTensorAlgebra interface 2021-03-15 12:54:46 +00:00
Andrei Kislitsyn
2d2c5aa684 matrixhelper 2021-03-15 15:18:21 +03:00
d9743978ab Reformat code 2021-03-15 14:26:59 +03:00
0e0deaeb72 Refactor buffer factories 2021-03-15 14:26:17 +03:00
Roland Grinis
4e4690e510 unsafe buffer casts moved to internal utils 2021-03-15 08:48:31 +00:00
Roland Grinis
04f6ef1ed0 Fixed tests with unsafe accessors 2021-03-15 08:31:19 +00:00
Roland Grinis
39a0889123 Dev merge assemble fixed, tests still broken 2021-03-15 07:50:20 +00:00
Roland Grinis
7d416f55d4 Merge branch 'dev' into feature/tensor-algebra 2021-03-15 07:29:02 +00:00
Roland Grinis
c02f71263d Adding the interfaces for AnalyticTensorAlgebra and LinearOpsTensorAlgebra 2021-03-14 21:18:20 +00:00
Alexander Nozik
8af2f5eb31
Merge pull request #241 from mipt-npm/refactor/linear-algebra
Refactor/linear algebra
2021-03-14 21:49:47 +03:00
6c451b5ca7 fix doc typo 2021-03-14 15:09:04 +03:00
e01f90b5e0 add gradient example 2021-03-14 14:40:13 +03:00
0cc68e72ce cleanup 2021-03-14 09:59:53 +03:00
8179be2f62 cleanup 2021-03-14 09:55:24 +03:00
0aa73cd48f Vector space refactor (optimization) 2021-03-14 09:43:22 +03:00
Roland Grinis
384415dc98 utils module for tensors 2021-03-13 19:16:13 +00:00
be9398b322 Vector space refactor 2021-03-13 21:22:18 +03:00
Andrei Kislitsyn
8f88a101d2 complete lu for matrix 2021-03-13 20:51:15 +03:00
Andrei Kislitsyn
3e0d152c1b resolve mc 2021-03-13 19:32:34 +03:00
Andrei Kislitsyn
0911efd4aa add buffered tensor + lu 2021-03-13 19:30:58 +03:00
5e6f65a181 WIP Matrix refactor 2021-03-13 18:19:10 +03:00
d5ba816b7d WIP Matrix refactor 2021-03-13 18:00:47 +03:00
19d3998c3b WIP vector space refactor 2021-03-13 10:10:00 +03:00
9bc8e8fbf9 WIP vector space refactor 2021-03-12 22:52:18 +03:00
Iaroslav Postovalov
d562541965
Improve conversion functions for Buffer 2021-03-12 23:23:10 +07:00
Roland Grinis
03cc6a310b Merge PR and check transpose 2021-03-12 15:11:33 +00:00
AlyaNovikova
626d5c98fa change IllegalArgumentException to RuntimeException 2021-03-12 15:43:44 +03:00
AlyaNovikova
70e1861e53 remove extra import 2021-03-12 15:25:47 +03:00
AlyaNovikova
454d574ccd add broadcast and functions plus and minus 2021-03-12 15:20:46 +03:00
Iaroslav Postovalov
993bba3133
Fix #226 2021-03-12 19:03:56 +07:00
Andrei Kislitsyn
95b814e163 add fromMatrix 2021-03-12 14:29:51 +03:00
Andrei Kislitsyn
f9500f44ec new tensor def 2021-03-12 13:50:06 +03:00
Roland Grinis
bb4894b87e removing assignement for non operator members 2021-03-11 21:46:35 +00:00
AlyaNovikova
723e0e458e add functions transpose and transposeAssign 2021-03-11 23:04:42 +03:00
Alexander Nozik
f449bdd58f
Merge pull request #219 from mipt-npm/refactor/algebra-scale
Fully refactor algebra split ScaleOperations from Space.
2021-03-11 11:28:54 +03:00
803f298d8b Make vector spaces great again 2021-03-11 11:28:10 +03:00
522f39cef3 replace Space by Group 2021-03-10 22:09:19 +03:00
Iaroslav Postovalov
39b41cc2ae
Fix #223 2021-03-10 22:40:43 +07:00
6a5ca2a115 Code review. 2021-03-10 18:02:04 +03:00
Roland Grinis
3a37b88b5c Fixed getting value test for tensors 2021-03-09 21:13:48 +00:00
Your Name
fe55856a26 basic implements & refactor tensor structure & and new tensor algebra methods 2021-03-09 22:18:46 +03:00
8ae8ebe871 Fully refactor algebra split ScaleOperations from Space. 2021-03-08 21:03:48 +03:00
Roland Grinis
90f4ff06fd Basic tasks for Alya and Andrei 2021-03-04 13:22:28 +00:00
Roland Grinis
ed007589cf LU decomposition set up 2021-03-02 14:54:07 +00:00
Roland Grinis
4aa1df0628 Safe item method and view_as added 2021-03-02 09:32:36 +00:00
Roland Grinis
f15ac20323 Cannot afford to inherit from RingWithNumbers 2021-03-01 22:52:58 +00:00
Roland Grinis
7c38b16f17 Initial draft for RealTensor and RealTensorALgebra 2021-03-01 21:43:04 +00:00
Roland Grinis
477f7dd079 Deprecating div methods 2021-03-01 13:01:15 +00:00
Roland Grinis
2ea6d0bfdd Merging dev 2021-03-01 12:47:20 +00:00
1ad305ba34 Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	kmath-core/api/kmath-core.api
#	kmath-core/src/commonMain/kotlin/space/kscience/kmath/linear/MatrixContext.kt
2021-02-19 13:50:49 +03:00
6581f3dd8a Cleanup 2021-02-19 13:38:32 +03:00
Iaroslav Postovalov
84adce13c9
Merge pull request #148 from mipt-npm/gsl-experiment
Changes for upcoming GSL extension project
2021-02-19 17:34:27 +07:00
Iaroslav Postovalov
ef97386033
Fix typo 2021-02-19 17:34:02 +07:00
209e17cd42 Merge histograms 2021-02-19 10:52:56 +03: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
Alexander Nozik
ee4c348294
Merge pull request #203 from mipt-npm/refactor/histograms
Refactor/histograms
2021-02-18 18:05:03 +03:00
8485d28872 Change package name to space.kscience 2021-02-18 11:17:28 +03:00
Iaroslav Postovalov
090f93ab7b
Merge branch 'dev' into gsl-experiment 2021-02-17 21:24:40 +07:00
Iaroslav Postovalov
acfff40d96
Fix my mistakes in descriptions of core algebraic structures 2021-02-13 21:05:01 +07:00
987997cc02 Histograms refactor 2021-02-12 22:43:35 +03:00
Iaroslav Postovalov
d69a04bb6e
Merge branch 'dev' into feature/mp-samplers 2021-02-12 20:58:03 +07:00
Iaroslav Postovalov
228b55f5ea
Merge branch 'dev' into gsl-experiment
# Conflicts:
#	CHANGELOG.md
#	gradle.properties
#	kmath-core/src/commonMain/kotlin/kscience/kmath/linear/MatrixContext.kt
#	kmath-stat/build.gradle.kts
2021-02-11 17:28:22 +07:00
Alexander Nozik
bca36529a5
Merge pull request #183 from mipt-npm/commandertvis/hermitian-conjugate
Add transposeConjugate function for Complex and Double (conjugates are not cached). Minor refactoring of MatrixContext and API reference changes
2021-02-11 11:06:38 +03:00
Iaroslav Postovalov
78dc3ee985
Merge branch 'dev' into commandertvis/hermitian-conjugate 2021-02-09 18:13:03 +07:00
Iaroslav Postovalov
b06f96c335
Move complex related tests from kmath-core to kmath-complex 2021-02-09 18:11:54 +07:00
Iaroslav Postovalov
39f2c6c3f4
Merge branch 'dev' into feature/mp-samplers 2021-02-07 02:58:10 +07:00
Iaroslav Postovalov
a5cdf7c297
Merge branch 'dev' into gsl-experiment 2021-02-07 02:46:24 +07:00
Iaroslav Postovalov
73969da969
Merge branch 'dev' into feature/quaternion
# Conflicts:
#	CHANGELOG.md
#	kmath-complex/src/commonMain/kotlin/kscience/kmath/complex/Complex.kt
2021-02-07 02:31:54 +07:00
Iaroslav Postovalov
b1c9bff07f
Merge branch 'dev' into feature/quaternion 2021-02-07 02:22:55 +07:00
Iaroslav Postovalov
49da84b223
Merge branch 'dev' into gsl-experiment 2021-02-06 23:12:38 +07:00
Iaroslav Postovalov
9210bc9198
Merge branch 'dev' into feature/mp-samplers 2021-02-06 23:12:16 +07:00
86263f602a Remove inline from Random-based RandomGenerator.kt to work around https://youtrack.jetbrains.com/issue/KT-44703 2021-02-04 13:24:54 +03:00
2738496447 Histogram API update 2021-02-04 11:00:08 +03:00
cde9d85a96 Fix symbol delegate after build work-around for https://youtrack.jetbrains.com/issue/KT-4012 2021-02-01 12:58:56 +03:00
8f101c5cd0 Fix symbol delegate after build work-around for https://youtrack.jetbrains.com/issue/KT-4012 2021-02-01 12:34:30 +03:00
Iaroslav Postovalov
955e95690d
Merge branch 'dev' into gsl-experiment 2021-01-30 17:20:36 +07:00
Iaroslav Postovalov
4f78286756
Fix after-merge problems 2021-01-30 17:19:46 +07:00
Iaroslav Postovalov
70c0b614a3
Merge branch 'dev' into feature/quaternion
# Conflicts:
#	CHANGELOG.md
#	examples/src/main/kotlin/kscience/kmath/operations/ComplexDemo.kt
#	examples/src/main/kotlin/kscience/kmath/structures/ComplexND.kt
#	kmath-complex/src/commonMain/kotlin/kscience/kmath/complex/ComplexNDField.kt
#	kmath-core/src/commonMain/kotlin/kscience/kmath/structures/NDAlgebra.kt
#	kmath-core/src/commonTest/kotlin/kscience/kmath/structures/NDFieldTest.kt
2021-01-29 17:00:57 +07:00
Iaroslav Postovalov
5c982df36a
Merge branch 'dev' into commandertvis/hermitian-conjugate
# Conflicts:
#	kmath-core/src/commonMain/kotlin/kscience/kmath/linear/VirtualMatrix.kt
#	kmath-core/src/commonMain/kotlin/kscience/kmath/nd/Structure2D.kt
2021-01-29 16:54:42 +07:00
45866b500f Merge remote-tracking branch 'origin/dev' into refactor/ndalgebra
# Conflicts:
#	CHANGELOG.md
#	examples/src/benchmarks/kotlin/kscience/kmath/benchmarks/LinearAlgebraBenchmark.kt
#	kmath-commons/src/main/kotlin/kscience/kmath/commons/linear/CMMatrix.kt
#	kmath-for-real/src/commonMain/kotlin/kscience/kmath/real/RealMatrix.kt
2021-01-28 20:07:43 +03:00
Iaroslav Postovalov
6503ed4cde
Merge branch 'dev' into commandertvis/cm-decompositions 2021-01-25 17:38:27 +07:00
Iaroslav Postovalov
b20081f161
Fix capitalization of LUP related references (LUP -> Lup) 2021-01-24 22:12:43 +07:00
aff7bbab41 Matrix performance optimization 2021-01-24 17:07:19 +03:00
9829a16a32 Optimize Real NDField 2021-01-24 10:15:16 +03:00
1cb41f4dc2 Optimize Real NDField 2021-01-23 22:16:27 +03:00
Iaroslav Postovalov
35a1b91329
Merge branch 'dev' into commandertvis/hermitian-conjugate
# Conflicts:
#	kmath-core/src/commonMain/kotlin/kscience/kmath/linear/FeaturedMatrix.kt
#	kmath-core/src/commonMain/kotlin/kscience/kmath/linear/VirtualMatrix.kt
2021-01-24 02:02:20 +07:00
Iaroslav Postovalov
9342824c96
Merge branch 'dev' into feature/quaternion 2021-01-24 02:00:22 +07:00
Iaroslav Postovalov
624460c52d
Merge branch 'dev' into feature/mp-samplers
# Conflicts:
#	examples/src/main/kotlin/kscience/kmath/stat/DistributionBenchmark.kt
#	kmath-core/src/commonMain/kotlin/kscience/kmath/structures/Structure2D.kt
2021-01-24 01:55:32 +07:00
0baec14059 [WIP] Refactor NDStructures 2021-01-23 21:50:48 +03:00
Iaroslav Postovalov
904a0f3525
Merge branch 'dev' into gsl-experiment 2021-01-24 01:49:43 +07:00
Iaroslav Postovalov
d9ebadd22a
Implement LUP decomposition in GSL module 2021-01-24 01:46:07 +07:00
332c04b573 [WIP] Refactor NDStructures 2021-01-23 19:19:13 +03:00
061398b009 [WIP] Refactor NDStructures 2021-01-22 23:22:24 +03:00
Iaroslav Postovalov
a3cf13b678
Merge branch 'dev' into commandertvis/cm-decompositions
# Conflicts:
#	kmath-commons/src/main/kotlin/kscience/kmath/commons/linear/CMMatrix.kt
2021-01-21 18:43:03 +07:00
d10ae66e58 Deploy fixes for 0.2.0-dev-5 2021-01-20 17:08:29 +03:00
881b85a1d9 Add origin (optin) extension property to expose MatrixWrapper content 2021-01-20 15:32:55 +03:00
d00e7434a4 Fix for #193 2021-01-20 15:07:39 +03:00
Iaroslav Postovalov
8019ac6802
Merge branch 'dev' into gsl-experiment 2021-01-20 16:52:29 +07:00
Iaroslav Postovalov
f3c602115a
Merge branch 'dev' into commandertvis/cm-decompositions
# Conflicts:
#	kmath-ejml/src/main/kotlin/kscience/kmath/ejml/EjmlMatrix.kt
2021-01-20 16:51:12 +07:00
9011579d2c [WIP] Tensor algebra design 2021-01-20 11:43:01 +03:00
Iaroslav Postovalov
2d1d6c008e
Fix after-merge problems 2021-01-20 15:07:12 +07:00
Iaroslav Postovalov
94a6d5a114
Fix after-merge problems 2021-01-20 14:56:09 +07:00
9ef32db236 Merge branch 'dev' into altavir/tensor-algebra 2021-01-19 23:08:36 +03:00
1c7bd05c58 Add proper equality check for EJML matrices 2021-01-19 22:48:43 +03:00
d0c9d97706 Minor optimization for RealNDAlgebra 2021-01-19 22:29:19 +03:00
a11711c336 Tensor algebra refactoring 2021-01-19 22:25:04 +03:00
360e0e17e9 Minor optimization for RealNDAlgebra 2021-01-19 22:24:42 +03: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
Iaroslav Postovalov
f711fe3d35
Merge branch 'dev' into gsl-experiment
# Conflicts:
#	CHANGELOG.md
2021-01-20 00:34:19 +07:00
Iaroslav Postovalov
57b1157650
Reformat, bring back the features of CMMatrix with the new API, add missing features in QRDecomposition in EjmlMatrix 2021-01-20 00:28:39 +07:00