TensorPrinter<T> constructor

const TensorPrinter<T>({
  1. Printer<T>? valuePrinter,
  2. Printer<String> paddingPrinter = const StandardPrinter<String>(),
  3. Printer<String> ellipsesPrinter = const StandardPrinter<String>(),
  4. bool limit = true,
  5. int leadingItems = 3,
  6. int trailingItems = 3,
  7. String empty = '\u2205',
  8. String openTensor = '[',
  9. String closeTensor = ']',
  10. String horizontalSeparator = ', ',
  11. String verticalSeparator = ',\n',
  12. String horizontalEllipses = '\u2026',
  13. String verticalEllipses = '\u22ee',
})

Implementation

const TensorPrinter({
  this.valuePrinter,
  this.paddingPrinter = const StandardPrinter<String>(),
  this.ellipsesPrinter = const StandardPrinter<String>(),
  this.limit = true,
  this.leadingItems = 3,
  this.trailingItems = 3,
  this.empty = '\u2205',
  this.openTensor = '[',
  this.closeTensor = ']',
  this.horizontalSeparator = ', ',
  this.verticalSeparator = ',\n',
  this.horizontalEllipses = '\u2026',
  this.verticalEllipses = '\u22ee',
});