Skip to main content

zero_tensor

Overloads

NameDescription
zero_tensor(const List<integer> shape) -> ComplexTensorgenerate an array of Complex values filled with zeros and the specified shape
zero_tensor(const List<integer> shape, as_real as_real) -> RealTensorgenerate an array of Real values filled with zeros and the specified shape
zero_tensor(const List<integer> shape, as_complex as_complex) -> ComplexTensorgenerate an array of Complex values filled with zeros and the specified shape

zero_tensor(const List<integer> shape) -> ComplexTensor

generate an array of Complex values filled with zeros and the specified shape

Parameters

  • shape: list of positive integers specifying the size along each dimensions of the array

zero_tensor(const List<integer> shape, as_real as_real) -> RealTensor

generate an array of Real values filled with zeros and the specified shape

Parameters

  • shape: list of positive integers specifying the size along each dimensions of the array
  • as_real: desired scalar type

zero_tensor(const List<integer> shape, as_complex as_complex) -> ComplexTensor

generate an array of Complex values filled with zeros and the specified shape

Parameters

  • shape: list of positive integers specifying the size along each dimensions of the array
  • as_complex: desired scalar type