TensorPrinter<T> class
Constructors
-
TensorPrinter({Printer<
T> ? valuePrinter, Printer<String> paddingPrinter = const StandardPrinter<String>(), Printer<String> ellipsesPrinter = const StandardPrinter<String>(), bool limit = true, int leadingItems = 3, int trailingItems = 3, String empty = '\u2205', String openTensor = '[', String closeTensor = ']', String horizontalSeparator = ', ', String verticalSeparator = ',\n', String horizontalEllipses = '\u2026', String verticalEllipses = '\u22ee'}) -
const
Properties
- closeTensor → String
-
final
- defaultToStringPrinter → ObjectPrinter
-
Override to configure the empty
ObjectPrinter
.no setterinherited -
ellipsesPrinter
→ Printer<
String> -
final
- empty → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalEllipses → String
-
final
- horizontalSeparator → String
-
final
- leadingItems → int
-
final
- limit → bool
-
final
- openTensor → String
-
final
-
paddingPrinter
→ Printer<
String> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toStringPrinter → ObjectPrinter
-
Override and call super to add values to the
ObjectPrinter
.no setterinherited - trailingItems → int
-
final
-
valuePrinter
→ Printer<
T> ? -
final
- verticalEllipses → String
-
final
- verticalSeparator → String
-
final
Methods
-
call(
Tensor< T> object) → String -
Prints the
object
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
print(
Tensor< T> object) → String -
Returns the printed
object
.inherited -
printOn(
Tensor< T> object, StringBuffer buffer) → void -
Prints the
object
intobuffer
. -
toString(
) → String -
Standard
toString
implementation. Do not override, instead implement toStringPrinter to customize.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited