public class Doubles extends Object
Modifier and Type | Method and Description |
---|---|
static List<double[]> |
transform(double[] vec)
Returns a list containing one-dimensional double arrays, one for each entry in the given
array.
|
static List<List<double[]>> |
transform(double[][] mat)
Returns a list containing a list of doubles for each row in the given double matrix.
|
static List<List<double[]>> |
transform(double[][][] tens)
Returns a list containing a list of double arrays for each entry in the given tensor of
doubles.
|
static List<List<double[]>> |
transform(List<double[]> mat)
Returns a list containing a list of doubles for each double array in the given list.
|
static List<List<double[]>> |
transform(Object[] arr)
Returns a list containing a list of double arrays for each entry in the given Object array.
|
public static List<double[]> transform(@NonNull double[] vec)
vec
- an array of doubles.public static List<List<double[]>> transform(@NonNull double[][] mat)
mat
- a matrix of doubles.public static List<List<double[]>> transform(@NonNull List<double[]> mat)
mat
- a list of double arrays.public static List<List<double[]>> transform(@NonNull double[][][] tens)
tens
- a tensor of doubles.public static List<List<double[]>> transform(@NonNull Object[] arr)
arr
- an object array containing one sequence per entry. So each entry is expected to be
a double array or a double matrix.Copyright (C) 2016 Benjamin Paaßen, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/