filled_tensor
Overloads
| Name | Description |
|---|---|
filled_tensor(const List<integer> shape, const complex value) -> ComplexTensor | generate an array of Complex values filled with a constant value and the specified shape |
filled_tensor(const List<integer> shape, integer value) -> ComplexTensor | generate an array of Complex values filled with a constant value and the specified shape |
filled_tensor(const List<integer> shape, real value) -> ComplexTensor | generate an array of Complex values filled with a constant value and the specified shape |
filled_tensor(const List<integer> shape, const complex value, as_complex as_complex) -> ComplexTensor | generate an array of Complex values filled with a constant value and the specified shape |
filled_tensor(const List<integer> shape, integer value, as_complex as_complex) -> ComplexTensor | generate an array of Complex values filled with a constant value and the specified shape |
filled_tensor(const List<integer> shape, integer value, as_real as_real) -> RealTensor | generate an array of Real values filled with a constant value and the specified shape |
filled_tensor(const List<integer> shape, const real value, as_real as_real) -> RealTensor | generate an array of Real values filled with a constant value and the specified shape |
filled_tensor(const List<integer> shape, real value, as_complex as_complex) -> ComplexTensor | generate an array of Complex values filled with a constant value and the specified shape |
filled_tensor(const List<integer> shape, const complex value) -> ComplexTensor
generate an array of Complex values filled with a constant value and the specified shape
Parameters
- shape: list of positive integers specifying the size along each dimensions of the array
- value: the constant value to fill the array with
filled_tensor(const List<integer> shape, integer value) -> ComplexTensor
generate an array of Complex values filled with a constant value and the specified shape
Parameters
- shape: list of positive integers specifying the size along each dimensions of the array
- value: the constant value to fill the array with
filled_tensor(const List<integer> shape, real value) -> ComplexTensor
generate an array of Complex values filled with a constant value and the specified shape
Parameters
- shape: list of positive integers specifying the size along each dimensions of the array
- value: the constant value to fill the array with
filled_tensor(const List<integer> shape, const complex value, as_complex as_complex) -> ComplexTensor
generate an array of Complex values filled with a constant value and the specified shape
Parameters
- shape: list of positive integers specifying the size along each dimensions of the array
- value: the constant value to fill the array with
- as_complex: desired scalar type
filled_tensor(const List<integer> shape, integer value, as_complex as_complex) -> ComplexTensor
generate an array of Complex values filled with a constant value and the specified shape
Parameters
- shape: list of positive integers specifying the size along each dimensions of the array
- value: the constant value to fill the array with
- as_complex: desired scalar type
filled_tensor(const List<integer> shape, integer value, as_real as_real) -> RealTensor
generate an array of Real values filled with a constant value and the specified shape
Parameters
- shape: list of positive integers specifying the size along each dimensions of the array
- value: the constant value to fill the array with
- as_real: desired scalar type
filled_tensor(const List<integer> shape, const real value, as_real as_real) -> RealTensor
generate an array of Real values filled with a constant value and the specified shape
Parameters
- shape: list of positive integers specifying the size along each dimensions of the array
- value: the constant value to fill the array with
- as_real: desired scalar type
filled_tensor(const List<integer> shape, real value, as_complex as_complex) -> ComplexTensor
generate an array of Complex values filled with a constant value and the specified shape
Parameters
- shape: list of positive integers specifying the size along each dimensions of the array
- value: the constant value to fill the array with
- as_complex: desired scalar type