Function constant

Creates a constant with the given type.

Operation constant (
  dopt.core.types.TensorType type,
  void[] val,
  string mod = __MODULE__,
  ulong line = cast(ulong)__LINE__
);

Parameters

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

Returns

The newly created constant