Package space.kscience.kmath.real

Types

RealMatrix
Link copied to clipboard
common
typealias RealMatrix = Matrix<Double>
RealVector
Link copied to clipboard
common
typealias RealVector = Point<Double>
VectorL2Norm
Link copied to clipboard
common
object VectorL2Norm : Norm<Point<out Number>, Double>

Functions

appendColumn
Link copied to clipboard
common
inline fun RealMatrix.appendColumn(crossinline mapper: (Buffer<Double>) -> Double): RealMatrix
average
Link copied to clipboard
common
fun RealMatrix.average(): Double
averageByColumn
Link copied to clipboard
common
fun RealMatrix.averageByColumn(): RealBuffer
cos
Link copied to clipboard
common
fun cos(arg: RealMatrix): RealMatrix
fun cos(vector: RealVector): RealVector
div
Link copied to clipboard
common
operator fun Number.div(vector: RealVector): RealVector
operator fun RealMatrix.div(double: Double): RealMatrix
operator fun RealVector.div(number: Number): RealVector
operator fun RealVector.div(other: RealVector): RealVector
dot
Link copied to clipboard
common
infix fun BufferMatrix<Double>.dot(other: BufferMatrix<Double>): BufferMatrix<Double>
Optimized dot product for real matrices
exp
Link copied to clipboard
common
fun exp(arg: RealMatrix): RealMatrix
fun exp(vector: RealVector): RealVector
extractColumn
Link copied to clipboard
common
fun RealMatrix.extractColumn(columnIndex: Int): RealMatrix
extractColumns
Link copied to clipboard
common
fun RealMatrix.extractColumns(columnRange: IntRange): RealMatrix
inverseWithLup
Link copied to clipboard
common
fun RealMatrix.inverseWithLup(): RealMatrix
Inverse a square real matrix using LUP decomposition
invoke
Link copied to clipboard
common
operator fun (Double) -> Double.invoke(ndElement: NDBuffer<Double>): NDBuffer<Double>
Element by element application of any operation on elements to the whole array.
operator fun Buffer.Companion.invoke(vararg doubles: Double): RealVector
ln
Link copied to clipboard
common
fun ln(arg: RealMatrix): RealMatrix
fun ln(vector: RealVector): RealVector
log10
Link copied to clipboard
common
fun log10(arg: RealMatrix): RealMatrix
fun log10(vector: RealVector): RealVector
map
Link copied to clipboard
common
inline fun RealMatrix.map(crossinline transform: (Double) -> Double): RealMatrix
inline fun RealVector.map(transform: (Double) -> Double): RealVector
mapIndexed
Link copied to clipboard
common
inline fun RealVector.mapIndexed(transform: (index: Int, value: Double) -> Double): RealVector
mapInline
Link copied to clipboard
common
inline fun NDBuffer<Double>.mapInline(crossinline transform: RealField.(Double) -> Double): NDBuffer<Double>
Map one NDBuffer using function without indices.
max
Link copied to clipboard
common
fun RealMatrix.max(): Double?
maxByColumn
Link copied to clipboard
common
fun RealMatrix.maxByColumn(): RealBuffer
min
Link copied to clipboard
common
fun RealMatrix.min(): Double?
minByColumn
Link copied to clipboard
common
fun RealMatrix.minByColumn(): RealBuffer
minus
Link copied to clipboard
common
operator fun Double.minus(matrix: RealMatrix): RealMatrix
operator fun Number.minus(vector: RealVector): RealVector
operator fun RealMatrix.minus(double: Double): RealMatrix
operator fun RealMatrix.minus(other: RealMatrix): RealMatrix
operator fun RealVector.minus(number: Number): RealVector
operator fun RealVector.minus(other: RealVector): RealVector
operator fun NDBuffer<Double>.minus(arg: Double): NDBuffer<Double>
Subtraction operation between NDBuffer and single element
plus
Link copied to clipboard
common
operator fun Double.plus(matrix: RealMatrix): RealMatrix
operator fun Number.plus(vector: RealVector): RealVector
operator fun RealMatrix.plus(double: Double): RealMatrix
operator fun RealMatrix.plus(other: RealMatrix): RealMatrix
operator fun RealVector.plus(number: Number): RealVector
operator fun RealVector.plus(other: RealVector): RealVector
operator fun NDBuffer<Double>.plus(arg: Double): NDBuffer<Double>
Summation operation for NDBuffer and single element
pow
Link copied to clipboard
common
fun RealMatrix.pow(p: Double): RealMatrix
fun RealMatrix.pow(p: Int): RealMatrix
fun RealVector.pow(p: Double): RealVector
fun RealVector.pow(p: Int): RealVector
realMatrix
Link copied to clipboard
common
fun realMatrix(rowNum: Int, colNum: Int, initializer: (i: Int, j: Int) -> Double): RealMatrix
repeatStackVertical
Link copied to clipboard
common
fun RealMatrix.repeatStackVertical(n: Int): RealMatrix
same
Link copied to clipboard
common
fun Buffer.Companion.same(size: Int, value: Number): RealVector
Fill the vector of given size with given value
sin
Link copied to clipboard
common
fun sin(arg: RealMatrix): RealMatrix
fun sin(vector: RealVector): RealVector
sqrt
Link copied to clipboard
common
fun sqrt(arg: RealMatrix): RealMatrix
fun sqrt(vector: RealVector): RealVector
square
Link copied to clipboard
common
fun RealMatrix.square(): RealMatrix
fun RealVector.square(): RealVector
step
Link copied to clipboard
common
infix fun ClosedFloatingPointRange<Double>.step(step: Double): RealVector
sum
Link copied to clipboard
common
fun RealMatrix.sum(): Double
sumByColumn
Link copied to clipboard
common
fun RealMatrix.sumByColumn(): RealBuffer
tan
Link copied to clipboard
common
fun tan(arg: RealMatrix): RealMatrix
fun tan(vector: RealVector): RealVector
times
Link copied to clipboard
common
operator fun Double.times(matrix: RealMatrix): RealMatrix
operator fun Number.times(vector: RealVector): RealVector
operator fun RealMatrix.times(double: Double): RealMatrix
operator fun RealMatrix.times(other: RealMatrix): RealMatrix
operator fun RealVector.times(number: Number): RealVector
operator fun RealVector.times(other: RealVector): RealVector
toMatrix
Link copied to clipboard
common
fun Array<DoubleArray>.toMatrix(): RealMatrix
fun Sequence<DoubleArray>.toMatrix(): RealMatrix
toSequenceWithPoints
Link copied to clipboard
common
fun ClosedFloatingPointRange<Double>.toSequenceWithPoints(numPoints: Int): Sequence<Double>
Convert double range to sequence with the fixed number of points
toSequenceWithStep
Link copied to clipboard
common
fun ClosedFloatingPointRange<Double>.toSequenceWithStep(step: Double): Sequence<Double>
Convert double range to sequence.
unaryMinus
Link copied to clipboard
common
operator fun RealVector.unaryMinus(): Buffer<Double>