mapIndexed

inline fun RealVector.mapIndexed(transform: (index: Int, value: Double) -> Double): RealVector