@PublicEvolving public class Vectors extends Object
Constructor and Description |
---|
Vectors() |
Modifier and Type | Method and Description |
---|---|
static DenseVector |
dense(double... values)
Creates a dense vector from its values.
|
static SparseVector |
sparse(int size,
int[] indices,
double[] values)
Creates a sparse vector from its values.
|
public static DenseVector dense(double... values)
public static SparseVector sparse(int size, int[] indices, double[] values)
Copyright © 2019–2023 The Apache Software Foundation. All rights reserved.