Uses of Interface
org.flag4j.numbers.Ring
Packages that use Ring
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.
General linear algebra operations.
Implementations of operations on two
Ring array objects.Implementations of operations on
Ring dense array objects.Implementations of operations on
Ring sparse COO (coordinate) array objects.Provides algebraic structures such as semirings, rings, and fields,
along with their concrete implementations.
-
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 TypeClassDescriptionclassAbstractCooRingMatrix<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.classAbstractCooRingTensor<T extends AbstractCooRingTensor<T,U, V>, U extends AbstractDenseRingTensor<U, V>, V extends Ring<V>> Base class for all sparseRingtensors stored in coordinate list (COO) format.classAbstractCooRingVector<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.classAbstractCsrRingMatrix<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.classAbstractDenseRingMatrix<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.classAbstractDenseRingTensor<T extends AbstractDenseRingTensor<T,V>, V extends Ring<V>> The base class for all denseRingtensors.classAbstractDenseRingVector<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 areRingelements.interfaceRingTensorMixin<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 RingModifierConstructorDescriptionprotectedAbstractCooRingMatrix(Shape shape, W[] entries, int[] rowIndices, int[] colIndices) Creates a sparse coo matrix with the specified non-zero data, non-zero indices, and shape.protectedAbstractCooRingMatrix(Shape shape, W[] entries, int[] rowIndices, int[] colIndices, Object dummy) Creates a sparse coo matrix with the specified non-zero data, non-zero indices, and shape.protectedAbstractCooRingTensor(Shape shape, V[] data, int[][] indices) Creates a tensor with the specified data and shape.protectedAbstractCooRingTensor(Shape shape, V[] data, int[][] indices, Object dummy) Constructor useful for avoiding parameter validation while constructing COO tensors.protectedAbstractCooRingVector(Shape shape, Y[] entries, int[] indices) Creates a COO vector with the specified data and shape.protectedAbstractCooRingVector(Shape shape, Y[] data, int[] indices, Object dummy) Creates a tensor with the specified data and shape without performing any validation on the parameters.protectedAbstractCsrRingMatrix(Shape shape, W[] data, int[] rowPointers, int[] colIndices) Creates a sparse CSR matrix with the specifiedshape, non-zero data, row pointers, and non-zero column indices.protectedAbstractCsrRingMatrix(Shape shape, W[] data, int[] rowPointers, int[] colIndices, Object dummy) Creates a sparse CSR matrix with the specifiedshape, non-zero data, row pointers, and non-zero column indices.protectedAbstractDenseRingMatrix(Shape shape, V[] data) Creates a tensor with the specified data and shape.protectedAbstractDenseRingTensor(Shape shape, V[] data) Creates a tensor with the specified data and shape.protectedAbstractDenseRingVector(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 TypeClassDescriptionclassRingMatrix<T extends Ring<T>>Instances of this class represents a dense matrix backed by aRingarray.classRingTensor<T extends Ring<T>>Instances of this class represent a dense tensor backed by aRingarray.classRingVector<T extends Ring<T>>Instances of this class represents a dense vector backed by aRingarray.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 specifiedshapeanddata.RingMatrix.makeLikeTensor(Shape shape, T[] entries) Constructs a tensor of the same type as this tensor with the given theshapeanddata.RingTensor.makeLikeTensor(Shape shape, T[] entries) Constructs a tensor of the same type as this tensor with the given theshapeanddata.RingVector.makeLikeTensor(Shape shape, T[] entries) Constructs a tensor of the same type as this tensor with the given theshapeanddata.RingVector.makeLikeTensor(T[] entries) Constructs a dense vector with the specifieddataof 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 TypeClassDescriptionclassCooRingMatrix<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 specifiedRingtype.classCooRingTensor<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 specifiedRingtype.classCooRingVector<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 specifiedRingtype.classCsrRingMatrix<T extends Ring<T>>Methods in org.flag4j.arrays.sparse with type parameters of type RingModifier and TypeMethodDescriptionstatic <T extends Ring<T>>
CooRingMatrix<T> CooRingMatrix.unsafeMake(Shape shape, T[] data, int[] rowIndices, int[] colIndices) Factory to construct a COO matrix which bypasses any validation checks on the data and indices.static <T extends Ring<T>>
CooRingTensor<T> CooRingTensor.unsafeMake(Shape shape, T[] data, int[][] indices) Factory to construct a COO tensor which bypasses any validation checks on the data and indices.static <T extends Ring<T>>
CooRingVector<T> CooRingVector.unsafeMake(int size, T[] data, int[] indices) Factory to construct a COO vector which bypasses any validation checks on the data and indices.static <T extends Ring<T>>
CooRingVector<T> CooRingVector.unsafeMake(Shape shape, T[] data, int[] indices) Factory to construct a COO vector which bypasses any validation checks on the data and indices.static <T extends Ring<T>>
CsrRingMatrix<T> CsrRingMatrix.unsafeMake(Shape shape, Complex128[] data, int[] rowPointers, int[] colIndices) Factory to construct a CSR matrix which bypasses any validation checks on the data and indices.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 specifiedshapeanddatawhich 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 theshapeanddata.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 theshapeanddata.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 theshapeanddata.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 theshapeanddata.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.static <T extends Ring<T>>
CooRingMatrix<T> CooRingMatrix.unsafeMake(Shape shape, T[] data, int[] rowIndices, int[] colIndices) Factory to construct a COO matrix which bypasses any validation checks on the data and indices.static <T extends Ring<T>>
CooRingTensor<T> CooRingTensor.unsafeMake(Shape shape, T[] data, int[][] indices) Factory to construct a COO tensor which bypasses any validation checks on the data and indices.static <T extends Ring<T>>
CooRingVector<T> CooRingVector.unsafeMake(int size, T[] data, int[] indices) Factory to construct a COO vector which bypasses any validation checks on the data and indices.static <T extends Ring<T>>
CooRingVector<T> CooRingVector.unsafeMake(Shape shape, T[] data, int[] indices) Factory to construct a COO vector which bypasses any validation checks on the data and indices.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 (\( \ell ^{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 \( \ell ^{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 \( \ell ^{2} \) (Euclidean) norm of a sub-vector withinsrc, starting at indexstartand consideringnelements 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 (\( \ell ^{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 \( \ell ^{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 \( \ell ^{2} \) (Euclidean) norm of a sub-vector withinsrc, starting at indexstartand consideringnelements 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 amongnelements in the arraysrc, starting at indexstartand advancing bystridefor 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 amongnelements in the arraysrc, starting at indexstartand advancing bystridefor 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 amongnelements in the arraysrc, starting at indexstartand advancing bystridefor 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 amongnelements in the arraysrc, starting at indexstartand advancing bystridefor 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 COORingmatrix 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 exchangingaxis1andaxis2.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 COORingmatrix 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 exchangingaxis1andaxis2. -
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 thesrcmatrix 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. -
Uses of Ring in org.flag4j.numbers
Classes in org.flag4j.numbers with type parameters of type RingModifier and TypeInterfaceDescriptioninterfaceDefines a mathematical ring structure and specifies the operations that ring elements must support.Subinterfaces of Ring in org.flag4j.numbersModifier and TypeInterfaceDescriptioninterfaceDefines a mathematical field structure and specifies the operations that field elements must support.Classes in org.flag4j.numbers that implement RingModifier and TypeClassDescriptionclassRepresents an immutable complex number with double-precision floating point components.classRepresents an immutable complex number with single-precision floating point components.classRepresents an immutable real number backed by a 32-bit floating-point value.classRepresents an immutable real number backed by a 64-bit floating-point value.classA real number backed by a 16-bit integer number.classA real number backed by a 32-bit integer number.