All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.platon.pulsar.common.math.vectors.Vectors.kt Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package ai.platon.pulsar.common.math.vectors

import org.apache.commons.math3.linear.RealVector

operator fun RealVector.set(index: Int, value: Double) { setEntry(index, value) }

operator fun RealVector.get(index: Int): Double { return getEntry(index) }

val RealVector.isEmpty: Boolean get() = dimension == 0

val RealVector.isNotEmpty: Boolean get() = !isEmpty




© 2015 - 2025 Weber Informatics LLC | Privacy Policy