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 Ring
    Modifier and Type
    Interface
    Description
    interface 
    Ring<T extends Ring<T>>
    Defines a mathematical ring structure and specifies the operations that ring elements must support.
    Modifier and Type
    Interface
    Description
    interface 
    Field<T extends Field<T>>
    Defines a mathematical field structure and specifies the operations that field elements must support.
    Classes in org.flag4j.algebraic_structures that implement Ring
    Modifier and Type
    Class
    Description
    class 
    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 Ring
    Modifier and Type
    Class
    Description
    class 
    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 sparse Ring 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 a Ring.
    class 
    The base class for all dense Ring 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 are Ring 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 a Ring.
    Modifier and Type
    Method
    Description
    default 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 Ring
    Modifier and Type
    Method
    Description
    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 Ring
    Modifier
    Constructor
    Description
    protected
    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 specified shape, non-zero data, row pointers, and non-zero column indices.
    protected
    Creates a tensor with the specified data and shape.
    protected
    Creates a tensor with the specified data and shape.
    protected
    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 Ring
    Modifier and Type
    Method
    Description
    <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)
     
    abstract <U extends Ring<U>>
    T
    MatrixVisitor.visit(RingMatrix<U> matrix)
     
    abstract <U extends Ring<U>>
    T
    MatrixVisitor.visit(CooRingMatrix<U> matrix)
     
    abstract <U extends Ring<U>>
    T
    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 Ring
    Modifier and Type
    Class
    Description
    class 
    RingMatrix<T extends Ring<T>>
    Instances of this class represents a dense matrix backed by a Ring array.
    class 
    RingTensor<T extends Ring<T>>
    Instances of this class represent a dense tensor backed by a Ring array.
    class 
    RingVector<T extends Ring<T>>
    Instances of this class represents a dense vector backed by a Ring array.
    Methods in org.flag4j.arrays.dense with type parameters of type Ring
    Modifier and Type
    Method
    Description
    static <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>
    RingMatrix.I(Shape shape, T fieldValue)
    Constructs an identity-like matrix of the specified shape.
    Methods in org.flag4j.arrays.dense with parameters of type Ring
    Modifier and Type
    Method
    Description
    protected 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 specified shape and data.
    RingMatrix.makeLikeTensor(Shape shape, T[] entries)
    Constructs a tensor of the same type as this tensor with the given the shape and data.
    RingTensor.makeLikeTensor(Shape shape, T[] entries)
    Constructs a tensor of the same type as this tensor with the given the shape and data.
    RingVector.makeLikeTensor(Shape shape, T[] entries)
    Constructs a tensor of the same type as this tensor with the given the shape and data.
    RingVector.makeLikeTensor(T[] entries)
    Constructs a dense vector with the specified data 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 Ring
    Modifier
    Constructor
    Description
     
    RingMatrix(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 Ring
    Modifier and Type
    Class
    Description
    class 
    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 specified Ring 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 specified Ring 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 specified Ring type.
    class 
    CsrRingMatrix<T extends Ring<T>>
     
    Methods in org.flag4j.arrays.sparse with parameters of type Ring
    Modifier and Type
    Method
    Description
    CsrRingMatrix.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 specified shape and data 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 the shape and data.
    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 the shape and data.
    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 the shape and data.
    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 the shape and data.
    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 Ring
    Modifier
    Constructor
    Description
     
    CooRingMatrix(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 specified shape, 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 Ring
    Modifier and Type
    Method
    Description
    static <T extends Ring<T>>
    double
    VectorNorms.norm(T... src)
    Computes the Euclidean (ℓ2) norm of a dense or sparse vector whose entries are members of a Ring.
    static <T extends Ring<T>>
    double
    VectorNorms.norm(T[] src, double p)
    Computes the ℓp norm (or p-norm) of a dense or sparse vector whose entries are members of a Ring.
    static <T extends Ring<T>>
    double
    VectorNorms.norm(T[] src, int start, int n, int stride)
    Computes the ℓ2 (Euclidean) norm of a sub-vector within src, starting at index start and considering n elements spaced by stride.
    Methods in org.flag4j.linalg with parameters of type Ring
    Modifier and Type
    Method
    Description
    static <T extends Ring<T>>
    double
    VectorNorms.norm(T... src)
    Computes the Euclidean (ℓ2) norm of a dense or sparse vector whose entries are members of a Ring.
    static <T extends Ring<T>>
    double
    VectorNorms.norm(T[] src, double p)
    Computes the ℓp norm (or p-norm) of a dense or sparse vector whose entries are members of a Ring.
    static <T extends Ring<T>>
    double
    VectorNorms.norm(T[] src, int start, int n, int stride)
    Computes the ℓ2 (Euclidean) norm of a sub-vector within src, starting at index start and considering n elements spaced by stride.
  • Uses of Ring in org.flag4j.linalg.ops

    Methods in org.flag4j.linalg.ops with type parameters of type Ring
    Modifier and Type
    Method
    Description
    static <T extends Ring<T>>
    void
    TransposeDispatcher.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>>
    void
    TransposeDispatcher.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>>
    void
    TransposeDispatcher.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 Ring
    Modifier and Type
    Method
    Description
    static <T extends Ring<T>>
    void
    TransposeDispatcher.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>>
    void
    TransposeDispatcher.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>>
    void
    TransposeDispatcher.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 Ring
    Modifier and Type
    Method
    Description
    static <T extends Ring<T>>
    void
    RingOps.abs(T[] src, double[] dest)
    Computes the element-wise absolute value of an array.
    static <T extends Ring<T>>
    boolean
    RingProperties.allClose(T[] src1, T[] src2)
    Checks if all data of two arrays are 'close'.
    static <T extends Ring<T>>
    boolean
    RingProperties.allClose(T[] src1, T[] src2, double relTol, double absTol)
    Checks if all data of two arrays are 'close'.
    static <T extends Ring<T>>
    int
    CompareRing.argmaxAbs(T... values)
    Computes the index of the maximum absolute value in the specified array.
    static <T extends Ring<T>>
    int
    CompareRing.argminAbs(T... values)
    Computes the index of the minimum absolute value in the specified array.
    static <T extends Ring<T>>
    void
    RingOps.conj(T[] src, T[] dest)
    Computes the element-wise conjugation of an array.
    static <T extends Ring<T>>
    double
    CompareRing.maxAbs(T... values)
    Computes the maximum absolute value in the specified array.
    static <T extends Ring<T>>
    double
    CompareRing.maxAbs(T[] src, int start, int n, int stride)
    Returns the maximum absolute value among n elements in the array src, starting at index start and advancing by stride for each subsequent element.
    static <T extends Ring<T>>
    double
    CompareRing.minAbs(T... values)
    Computes the minimum absolute value in the specified array.
    static <T extends Ring<T>>
    double
    CompareRing.minAbs(T[] src, int start, int n, int stride)
    Returns the minimum absolute value among n elements in the array src, starting at index start and advancing by stride for each subsequent element.
    static <T extends Ring<T>>
    void
    RingOps.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 Ring
    Modifier and Type
    Method
    Description
    static <T extends Ring<T>>
    void
    RingOps.abs(T[] src, double[] dest)
    Computes the element-wise absolute value of an array.
    static <T extends Ring<T>>
    boolean
    RingProperties.allClose(T[] src1, T[] src2)
    Checks if all data of two arrays are 'close'.
    static <T extends Ring<T>>
    boolean
    RingProperties.allClose(T[] src1, T[] src2, double relTol, double absTol)
    Checks if all data of two arrays are 'close'.
    static <T extends Ring<T>>
    int
    CompareRing.argmaxAbs(T... values)
    Computes the index of the maximum absolute value in the specified array.
    static <T extends Ring<T>>
    int
    CompareRing.argminAbs(T... values)
    Computes the index of the minimum absolute value in the specified array.
    static <T extends Ring<T>>
    void
    RingOps.conj(T[] src, T[] dest)
    Computes the element-wise conjugation of an array.
    static <T extends Ring<T>>
    double
    CompareRing.maxAbs(T... values)
    Computes the maximum absolute value in the specified array.
    static <T extends Ring<T>>
    double
    CompareRing.maxAbs(T[] src, int start, int n, int stride)
    Returns the maximum absolute value among n elements in the array src, starting at index start and advancing by stride for each subsequent element.
    static <T extends Ring<T>>
    double
    CompareRing.minAbs(T... values)
    Computes the minimum absolute value in the specified array.
    static <T extends Ring<T>>
    double
    CompareRing.minAbs(T[] src, int start, int n, int stride)
    Returns the minimum absolute value among n elements in the array src, starting at index start and advancing by stride for each subsequent element.
    static <T extends Ring<T>>
    void
    RingOps.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 Ring
    Modifier and Type
    Method
    Description
    static <T extends Ring<T>>
    void
    DenseRingHermitianTranspose.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>>
    void
    DenseRingHermitianTranspose.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>>
    T
    DenseRingVectorOps.innerProduct(T[] src1, T[] src2)
    Computes the vector inner product for two vectors.
    static <T extends Ring<T>>
    boolean
    DenseRingTensorOps.isCloseToIdentity(Shape shape, T[] src)
    Checks if a matrix is the identity matrix approximately.
    static <T extends Ring<T>>
    boolean
    DenseRingTensorOps.isHermitian(Shape shape, T[] src)
    Checks if a complex dense matrix is Hermitian.
    static <T extends Ring<T>>
    double
    DenseRingVectorNorms.norm(T... src)
    Computes the 2-norm of a vector.
    static <T extends Ring<T>>
    double
    DenseRingVectorNorms.norm(T[] src, double p)
    Computes the p-norm of a vector.
    static <T extends Ring<T>>
    Ring<T>[]
    DenseRingVectorOps.outerProduct(T[] src1, T[] src2)
    Computes the vector outer product between two real dense vectors.
    static <T extends Ring<T>>
    Ring<T>[]
    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>>
    void
    DenseRingHermitianTranspose.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>>
    void
    DenseRingHermitianTranspose.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>>
    void
    DenseRingHermitianTranspose.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>>
    void
    DenseRingHermitianTranspose.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>>
    void
    DenseRingHermitianTranspose.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>>
    void
    DenseRingHermitianTranspose.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>>
    void
    DenseRingTensorOps.sub(Shape shape1, T[] src1, Shape shape2, T[] src2, T[] dest)
    Computes the element-wise difference between two dense tensors.
    Modifier and Type
    Method
    Description
    static <T extends Ring<T>>
    Ring<T>[]
    DenseRingVectorOps.outerProduct(T[] src1, T[] src2)
    Computes the vector outer product between two real dense vectors.
    static <T extends Ring<T>>
    Ring<T>[]
    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 Ring
    Modifier and Type
    Method
    Description
    static <T extends Ring<T>>
    void
    DenseRingHermitianTranspose.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>>
    void
    DenseRingHermitianTranspose.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>>
    T
    DenseRingVectorOps.innerProduct(T[] src1, T[] src2)
    Computes the vector inner product for two vectors.
    static <T extends Ring<T>>
    boolean
    DenseRingTensorOps.isCloseToIdentity(Shape shape, T[] src)
    Checks if a matrix is the identity matrix approximately.
    static <T extends Ring<T>>
    boolean
    DenseRingTensorOps.isHermitian(Shape shape, T[] src)
    Checks if a complex dense matrix is Hermitian.
    static <T extends Ring<T>>
    double
    DenseRingVectorNorms.norm(T... src)
    Computes the 2-norm of a vector.
    static <T extends Ring<T>>
    double
    DenseRingVectorNorms.norm(T[] src, double p)
    Computes the p-norm of a vector.
    static <T extends Ring<T>>
    Ring<T>[]
    DenseRingVectorOps.outerProduct(T[] src1, T[] src2)
    Computes the vector outer product between two real dense vectors.
    static <T extends Ring<T>>
    Ring<T>[]
    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>>
    void
    DenseRingHermitianTranspose.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>>
    void
    DenseRingHermitianTranspose.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>>
    void
    DenseRingHermitianTranspose.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>>
    void
    DenseRingHermitianTranspose.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>>
    void
    DenseRingHermitianTranspose.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>>
    void
    DenseRingHermitianTranspose.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>>
    void
    DenseRingTensorOps.sub(Shape shape1, T[] src1, Shape shape2, T[] src2, T[] dest)
    Computes 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 Ring
    Modifier and Type
    Method
    Description
    static <T extends Ring<T>>
    T
    CooRingVectorOps.inner(AbstractCooRingVector<?,?,?,?,T> src1, AbstractCooRingVector<?,?,?,?,T> src2)
    Computes the inner product of two complex sparse vectors.
    static <T extends Ring<T>>
    boolean
    CooRingMatrixOps.isCloseToIdentity(AbstractCooRingMatrix<?,?,?,T> src)
    Checks if a real sparse matrix is close to the identity matrix.
    static <T extends Ring<T>>
    boolean
    CooRingMatrixOps.isHermitian(Shape shape, T[] data, int[] rowIndices, int[] colIndices)
    Checks if a sparse COO Ring matrix is Hermitian.
    static <T extends Ring<T>>
    double
    CooRingNorms.matrixNormL22(AbstractCooRingMatrix<?,?,?,T> src)
    Computes the L2, 2 norm of a matrix.
    static <T extends Ring<T>>
    double
    CooRingNorms.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>>
    void
    CooRingHermTranspose.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>>
    void
    CooRingHermTranspose.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 exchanging axis1 and axis2.
    Methods in org.flag4j.linalg.ops.sparse.coo.ring_ops with parameters of type Ring
    Modifier and Type
    Method
    Description
    static <T extends Ring<T>>
    boolean
    CooRingMatrixOps.isHermitian(Shape shape, T[] data, int[] rowIndices, int[] colIndices)
    Checks if a sparse COO Ring 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>>
    void
    CooRingHermTranspose.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>>
    void
    CooRingHermTranspose.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 exchanging axis1 and axis2.
  • 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 Ring
    Modifier and Type
    Method
    Description
    static <T extends Ring<T>>
    boolean
    CsrRingProperties.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 argument tensor.
    static <T extends Ring<T>>
    boolean
    CsrRingProperties.isCloseToIdentity(AbstractCsrRingMatrix<?,?,?,T> src)
    Checks if the src matrix is close to the identity matrix.
    static <T extends Ring<T>>
    boolean
    CsrRingProperties.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 Ring
    Modifier and Type
    Method
    Description
    static <T extends Ring<T>>
    boolean
    CsrRingProperties.isHermitian(Shape shape, T[] values, int[] rowPointers, int[] colIndices)
    Checks if a sparse CSR matrix is Hermitian.