IO
Module
Provides utilities for working with input/output.
print
print()
Print a newline.
print(t: DType)
Print a DType.
Args:
- t (
DType
): The DType to print.
print(x: String)
Print a string.
Args:
- x (
String
): The string to print.
print(x: StringRef)
Print a string.
Args:
- x (
StringRef
): The string to print.
print(x: StringLiteral)
Print a string.
Args:
- x (
StringLiteral
): The string to print.
print(x: Bool)
Print a boolean value.
Args:
- x (
Bool
): The value to print.
print(x: FloatLiteral)
Print a float literal.
Args:
- x (
FloatLiteral
): The value to print.
print(x: Int)
Print an integer value.
Args:
- x (
Int
): The value to print.
print[simd_width: Int, type: DType](simd_vec: SIMD[type, simd_width])
Print a SIMD value.
Parameters:
- simd_width (
Int
): The SIMD vector width. - type (
DType
): The DType of the value.
Args:
- simd_vec (
SIMD[type, simd_width]
): The SIMD value to print.
print[type: DType](x: Atomic[type])
Print an atomic value.
Parameters:
- type (
DType
): The DType of the atomic value.
Args:
- x (
Atomic[type]
): The value to print.
print[length: Int](shape: DimList)
Print a DimList object.
Parameters:
- length (
Int
): The length of the DimList.
Args:
- shape (
DimList
): The DimList object to print.
print(obj: object)
Print an object type.
Args:
- obj (
object
): The object to print.
print(*elements: _Printable)
Print a sequence of elements, joined by spaces, followed by a newline.
Args:
- elements (
*_Printable
): The elements to print.
print_no_newline
print_no_newline(*elements: _Printable)
Print a sequence of elements, joined by spaces.
Args:
- elements (
*_Printable
): The elements to print.
put_new_line
put_new_line()
Print a new line character.