forked from kscience/kmath
atanh as example
This commit is contained in:
parent
8933c820b3
commit
b7e1349ead
@ -1,6 +1,7 @@
|
|||||||
package space.kscience.kmath.tensors.core
|
package space.kscience.kmath.tensors.core
|
||||||
|
|
||||||
import space.kscience.kmath.tensors.AnalyticTensorAlgebra
|
import space.kscience.kmath.tensors.AnalyticTensorAlgebra
|
||||||
|
import kotlin.math.*
|
||||||
|
|
||||||
public class DoubleAnalyticTensorAlgebra:
|
public class DoubleAnalyticTensorAlgebra:
|
||||||
AnalyticTensorAlgebra<Double, DoubleTensor>,
|
AnalyticTensorAlgebra<Double, DoubleTensor>,
|
||||||
@ -63,7 +64,11 @@ public class DoubleAnalyticTensorAlgebra:
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun DoubleTensor.atanh(): DoubleTensor {
|
override fun DoubleTensor.atanh(): DoubleTensor {
|
||||||
TODO("Not yet implemented")
|
return DoubleTensor(
|
||||||
|
this.shape,
|
||||||
|
this.buffer.array().map(::atanh).toDoubleArray(),
|
||||||
|
this.bufferStart
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun DoubleTensor.ceil(): DoubleTensor {
|
override fun DoubleTensor.ceil(): DoubleTensor {
|
||||||
|
Loading…
Reference in New Issue
Block a user