ComplexTensor

public class ComplexTensor

Represents complex, multidimensional tensor.

Parameters

shape

tensor shape.

data

must fit into the shape of this tensor.

Constructors

ComplexTensor
Link copied to clipboard
ComplexTensor ComplexTensor(IntArray shape, Array<ComplexDouble> data)
makes a new tensor with a given shape and data.

Types

Companion
Link copied to clipboard
public class Companion

Functions

concat
Link copied to clipboard
final ComplexTensor concat(ComplexTensor other, Integer concatDim)
Concatenate to other tensor.
copy
Link copied to clipboard
ComplexTensor copy()
Make a new copy of this tensor.
div
Link copied to clipboard
ComplexTensor div(ComplexDouble other)
ComplexTensor div(Number other)
equals
Link copied to clipboard
Boolean equals(Object other)
flatten
Link copied to clipboard
final ComplexTensor flatten()
Reshape to a 1-dimensional tensor.
frobeniusNormSquared
Link copied to clipboard
final Double frobeniusNormSquared()
Calculate squared frobenius norm.
get
Link copied to clipboard
final ComplexDouble get(IntArray indices)
final ComplexTensor get(Long indexLong)
getData
Link copied to clipboard
final Array<ComplexDoublegetData()
must fit into the shape of this tensor.
getDim
Link copied to clipboard
final Integer getDim()
tensor dimension.
getShape
Link copied to clipboard
final IntArray getShape()
tensor shape.
getSize
Link copied to clipboard
final Integer getSize()
map
Link copied to clipboard
ComplexTensor map(Function1<ComplexDouble, ComplexDouble> lambda)
Apply a mapping function to each element.
minus
Link copied to clipboard
final ComplexTensor minus(ComplexTensor other)
plus
Link copied to clipboard
final ComplexTensor plus(ComplexTensor other)
pseudoEquals
Link copied to clipboard
final Boolean pseudoEquals(ComplexTensor other)
Determines if other is close enough to be said the same.
reshape
Link copied to clipboard
final ComplexTensor reshape(IntArray newShape)
Reshape this tensor.
set
Link copied to clipboard
final Unit set(IntArray indices, ComplexDouble value)
times
Link copied to clipboard
ComplexTensor times(ComplexDouble other)
final ComplexTensor times(ComplexTensor other)
ComplexTensor times(Number other)
toComplexMatrix
Link copied to clipboard
final ComplexMatrix toComplexMatrix()
Downcast to ComplexMatrix class, if possible: i.e.
toString
Link copied to clipboard
String toString()
unaryMinus
Link copied to clipboard
ComplexTensor unaryMinus()
unaryPlus
Link copied to clipboard
ComplexTensor unaryPlus()

Properties

data
Link copied to clipboard
private final Array<ComplexDoubledata
must fit into the shape of this tensor.
dim
Link copied to clipboard
private final Integer dim
tensor dimension.
shape
Link copied to clipboard
private final IntArray shape
tensor shape.
size
Link copied to clipboard
private final Integer size

Inheritors

ComplexMatrix
Link copied to clipboard

Extensions

convCheck
Link copied to clipboard
public final Double convCheck
equalityValidation
Link copied to clipboard
public final Double equalityValidation
pseudoEquals
Link copied to clipboard
final Boolean pseudoEquals(ComplexDouble x, ComplexDouble y)