ComplexTensor

ComplexTensor ComplexTensor(IntArray shape, Array<ComplexDouble> data)

makes a new tensor with a given shape and data. If data is not given, it will generate a zero tensor.

Parameters

shape

tensor shape.

data

must fit into the shape of this tensor.