类 VectorUtils


  • public class VectorUtils
    extends Object
    Provides utility functions for Vector.
    • 构造器详细资料

      • VectorUtils

        public VectorUtils()
    • 方法详细资料

      • selectByIndices

        public static org.apache.flink.ml.linalg.Vector selectByIndices​(org.apache.flink.ml.linalg.Vector vector,
                                                                        int[] sortedIndices)
        Selects a subset of the vector base on the indices. Note that the input indices must be sorted in ascending order.