public class NDArrayStrings extends Object
Constructor and Description |
---|
NDArrayStrings() |
NDArrayStrings(int precision)
Specify the number of digits after the decimal point to include
|
NDArrayStrings(String colSep) |
NDArrayStrings(String colSep,
int precision)
Specify a delimiter for elements in columns for 2d arrays (or in the rank-1th dimension in higher order arrays)
Separator in elements in remaining dimensions defaults to ",\n"
|
NDArrayStrings(String colSep,
String decFormat)
Specify a col separator and a decimal format string
|
Modifier and Type | Method and Description |
---|---|
String |
format(INDArray arr) |
String |
format(INDArray arr,
boolean summarize)
Format the given ndarray as a string
|
public NDArrayStrings()
public NDArrayStrings(String colSep)
public NDArrayStrings(int precision)
precision
- public NDArrayStrings(String colSep, int precision)
colSep
- field separating columns;precision
- digits after decimal pointpublic String format(INDArray arr)
arr
- public String format(INDArray arr, boolean summarize)
arr
- the array to formatsummarize
- If true and the number of elements in the array is greater than > 1000 only the first three and last elements in any dimension will printCopyright © 2018. All rights reserved.