int32Constant

Creates a constant with the given shape and int32 values.

  1. Operation int32Constant(size_t[] size, int[] val, string mod, size_t line)
    int32Constant
    (
    size_t[] size
    ,
    int[] val
    ,
    string mod = __MODULE__
    ,
    size_t line = __LINE__
    )
  2. Operation int32Constant(int val, string mod, size_t line)

Parameters

size size_t[]

The shape of the constant

val int[]

The value of the constant. The array should store the elements in row major order.

Return Value

Type: Operation

The newly created constant

Meta