Skip to contents

Prints an array value to the console during JIT execution and returns the input unchanged. Useful for debugging.

Usage

nv_print(operand)

Arguments

operand

(arrayish)
Operand.

Value

arrayish
Returns operand unchanged.

See also

prim_print() for the underlying primitive.

Examples

x <- nv_array(c(1, 2, 3))
nv_print(x)
#> AnvlArray
#>  1
#>  2
#>  3
#> [ f32{3} ]
#> AnvlArray
#>  1
#>  2
#>  3
#> [ CPUf32{3} ]