Start index in BigDL.
Start index in BigDL. We count from 1.
create a tensor with a given spark Densematrix.
create a tensor with a given spark Densematrix. The tensor will have the same size with the given spark Densematrix.
create a tensor with a given breeze matrix.
create a tensor with a given breeze matrix. The tensor will have the same size with the given breeze matrix.
the given breeze matrix
create a tensor with a given spark Densevector.
create a tensor with a given spark Densevector. The tensor will have the same size with the given spark Densevector.
the given spark Densevector
create a tensor with a given breeze vector.
create a tensor with a given breeze vector. The tensor will have the same size with the given breeze vector.
the given breeze vector
create a tensor with a given tensor.
create a tensor with a given tensor. The tensor will have same size with the given tensor.
the given tensor
Returns a tensor which uses the existing Storage storage, starting at position storageOffset (>=1).
Returns a tensor which uses the existing Storage storage, starting at position storageOffset (>=1). The size of each dimension of the tensor is given by the optional Array size. If not given, the size will be computed as the length of storage. The jump necessary to go from one element to the next one in each dimension is given by the optional Array stride. If not given, the stride() will be computed such that the tensor is as contiguous as possible in memory.
Returns a tensor with the given array and shape
Returns a tensor with the given array and shape
the given storage
the given shape
Returns a tensor which uses the existing Storage storage.
Returns a tensor which uses the existing Storage storage.
the given storage
Create a tensor on given sizes.
Create a tensor on given sizes. The tensor size will be the product of sizes
Create a tensor on given dimensions.
Create a tensor on given dimensions. The tensor size will be the product of dims
Create a tensor with a table
Create a tensor with a table
the table contains a multi-dimensional numbers
a new Tensor
Create a tensor up to 5 dimensions.
Create a tensor up to 5 dimensions. The tensor size will be d1 x d2 x d3 x d4 x d5
.
Returns an empty tensor.
Returns an empty tensor.
Transform a sparseTensor to DenseTensor.
Transform a sparseTensor to DenseTensor.
a sparse tensor
if defined, override to res, else will generate a new tensor.
a DenseTensor.
This is equivalent to tensor.
This is equivalent to tensor.expand(sizes.toArray)
This is equivalent to tensor.
This is equivalent to tensor.expandAs(template)
Returns a 1D Gaussian kernel of size size, mean mean and standard deviation sigma.
Returns a 1D Gaussian kernel of size size, mean mean and standard deviation sigma.
If tensor is set, will discard size, and write result to tensor.
return a tensor of sizes filled with 1.
return a tensor of sizes filled with 1.
a tensor
This is equivalent to DenseTensor.
This is equivalent to DenseTensor.randperm[T](size)
This is equivalent to DenseTensor.
This is equivalent to DenseTensor.range(xmin, xmax, step)
This is equivalent to tensor.
This is equivalent to tensor.repeatTensor(sizes.toArray)
Create a scalar tensor of this value
Create a scalar tensor of this value
the created scalar tensor
Create a sparse tensor with shape and number of non-zero elements.
Create a sparse tensor with shape and number of non-zero elements.
tensor's shape.
number of non-zero elements.
Transform a DenseTensor to SparseTensor.
Transform a DenseTensor to SparseTensor.
Create a SparseTensor.
Create a SparseTensor.
dimension-D array to describe the indices of values.
non-zero values in this SparseTensor.
shape
dimension
Create a SparseTensor.
Create a SparseTensor.
dimension-D array to describe the indices of values.
non-zero values in this SparseTensor.
shape
dimension
Create a SparseTensor.
Create a SparseTensor.
dimension-D array to describe the indices of values.
non-zero values in this SparseTensor.
shape
Create a SparseTensor.
Create a SparseTensor.
dimension-D array to describe the indices of values.
non-zero values in this SparseTensor.
shape
Find the distinct value and its indices in a 1D tensor.
Find the distinct value and its indices in a 1D tensor.
a 1D tensor
a buffer for its distinct values.
a buffer for its indcies.
(distinctValues, indices)