Uses of Class
org.flag4j.arrays.dense.CTensor
Packages that use CTensor
Package
Description
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
General purpose linear algebra operations including condition number evaluations, eigenvalue/eigenvector computations, matrix
inversion, and subspace analysis.
Contains solvers which solve well determined linear tensor and matrix equations in an exact sense.
Pseudo-random generation of real/complex numbers, and arrays, vectors, matrices, and tensors.
-
Uses of CTensor in org.flag4j.arrays.dense
Subclasses with type arguments of type CTensor in org.flag4j.arrays.denseModifier and TypeClassDescriptionclass
A dense complex tensor backed by an array ofComplex128
's.Methods in org.flag4j.arrays.dense that return CTensorModifier and TypeMethodDescriptionComputes the element-wise sum between two tensors of the same shape.CTensor.add
(CooCTensor b) Computes the element-wise sum between two tensors of the same shape.Computes the element-wise sum between two tensors of the same shape.Computes the element-wise sum between two tensors of the same shape.Tensor.add
(CooCTensor b) Computes the element-wise sum between two tensors of the same shape.Tensor.add
(Complex128 b) Adds a complex-valued scalar value to each entry of this tensor.Computes the element-wise quotient between two tensors.Computes the element-wise division of two tensors.Tensor.div
(Complex128 b) Divides each entry of this tensor by a complex scalar value.Computes the element-wise multiplication of two tensors of the same shape.Computes the element-wise multiplication of two tensors.CTensor.makeLikeTensor
(Shape shape, Complex128[] entries) Constructs a tensor of the same type as this tensor with the given the shape and data.Tensor.mult
(Complex128 b) Multiplies a complex scalar value to each entry of this tensor.CTensor.round
(int precision) Rounds all data within this tensor to the specified precision.CTensor.roundToZero
(double tolerance) Sets all elements of this tensor to zero if they are withintol
of zero.Computes the element-wise difference between two tensors of the same shape.CTensor.sub
(CooCTensor b) Computes the element-wise difference between two tensors of the same shape.Computes the element-wise difference between two tensors of the same shape.Computes the element-wise difference between two tensors of the same shape.Tensor.sub
(CooCTensor b) Computes the element-wise difference between two tensors of the same shape and stores the result in this tensor.Tensor.sub
(Complex128 b) Subtracts a complex-valued scalar from each element of this tensor.Tensor.toComplex()
Converts this tensor to an equivalent complex valued tensor.CMatrix.toTensor()
Converts this matrix to an equivalent tensor.Converts this matrix to an equivalent tensor with the specifiednewShape
.Methods in org.flag4j.arrays.dense with parameters of type CTensorModifier and TypeMethodDescriptionComputes the element-wise sum between two tensors of the same shape.Computes the element-wise division of two tensors.Computes the element-wise multiplication of two tensors.Computes the element-wise difference between two tensors of the same shape.Constructors in org.flag4j.arrays.dense with parameters of type CTensor -
Uses of CTensor in org.flag4j.arrays.sparse
Subclasses with type arguments of type CTensor in org.flag4j.arrays.sparseModifier and TypeClassDescriptionclass
Sparse complex tensor stored in coordinate list (COO) format.Methods in org.flag4j.arrays.sparse that return CTensorModifier and TypeMethodDescriptionCooCTensor.makeLikeDenseTensor
(Shape shape, Complex128[] entries) Constructs a dense tensor that is a similar type as this sparse COO tensor.CsrCMatrix.tensorDot
(CsrCMatrix src2, int[] aAxes, int[] bAxes) Computes the tensor contraction of this tensor with a specified tensor over the specified set of axes. -
Uses of CTensor in org.flag4j.linalg
Methods in org.flag4j.linalg that return CTensorMethods in org.flag4j.linalg with parameters of type CTensor -
Uses of CTensor in org.flag4j.linalg.ops.dense_sparse.coo.real_complex
Methods in org.flag4j.linalg.ops.dense_sparse.coo.real_complex that return CTensorModifier and TypeMethodDescriptionstatic CTensor
RealComplexDenseCooOps.add
(CooCTensor src1, double b) Adds a scalar to a real sparse COO tensor.static CTensor
RealComplexDenseCooOps.add
(CooTensor src1, Complex128 b) Adds a scalar to a real sparse COO tensor.static CTensor
RealComplexDenseCooOps.sub
(Tensor src1, CooCTensor src2) Subtracts a sparse complex tensor from a real dense tensor.static CTensor
RealComplexDenseCooOps.sub
(CooCTensor src1, double b) Adds a scalar to a real sparse COO tensor.static CTensor
RealComplexDenseCooOps.sub
(CooCTensor src1, Tensor src2) Subtracts a real dense tensor from a complex sparse tensor.static CTensor
RealComplexDenseCooOps.sub
(CooTensor src1, Complex128 b) Subtracts a scalar from a real sparse COO tensor.Methods in org.flag4j.linalg.ops.dense_sparse.coo.real_complex with parameters of type CTensorModifier and TypeMethodDescriptionstatic CooCTensor
Computes the element-wise division between a real dense tensor and a complex sparse tensor.static CooCTensor
Computes the element-wise multiplication between a complex dense tensor and a real sparse matrix.static boolean
RealComplexDenseSparseEquals.tensorEquals
(CTensor A, CooTensor B) Checks if a complex dense tensor is equal to a real sparse tensor. -
Uses of CTensor in org.flag4j.linalg.solvers.exact
Subclasses with type arguments of type CTensor in org.flag4j.linalg.solvers.exactModifier and TypeClassDescriptionclass
Solver for solving a real well determined linear tensor equation \( AX = B \) in an exact sense.Methods in org.flag4j.linalg.solvers.exact that return CTensorModifier and TypeMethodDescriptionprotected CTensor
Wraps solution as a tensor and reshapes to the proper shape.Methods in org.flag4j.linalg.solvers.exact with parameters of type CTensorModifier and TypeMethodDescriptionprotected CMatrix
ComplexExactTensorSolver.initMatrix
(CTensor A, int prod) Initializes matrix for equivalent linear matrix equation.protected CVector
ComplexExactTensorSolver.initVector
(CTensor B) Initializes vector for equivalent linear matrix equation. -
Uses of CTensor in org.flag4j.rng
Methods in org.flag4j.rng that return CTensorModifier and TypeMethodDescriptionRandomDenseTensor.randnCTensor
(Shape shape) Generates a tensor filled with pseudorandom values sampled from a bivariate standard Gaussian (normal) distribution with mean zero and standard deviation one along both the real and imaginary axes.RandomDenseTensor.randnCTensor
(Shape shape, double mean, double std) Generates a tensor filled with pseudorandom values sampled from a bivariate Gaussian (normal) distribution with specified mean and standard deviation along both the real and imaginary axes.RandomDenseTensor.randnCTensor
(Shape shape, double meanRe, double stdRe, double meanIm, double stdIm, double corrCoeff) Generates a tensor filled with pseudorandom values sampled from a bivariate Gaussian (normal) distribution.RandomDenseTensor.randomCTensor
(Shape shape) Generates a tensor filled with pseudorandom complex values uniformly distributed in the unit disk centered at the origin of the complex plane.RandomDenseTensor.randomCTensor
(Shape shape, double min, double max) Generates a tensor filled with pseudorandom complex values uniformly distributed in an annulus (i.e. washer) centered at the origin of the complex plane.