'Instantiate a new instance of the CPUTensor class setting each element
value to what is specified in ary.
Arguments:
ary (numpy.ndarray): The data structure containing element values
spread across a number of dimensions.  Python
built-in types like ints and lists are
supported.
dtype (dtype, optional): Element data type.  If not specified we
use default_dtype value (\'float32\'
unless overridden).
persist_values (bool, optional): If set to True (the default), the
values assigned to this Tensor
will persist across multiple begin
and end calls.  Setting to False
may provide a performance increase
if values do not need to be
maintained across such calls
Returns:
CPUTensor: newly created data structure reference'

def array(self, ary, dtype=None, name=None, persist_values=True, parallel=False, distributed=False):

    dtype = (self.default_dtype if (dtype is None) else dtype)
    return self.tensor_cls(backend=self, ary=np.array(ary, dtype), dtype=dtype, name=name, persist_values=persist_values)
