Uses of Interface
org.flag4j.algebraic_structures.Ring
Packages that use Ring
Package
Description
Provides algebraic structures such as semirings, rings, and fields,
along with their concrete implementations.
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
-
Uses of Ring in org.flag4j.algebraic_structures
Classes in org.flag4j.algebraic_structures with type parameters of type RingModifier and TypeInterfaceDescriptioninterface
Defines a mathematical ring structure and specifies the operations that ring elements must support.Subinterfaces of Ring in org.flag4j.algebraic_structuresModifier and TypeInterfaceDescriptioninterface
Defines a mathematical field structure and specifies the operations that field elements must support.Classes in org.flag4j.algebraic_structures that implement RingModifier and TypeClassDescriptionclass
Represents an immutable complex number with double-precision floating point components.class
Represents an immutable complex number with single-precision floating point components.class
Represents an immutable real number backed by a 32-bit floating-point value.class
Represents an immutable real number backed by a 64-bit floating-point value.class
A real number backed by a 16-bit integer number.class
A real number backed by a 32-bit integer number. -
Uses of Ring in org.flag4j.arrays.backend.ring_arrays
Classes in org.flag4j.arrays.backend.ring_arrays with type parameters of type RingModifier and TypeClassDescriptionclass
AbstractCooRingMatrix<T extends AbstractCooRingMatrix<T,
U, V, W>, U extends AbstractDenseRingMatrix<U, ?, W>, V extends AbstractCooRingVector<V, ?, T, U, W>, W extends Ring<W>> A sparse matrix stored in coordinate list (COO) format.class
AbstractCooRingTensor<T extends AbstractCooRingTensor<T,
U, V>, U extends AbstractDenseRingTensor<U, V>, V extends Ring<V>> Base class for all sparseRing
tensors stored in coordinate list (COO) format.class
AbstractCooRingVector<T extends AbstractCooRingVector<T,
U, V, W, Y>, U extends AbstractDenseRingVector<U, W, Y>, V extends AbstractCooRingMatrix<V, W, T, Y>, W extends AbstractDenseRingMatrix<W, U, Y>, Y extends Ring<Y>> A sparse vector stored in coordinate list (COO) format.class
AbstractCsrRingMatrix<T extends AbstractCsrRingMatrix<T,
U, V, W>, U extends AbstractDenseRingMatrix<U, ?, W>, V extends AbstractCooRingVector<V, ?, ?, U, W>, W extends Ring<W>> A sparse matrix stored in compressed sparse row (CSR) format.class
AbstractDenseRingMatrix<T extends AbstractDenseRingMatrix<T,
U, V>, U extends AbstractDenseRingVector<U, T, V>, V extends Ring<V>> The base class for all dense matrices whose elements are members of aRing
.class
AbstractDenseRingTensor<T extends AbstractDenseRingTensor<T,
V>, V extends Ring<V>> The base class for all denseRing
tensors.class
AbstractDenseRingVector<T extends AbstractDenseRingVector<T,
U, V>, U extends AbstractDenseRingMatrix<U, T, V>, V extends Ring<V>> The base class for all dense vectors whose data areRing
elements.interface
RingTensorMixin<T extends RingTensorMixin<T,
U, V>, U extends RingTensorMixin<U, U, V>, V extends Ring<V>> This interface provides default functionality for all tensors whose data are elements of aRing
.Methods in org.flag4j.arrays.backend.ring_arrays that return RingModifier and TypeMethodDescriptiondefault V[]
RingTensorMixin.makeEmptyDataArray
(int length) Creates an empty array of the same type as the data array of this tensor.Methods in org.flag4j.arrays.backend.ring_arrays with parameters of type RingModifier and TypeMethodDescriptionabstract AbstractCsrRingMatrix
<?, U, V, W> AbstractCooRingMatrix.makeLikeCsrMatrix
(Shape shape, W[] entries, int[] rowPointers, int[] colIndices) Constructs a sparse CSR matrix of a similar type to this sparse COO matrix.Constructors in org.flag4j.arrays.backend.ring_arrays with parameters of type RingModifierConstructorDescriptionprotected
AbstractCooRingMatrix
(Shape shape, W[] entries, int[] rowIndices, int[] colIndices) Creates a sparse coo matrix with the specified non-zero data, non-zero indices, and shape.protected
AbstractCooRingTensor
(Shape shape, V[] data, int[][] indices) Creates a tensor with the specified data and shape.protected
AbstractCooRingVector
(Shape shape, Y[] entries, int[] indices) Creates a COO vector with the specified data and shape.protected
AbstractCsrRingMatrix
(Shape shape, W[] entries, int[] rowPointers, int[] colIndices) Creates a sparse CSR matrix with the specifiedshape
, non-zero data, row pointers, and non-zero column indices.protected
AbstractDenseRingMatrix
(Shape shape, V[] data) Creates a tensor with the specified data and shape.protected
AbstractDenseRingTensor
(Shape shape, V[] data) Creates a tensor with the specified data and shape.protected
AbstractDenseRingVector
(Shape shape, V[] data) Creates a tensor with the specified data and shape. -
Uses of Ring in org.flag4j.arrays.backend.smart_visitors
Methods in org.flag4j.arrays.backend.smart_visitors with type parameters of type RingModifier and TypeMethodDescription<U extends Ring<U>>
MatrixMixin<?, ?, ?, ?> AddVisitor.visit
(RingMatrix<U> matrix) <U extends Ring<U>>
MatrixMixin<?, ?, ?, ?> AddVisitor.visit
(CooRingMatrix<U> matrix) <U extends Ring<U>>
MatrixMixin<?, ?, ?, ?> AddVisitor.visit
(CsrRingMatrix<U> matrix) <U extends Ring<U>>
MatrixMixin<?, ?, ?, ?> DivVisitor.visit
(RingMatrix<U> matrix) <U extends Ring<U>>
MatrixMixin<?, ?, ?, ?> DivVisitor.visit
(CooRingMatrix<U> matrix) <U extends Ring<U>>
MatrixMixin<?, ?, ?, ?> DivVisitor.visit
(CsrRingMatrix<U> matrix) <U extends Ring<U>>
MatrixMixin<?, ?, ?, ?> ElemMultVisitor.visit
(RingMatrix<U> matrix) <U extends Ring<U>>
MatrixMixin<?, ?, ?, ?> ElemMultVisitor.visit
(CooRingMatrix<U> matrix) <U extends Ring<U>>
MatrixMixin<?, ?, ?, ?> ElemMultVisitor.visit
(CsrRingMatrix<U> matrix) <U extends Ring<U>>
MatrixMixin<?, ?, ?, ?> MatMultVisitor.visit
(RingMatrix<U> matrix) <U extends Ring<U>>
MatrixMixin<?, ?, ?, ?> MatMultVisitor.visit
(CooRingMatrix<U> matrix) <U extends Ring<U>>
MatrixMixin<?, ?, ?, ?> MatMultVisitor.visit
(CsrRingMatrix<U> matrix) MatrixVisitor.visit
(RingMatrix<U> matrix) MatrixVisitor.visit
(CooRingMatrix<U> matrix) MatrixVisitor.visit
(CsrRingMatrix<U> matrix) <U extends Ring<U>>
MatrixMixin<?, ?, ?, ?> SubVisitor.visit
(RingMatrix<U> matrix) <U extends Ring<U>>
MatrixMixin<?, ?, ?, ?> SubVisitor.visit
(CooRingMatrix<U> matrix) <U extends Ring<U>>
MatrixMixin<?, ?, ?, ?> SubVisitor.visit
(CsrRingMatrix<U> matrix) -
Uses of Ring in org.flag4j.arrays.dense
Classes in org.flag4j.arrays.dense with type parameters of type RingModifier and TypeClassDescriptionclass
RingMatrix<T extends Ring<T>>
Instances of this class represents a dense matrix backed by aRing
array.class
RingTensor<T extends Ring<T>>
Instances of this class represent a dense tensor backed by aRing
array.class
RingVector<T extends Ring<T>>
Instances of this class represents a dense vector backed by aRing
array.Methods in org.flag4j.arrays.dense with type parameters of type RingModifier and TypeMethodDescriptionstatic <T extends Ring<T>>
RingMatrix<T> RingMatrix.I
(int numRows, int numCols, T fieldValue) Constructs an identity-like matrix of the specified shape.static <T extends Ring<T>>
RingMatrix<T> RingMatrix.I
(int size, T fieldValue) Constructs an identity matrix of the specified size.static <T extends Ring<T>>
RingMatrix<T> Constructs an identity-like matrix of the specified shape.Methods in org.flag4j.arrays.dense with parameters of type RingModifier and TypeMethodDescriptionprotected CooRingMatrix
<T> RingMatrix.makeLikeCooMatrix
(Shape shape, T[] entries, int[] rowIndices, int[] colIndices) Constructs a sparse COO matrix which is of a similar type as this dense matrix.protected CooRingTensor
<T> RingMatrix.makeLikeCooTensor
(Shape shape, T[] data, int[][] indices) Constructs a sparse COO tensor which is of a similar type as this dense tensor.protected CooRingTensor
<T> RingTensor.makeLikeCooTensor
(Shape shape, T[] data, int[][] indices) Constructs a sparse COO tensor which is of a similar type as this dense tensor.protected CooRingVector
<T> RingVector.makeLikeCooTensor
(Shape shape, T[] data, int[][] indices) Constructs a sparse COO tensor which is of a similar type as this dense tensor.RingMatrix.makeLikeCsrMatrix
(Shape shape, T[] entries, int[] rowPointers, int[] colIndices) Constructs a sparse CSR matrix which is of a similar type as this dense matrix.protected RingMatrix
<T> RingVector.makeLikeMatrix
(Shape shape, T[] entries) Constructs a matrix of similar type to this vector with the specifiedshape
anddata
.RingMatrix.makeLikeTensor
(Shape shape, T[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.RingTensor.makeLikeTensor
(Shape shape, T[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.RingVector.makeLikeTensor
(Shape shape, T[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.RingVector.makeLikeTensor
(T[] entries) Constructs a dense vector with the specifieddata
of the same type as the vector.protected RingVector
<T> RingMatrix.makeLikeVector
(Shape shape, T[] entries) Constructs a vector of a similar type as this matrix.protected RingVector
<T> RingMatrix.makeLikeVector
(T[] entries) Constructs a vector of a similar type as this matrix.Constructors in org.flag4j.arrays.dense with parameters of type RingModifierConstructorDescriptionRingMatrix
(int rows, int cos, T[] entries) Creates a dense ring matrix with the specified data and shape.RingMatrix
(int rows, int cols, T[][] entries) Creates a dense ring matrix with the specified data and shape.RingMatrix
(Shape shape, T[] entries) Creates a tensor with the specified data and shape.RingMatrix
(T[][] entries) Creates a dense ring matrix with the specified data and shape.RingTensor
(Shape shape, T[] data) Creates a tensor with the specified data and shape.RingVector
(Shape shape, T[] data) Creates a ring vector with the specified data and shape.RingVector
(T[] data) Creates a ring vector with the specified data and shape. -
Uses of Ring in org.flag4j.arrays.sparse
Classes in org.flag4j.arrays.sparse with type parameters of type RingModifier and TypeClassDescriptionclass
CooRingMatrix<T extends Ring<T>>
Represents a sparse matrix whose non-zero elements are stored in Coordinate List (COO) format, with all data elements belonging to a specifiedRing
type.class
CooRingTensor<T extends Ring<T>>
Represents a sparse tensor whose non-zero elements are stored in Coordinate List (COO) format, with all data elements belonging to a specifiedRing
type.class
CooRingVector<T extends Ring<T>>
Represents a sparse vector whose non-zero elements are stored in Coordinate List (COO) format, with all data elements belonging to a specifiedRing
type.class
CsrRingMatrix<T extends Ring<T>>
Methods in org.flag4j.arrays.sparse with parameters of type RingModifier and TypeMethodDescriptionCsrRingMatrix.makeLikeCooMatrix
(Shape shape, T[] entries, int[] rowIndices, int[] colIndices) Constructs a sparse COO matrix of a similar type to this sparse CSR matrix.CooRingMatrix.makeLikeCsrMatrix
(Shape shape, T[] entries, int[] rowPointers, int[] colIndices) Constructs a sparse CSR matrix of a similar type to this sparse COO matrix.CooRingVector.makeLikeDenseMatrix
(Shape shape, T... entries) Constructs a dense matrix of a similar type as this vector with the specified shape and data.CooRingMatrix.makeLikeDenseTensor
(Shape shape, T[] entries) Constructs a dense tensor with the specifiedshape
anddata
which is a similar type to this sparse tensor.CooRingTensor.makeLikeDenseTensor
(Shape shape, T[] entries) Constructs a dense tensor that is a similar type as this sparse COO tensor.CooRingVector.makeLikeDenseTensor
(Shape shape, T... entries) Constructs a dense vector of a similar type as this vector with the specified shape and data.CsrRingMatrix.makeLikeDenseTensor
(Shape shape, T[] entries) Constructs a dense matrix which is of a similar type to this sparse CSR matrix.CooRingVector.makeLikeMatrix
(Shape shape, T[] entries, int[] rowIndices, int[] colIndices) Constructs a COO matrix with the specified shape, non-zero data, and row and column indices.CooRingMatrix.makeLikeTensor
(Shape shape, T[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.CooRingMatrix.makeLikeTensor
(Shape shape, T[] entries, int[] rowIndices, int[] colIndices) Constructs a sparse COO tensor of the same type as this tensor with the specified non-zero data and indices.CooRingTensor.makeLikeTensor
(Shape shape, T[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.CooRingTensor.makeLikeTensor
(Shape shape, T[] data, int[][] indices) Constructs a tensor of the same type as this tensor with the specified shape and non-zero data.CooRingVector.makeLikeTensor
(Shape shape, T[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.CooRingVector.makeLikeTensor
(Shape shape, T[] entries, int[] indices) Constructs a sparse COO vector of the same type as this vector with the specified non-zero data and indices.CsrRingMatrix.makeLikeTensor
(Shape shape, T[] entries) Constructs a tensor of the same type as this tensor with the given theshape
anddata
.CsrRingMatrix.makeLikeTensor
(Shape shape, T[] entries, int[] rowPointers, int[] colIndices) Constructs a sparse CSR tensor of the same type as this tensor with the specified non-zero data and indices.CooRingMatrix.makeLikeVector
(Shape shape, T[] entries, int[] indices) Constructs a sparse COO vector of a similar type to this COO matrix.Constructors in org.flag4j.arrays.sparse with parameters of type RingModifierConstructorDescriptionCooRingMatrix
(int rows, int cols, T[] entries, int[] rowIndices, int[] colIndices) Creates a sparse coo matrix with the specified non-zero data, non-zero indices, and shape.CooRingMatrix
(Shape shape, T[] entries, int[] rowIndices, int[] colIndices) Creates a sparse coo matrix with the specified non-zero data, non-zero indices, and shape.CooRingTensor
(Shape shape, T[] data, int[][] indices) Creates a tensor with the specified data and shape.CooRingVector
(int size, T[] entries, int[] indices) Creates a tensor with the specified data and shape.CooRingVector
(Shape shape, T[] entries, int[] indices) Creates a tensor with the specified data and shape.CsrRingMatrix
(Shape shape, T[] entries, int[] rowPointers, int[] colIndices) Creates a sparse CSR matrix with the specifiedshape
, non-zero data, row pointers, and non-zero column indices. -
Uses of Ring in org.flag4j.linalg
Methods in org.flag4j.linalg with type parameters of type RingModifier and TypeMethodDescriptionstatic <T extends Ring<T>>
doubleVectorNorms.norm
(T... src) Computes the Euclidean (ℓ2) norm of a dense or sparse vector whose entries are members of aRing
.static <T extends Ring<T>>
doubleVectorNorms.norm
(T[] src, double p) Computes the ℓp norm (or p-norm) of a dense or sparse vector whose entries are members of aRing
.static <T extends Ring<T>>
doubleVectorNorms.norm
(T[] src, int start, int n, int stride) Computes the ℓ2 (Euclidean) norm of a sub-vector withinsrc
, starting at indexstart
and consideringn
elements spaced bystride
.Methods in org.flag4j.linalg with parameters of type RingModifier and TypeMethodDescriptionstatic <T extends Ring<T>>
doubleVectorNorms.norm
(T... src) Computes the Euclidean (ℓ2) norm of a dense or sparse vector whose entries are members of aRing
.static <T extends Ring<T>>
doubleVectorNorms.norm
(T[] src, double p) Computes the ℓp norm (or p-norm) of a dense or sparse vector whose entries are members of aRing
.static <T extends Ring<T>>
doubleVectorNorms.norm
(T[] src, int start, int n, int stride) Computes the ℓ2 (Euclidean) norm of a sub-vector withinsrc
, starting at indexstart
and consideringn
elements spaced bystride
. -
Uses of Ring in org.flag4j.linalg.ops
Methods in org.flag4j.linalg.ops with type parameters of type RingModifier and TypeMethodDescriptionstatic <T extends Ring<T>>
voidTransposeDispatcher.dispatchHermitian
(T[] src, Shape shape, T[] dest) Dispatches a matrix Hermitian transpose (i.e. conjugate transpose) problem to the appropriate algorithm based on its shape and size.static <V extends Ring<V>>
voidTransposeDispatcher.dispatchTensorHermitian
(Shape shape, V[] src, int[] axes, V[] dest) Dispatches a tensor Hermitian transpose problem to the appropriate algorithm based on its shape and size.static <V extends Ring<V>>
voidTransposeDispatcher.dispatchTensorHermitian
(Shape shape, V[] src, int axis1, int axis2, V[] dest) Dispatches a tensor Hermitian transpose problem to the appropriate algorithm based on its shape and size.Methods in org.flag4j.linalg.ops with parameters of type RingModifier and TypeMethodDescriptionstatic <T extends Ring<T>>
voidTransposeDispatcher.dispatchHermitian
(T[] src, Shape shape, T[] dest) Dispatches a matrix Hermitian transpose (i.e. conjugate transpose) problem to the appropriate algorithm based on its shape and size.static <V extends Ring<V>>
voidTransposeDispatcher.dispatchTensorHermitian
(Shape shape, V[] src, int[] axes, V[] dest) Dispatches a tensor Hermitian transpose problem to the appropriate algorithm based on its shape and size.static <V extends Ring<V>>
voidTransposeDispatcher.dispatchTensorHermitian
(Shape shape, V[] src, int axis1, int axis2, V[] dest) Dispatches a tensor Hermitian transpose problem to the appropriate algorithm based on its shape and size. -
Uses of Ring in org.flag4j.linalg.ops.common.ring_ops
Methods in org.flag4j.linalg.ops.common.ring_ops with type parameters of type RingModifier and TypeMethodDescriptionstatic <T extends Ring<T>>
voidRingOps.abs
(T[] src, double[] dest) Computes the element-wise absolute value of an array.static <T extends Ring<T>>
booleanRingProperties.allClose
(T[] src1, T[] src2) Checks if all data of two arrays are 'close'.static <T extends Ring<T>>
booleanRingProperties.allClose
(T[] src1, T[] src2, double relTol, double absTol) Checks if all data of two arrays are 'close'.static <T extends Ring<T>>
intCompareRing.argmaxAbs
(T... values) Computes the index of the maximum absolute value in the specified array.static <T extends Ring<T>>
intCompareRing.argminAbs
(T... values) Computes the index of the minimum absolute value in the specified array.static <T extends Ring<T>>
voidRingOps.conj
(T[] src, T[] dest) Computes the element-wise conjugation of an array.static <T extends Ring<T>>
doubleCompareRing.maxAbs
(T... values) Computes the maximum absolute value in the specified array.static <T extends Ring<T>>
doubleCompareRing.maxAbs
(T[] src, int start, int n, int stride) Returns the maximum absolute value amongn
elements in the arraysrc
, starting at indexstart
and advancing bystride
for each subsequent element.static <T extends Ring<T>>
doubleCompareRing.minAbs
(T... values) Computes the minimum absolute value in the specified array.static <T extends Ring<T>>
doubleCompareRing.minAbs
(T[] src, int start, int n, int stride) Returns the minimum absolute value amongn
elements in the arraysrc
, starting at indexstart
and advancing bystride
for each subsequent element.static <T extends Ring<T>>
voidRingOps.sub
(T[] src, T scalar, T[] dest) Subtracts a scalar value from each entry of an array.Methods in org.flag4j.linalg.ops.common.ring_ops with parameters of type RingModifier and TypeMethodDescriptionstatic <T extends Ring<T>>
voidRingOps.abs
(T[] src, double[] dest) Computes the element-wise absolute value of an array.static <T extends Ring<T>>
booleanRingProperties.allClose
(T[] src1, T[] src2) Checks if all data of two arrays are 'close'.static <T extends Ring<T>>
booleanRingProperties.allClose
(T[] src1, T[] src2, double relTol, double absTol) Checks if all data of two arrays are 'close'.static <T extends Ring<T>>
intCompareRing.argmaxAbs
(T... values) Computes the index of the maximum absolute value in the specified array.static <T extends Ring<T>>
intCompareRing.argminAbs
(T... values) Computes the index of the minimum absolute value in the specified array.static <T extends Ring<T>>
voidRingOps.conj
(T[] src, T[] dest) Computes the element-wise conjugation of an array.static <T extends Ring<T>>
doubleCompareRing.maxAbs
(T... values) Computes the maximum absolute value in the specified array.static <T extends Ring<T>>
doubleCompareRing.maxAbs
(T[] src, int start, int n, int stride) Returns the maximum absolute value amongn
elements in the arraysrc
, starting at indexstart
and advancing bystride
for each subsequent element.static <T extends Ring<T>>
doubleCompareRing.minAbs
(T... values) Computes the minimum absolute value in the specified array.static <T extends Ring<T>>
doubleCompareRing.minAbs
(T[] src, int start, int n, int stride) Returns the minimum absolute value amongn
elements in the arraysrc
, starting at indexstart
and advancing bystride
for each subsequent element.static <T extends Ring<T>>
voidRingOps.sub
(T[] src, T scalar, T[] dest) Subtracts a scalar value from each entry of an array. -
Uses of Ring in org.flag4j.linalg.ops.dense.ring_ops
Methods in org.flag4j.linalg.ops.dense.ring_ops with type parameters of type RingModifier and TypeMethodDescriptionstatic <T extends Ring<T>>
voidDenseRingHermitianTranspose.blockedMatrixConcurrentHerm
(T[] src, int numRows, int numCols, T[] dest) Computes the complex conjugate transpose of a matrix using a blocked concurrent algorithm.static <T extends Ring<T>>
voidDenseRingHermitianTranspose.blockedMatrixHerm
(T[] src, int numRows, int numCols, T[] dest) Computes complex conjugate transpose of a matrix using a blocked algorithm.static <T extends Ring<T>>
TDenseRingVectorOps.innerProduct
(T[] src1, T[] src2) Computes the vector inner product for two vectors.static <T extends Ring<T>>
booleanDenseRingTensorOps.isCloseToIdentity
(Shape shape, T[] src) Checks if a matrix is the identity matrix approximately.static <T extends Ring<T>>
booleanDenseRingTensorOps.isHermitian
(Shape shape, T[] src) Checks if a complex dense matrix is Hermitian.static <T extends Ring<T>>
doubleDenseRingVectorNorms.norm
(T... src) Computes the 2-norm of a vector.static <T extends Ring<T>>
doubleDenseRingVectorNorms.norm
(T[] src, double p) Computes thep
-norm of a vector.DenseRingVectorOps.outerProduct
(T[] src1, T[] src2) Computes the vector outer product between two real dense vectors.DenseRingVectorOps.outerProductConcurrent
(T[] src1, T[] src2) Computes the vector outer product between two real dense vectors using a concurrent implementation.static <T extends Ring<T>>
voidDenseRingHermitianTranspose.standardConcurrentHerm
(T[] src, Shape shape, int[] axes, T[] dest) Computes the conjugate transpose of a tensor using a concurrent implementation.static <T extends Ring<T>>
voidDenseRingHermitianTranspose.standardConcurrentHerm
(T[] src, Shape shape, int axis1, int axis2, T[] dest) Computes complex conjugate transpose of a tensor along specified axes using a standard concurrent transpose algorithm.static <T extends Ring<T>>
voidDenseRingHermitianTranspose.standardHerm
(T[] src, Shape shape, int[] axes, T[] dest) Computes the conjugate transpose of a tensor using a standard implementation.static <T extends Ring<T>>
voidDenseRingHermitianTranspose.standardHerm
(T[] src, Shape shape, int axis1, int axis2, T[] dest) Computes complex conjugate transpose of a tensor along specified axes using a standard transpose algorithm.static <T extends Ring<T>>
voidDenseRingHermitianTranspose.standardMatrixConcurrentHerm
(T[] src, int numRows, int numCols, T[] dest) Computes the complex conjugate transpose of a matrix using a standard concurrent algorithm.static <T extends Ring<T>>
voidDenseRingHermitianTranspose.standardMatrixHerm
(T[] src, int numRows, int numCols, T[] dest) Computes complex conjugate transpose of a matrix using the standard algorithm.static <T extends Ring<T>>
voidComputes the element-wise difference between two dense tensors.Methods in org.flag4j.linalg.ops.dense.ring_ops that return RingModifier and TypeMethodDescriptionDenseRingVectorOps.outerProduct
(T[] src1, T[] src2) Computes the vector outer product between two real dense vectors.DenseRingVectorOps.outerProductConcurrent
(T[] src1, T[] src2) Computes the vector outer product between two real dense vectors using a concurrent implementation.Methods in org.flag4j.linalg.ops.dense.ring_ops with parameters of type RingModifier and TypeMethodDescriptionstatic <T extends Ring<T>>
voidDenseRingHermitianTranspose.blockedMatrixConcurrentHerm
(T[] src, int numRows, int numCols, T[] dest) Computes the complex conjugate transpose of a matrix using a blocked concurrent algorithm.static <T extends Ring<T>>
voidDenseRingHermitianTranspose.blockedMatrixHerm
(T[] src, int numRows, int numCols, T[] dest) Computes complex conjugate transpose of a matrix using a blocked algorithm.static <T extends Ring<T>>
TDenseRingVectorOps.innerProduct
(T[] src1, T[] src2) Computes the vector inner product for two vectors.static <T extends Ring<T>>
booleanDenseRingTensorOps.isCloseToIdentity
(Shape shape, T[] src) Checks if a matrix is the identity matrix approximately.static <T extends Ring<T>>
booleanDenseRingTensorOps.isHermitian
(Shape shape, T[] src) Checks if a complex dense matrix is Hermitian.static <T extends Ring<T>>
doubleDenseRingVectorNorms.norm
(T... src) Computes the 2-norm of a vector.static <T extends Ring<T>>
doubleDenseRingVectorNorms.norm
(T[] src, double p) Computes thep
-norm of a vector.DenseRingVectorOps.outerProduct
(T[] src1, T[] src2) Computes the vector outer product between two real dense vectors.DenseRingVectorOps.outerProductConcurrent
(T[] src1, T[] src2) Computes the vector outer product between two real dense vectors using a concurrent implementation.static <T extends Ring<T>>
voidDenseRingHermitianTranspose.standardConcurrentHerm
(T[] src, Shape shape, int[] axes, T[] dest) Computes the conjugate transpose of a tensor using a concurrent implementation.static <T extends Ring<T>>
voidDenseRingHermitianTranspose.standardConcurrentHerm
(T[] src, Shape shape, int axis1, int axis2, T[] dest) Computes complex conjugate transpose of a tensor along specified axes using a standard concurrent transpose algorithm.static <T extends Ring<T>>
voidDenseRingHermitianTranspose.standardHerm
(T[] src, Shape shape, int[] axes, T[] dest) Computes the conjugate transpose of a tensor using a standard implementation.static <T extends Ring<T>>
voidDenseRingHermitianTranspose.standardHerm
(T[] src, Shape shape, int axis1, int axis2, T[] dest) Computes complex conjugate transpose of a tensor along specified axes using a standard transpose algorithm.static <T extends Ring<T>>
voidDenseRingHermitianTranspose.standardMatrixConcurrentHerm
(T[] src, int numRows, int numCols, T[] dest) Computes the complex conjugate transpose of a matrix using a standard concurrent algorithm.static <T extends Ring<T>>
voidDenseRingHermitianTranspose.standardMatrixHerm
(T[] src, int numRows, int numCols, T[] dest) Computes complex conjugate transpose of a matrix using the standard algorithm.static <T extends Ring<T>>
voidComputes the element-wise difference between two dense tensors. -
Uses of Ring in org.flag4j.linalg.ops.sparse.coo.ring_ops
Methods in org.flag4j.linalg.ops.sparse.coo.ring_ops with type parameters of type RingModifier and TypeMethodDescriptionstatic <T extends Ring<T>>
TCooRingVectorOps.inner
(AbstractCooRingVector<?, ?, ?, ?, T> src1, AbstractCooRingVector<?, ?, ?, ?, T> src2) Computes the inner product of two complex sparse vectors.static <T extends Ring<T>>
booleanCooRingMatrixOps.isCloseToIdentity
(AbstractCooRingMatrix<?, ?, ?, T> src) Checks if a real sparse matrix is close to the identity matrix.static <T extends Ring<T>>
booleanCooRingMatrixOps.isHermitian
(Shape shape, T[] data, int[] rowIndices, int[] colIndices) Checks if a sparse COORing
matrix is Hermitian.static <T extends Ring<T>>
doubleCooRingNorms.matrixNormL22
(AbstractCooRingMatrix<?, ?, ?, T> src) Computes the L2, 2 norm of a matrix.static <T extends Ring<T>>
doubleCooRingNorms.matrixNormLpq
(AbstractCooRingMatrix<?, ?, ?, T> src, double p, double q) Computes the Lp, q norm of a matrix.static <V extends Ring<V>>
SparseMatrixData<V> CooRingMatrixOps.sub
(Shape shape1, V[] src1Entries, int[] src1RowIndices, int[] src1ColIndices, Shape shape2, V[] src2Entries, int[] src2RowIndices, int[] src2ColIndices) Computes the element-wise difference of two sparse matrices.static <V extends Ring<V>>
SparseTensorData<V> CooRingTensorOps.sub
(Shape shape1, V[] src1Entries, int[][] src1Indices, Shape shape2, V[] src2Entries, int[][] src2Indices) Sums two complex sparse COO tensors and stores result in a new COO tensor.static <T extends Ring<T>>
SparseVectorData<T> CooRingVectorOps.sub
(Shape shape1, T[] src1, int[] src1Indices, Shape shape2, T[] src2, int[] src2Indices) Computes the element-wise vector subtraction between two real sparse vectors.static <T extends Ring<T>>
voidCooRingHermTranspose.tensorHermTranspose
(Shape shape, T[] srcEntries, int[][] srcIndices, int[] axes, T[] destEntries, int[][] destIndices) Computes the Hermitian transpose of a sparse COO tensor.static <T extends Ring<T>>
voidCooRingHermTranspose.tensorHermTranspose
(Shape shape, T[] srcEntries, int[][] srcIndices, int axis1, int axis2, T[] destEntries, int[][] destIndices) Computes the Hermitian transpose of a sparse COO tensor by exchangingaxis1
andaxis2
.Methods in org.flag4j.linalg.ops.sparse.coo.ring_ops with parameters of type RingModifier and TypeMethodDescriptionstatic <T extends Ring<T>>
booleanCooRingMatrixOps.isHermitian
(Shape shape, T[] data, int[] rowIndices, int[] colIndices) Checks if a sparse COORing
matrix is Hermitian.static <V extends Ring<V>>
SparseMatrixData<V> CooRingMatrixOps.sub
(Shape shape1, V[] src1Entries, int[] src1RowIndices, int[] src1ColIndices, Shape shape2, V[] src2Entries, int[] src2RowIndices, int[] src2ColIndices) Computes the element-wise difference of two sparse matrices.static <V extends Ring<V>>
SparseTensorData<V> CooRingTensorOps.sub
(Shape shape1, V[] src1Entries, int[][] src1Indices, Shape shape2, V[] src2Entries, int[][] src2Indices) Sums two complex sparse COO tensors and stores result in a new COO tensor.static <T extends Ring<T>>
SparseVectorData<T> CooRingVectorOps.sub
(Shape shape1, T[] src1, int[] src1Indices, Shape shape2, T[] src2, int[] src2Indices) Computes the element-wise vector subtraction between two real sparse vectors.static <T extends Ring<T>>
voidCooRingHermTranspose.tensorHermTranspose
(Shape shape, T[] srcEntries, int[][] srcIndices, int[] axes, T[] destEntries, int[][] destIndices) Computes the Hermitian transpose of a sparse COO tensor.static <T extends Ring<T>>
voidCooRingHermTranspose.tensorHermTranspose
(Shape shape, T[] srcEntries, int[][] srcIndices, int axis1, int axis2, T[] destEntries, int[][] destIndices) Computes the Hermitian transpose of a sparse COO tensor by exchangingaxis1
andaxis2
. -
Uses of Ring in org.flag4j.linalg.ops.sparse.csr.ring_ops
Methods in org.flag4j.linalg.ops.sparse.csr.ring_ops with type parameters of type RingModifier and TypeMethodDescriptionstatic <T extends Ring<T>>
booleanCsrRingProperties.allClose
(AbstractCsrRingMatrix<?, ?, ?, T> src1, AbstractCsrRingMatrix<?, ?, ?, T> src2, double relTol, double absTol) Checks if all data of this tensor are close to the data of the argumenttensor
.static <T extends Ring<T>>
booleanCsrRingProperties.isCloseToIdentity
(AbstractCsrRingMatrix<?, ?, ?, T> src) Checks if thesrc
matrix is close to the identity matrix.static <T extends Ring<T>>
booleanCsrRingProperties.isHermitian
(Shape shape, T[] values, int[] rowPointers, int[] colIndices) Checks if a sparse CSR matrix is Hermitian.Methods in org.flag4j.linalg.ops.sparse.csr.ring_ops with parameters of type RingModifier and TypeMethodDescriptionstatic <T extends Ring<T>>
booleanCsrRingProperties.isHermitian
(Shape shape, T[] values, int[] rowPointers, int[] colIndices) Checks if a sparse CSR matrix is Hermitian.