v0.3.0-dev-9 #324

Merged
altavir merged 265 commits from dev into master 2021-05-08 17:16:29 +03:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 1695fc5075 - Show all commits

View File

@ -5,6 +5,7 @@
package space.kscience.kmath.tensors package space.kscience.kmath.tensors
import space.kscience.kmath.operations.invoke
import space.kscience.kmath.tensors.core.DoubleTensor import space.kscience.kmath.tensors.core.DoubleTensor
import space.kscience.kmath.tensors.core.algebras.DoubleLinearOpsTensorAlgebra import space.kscience.kmath.tensors.core.algebras.DoubleLinearOpsTensorAlgebra
@ -13,7 +14,7 @@ import space.kscience.kmath.tensors.core.algebras.DoubleLinearOpsTensorAlgebra
fun main () { fun main () {
// work in context with linear operations // work in context with linear operations
DoubleLinearOpsTensorAlgebra { DoubleLinearOpsTensorAlgebra.invoke {
// set true value of x // set true value of x
val trueX = fromArray( val trueX = fromArray(

View File

@ -5,6 +5,7 @@
package space.kscience.kmath.tensors package space.kscience.kmath.tensors
import space.kscience.kmath.operations.invoke
import space.kscience.kmath.tensors.core.DoubleTensor import space.kscience.kmath.tensors.core.DoubleTensor
import space.kscience.kmath.tensors.core.algebras.DoubleAnalyticTensorAlgebra import space.kscience.kmath.tensors.core.algebras.DoubleAnalyticTensorAlgebra
import space.kscience.kmath.tensors.core.algebras.DoubleLinearOpsTensorAlgebra import space.kscience.kmath.tensors.core.algebras.DoubleLinearOpsTensorAlgebra
@ -18,7 +19,7 @@ fun main() {
val randSeed = 100500L val randSeed = 100500L
// work in context with linear operations // work in context with linear operations
DoubleLinearOpsTensorAlgebra { DoubleLinearOpsTensorAlgebra.invoke {
// take coefficient vector from normal distribution // take coefficient vector from normal distribution
val alpha = randNormal( val alpha = randNormal(
intArrayOf(5), intArrayOf(5),