Uses of Class
org.flag4j.arrays.backend.AbstractTensor
Packages that use AbstractTensor
Package
Description
Provides implementations for dense tensors, matrices, and vectors.
Contains implementations for sparse tensors, matrices, and vectors.
IO for vector, matrix, and tensor objects.
-
Uses of AbstractTensor in org.flag4j.arrays.backend
Classes in org.flag4j.arrays.backend with type parameters of type AbstractTensorModifier and TypeClassDescriptionclass
AbstractTensor<T extends AbstractTensor<T,
U, V>, U, V> The base abstract class for all tensors, including matrices and vectors.Methods in org.flag4j.arrays.backend with parameters of type AbstractTensorModifier and TypeMethodDescriptionboolean
AbstractTensor.sameShape
(AbstractTensor<?, ?, ?> B) Checks if a tensor has the same shape as this tensor. -
Uses of AbstractTensor in org.flag4j.arrays.backend.field_arrays
Subclasses of AbstractTensor in org.flag4j.arrays.backend.field_arraysModifier and TypeClassDescriptionclass
AbstractCooFieldMatrix<T extends AbstractCooFieldMatrix<T,
U, V, W>, U extends AbstractDenseFieldMatrix<U, ?, W>, V extends AbstractCooFieldVector<V, ?, T, U, W>, W extends Field<W>> A sparse matrix stored in coordinate list (COO) format.class
AbstractCooFieldTensor<T extends AbstractCooFieldTensor<T,
U, V>, U extends AbstractDenseFieldTensor<U, V>, V extends Field<V>> Base class for all sparseField
tensors stored in coordinate list (COO) format.class
AbstractCooFieldVector<T extends AbstractCooFieldVector<T,
U, V, W, Y>, U extends AbstractDenseFieldVector<U, W, Y>, V extends AbstractCooFieldMatrix<V, W, T, Y>, W extends AbstractDenseFieldMatrix<W, U, Y>, Y extends Field<Y>> A sparse vector stored in coordinate list (COO) format.class
AbstractCsrFieldMatrix<T extends AbstractCsrFieldMatrix<T,
U, V, W>, U extends AbstractDenseFieldMatrix<U, ?, W>, V extends AbstractCooFieldVector<V, ?, ?, U, W>, W extends Field<W>> class
AbstractDenseFieldMatrix<T extends AbstractDenseFieldMatrix<T,
U, V>, U extends AbstractDenseFieldVector<U, T, V>, V extends Field<V>> class
AbstractDenseFieldTensor<T extends AbstractDenseFieldTensor<T,
V>, V extends Field<V>> The base class for all denseField
tensors.class
AbstractDenseFieldVector<T extends AbstractDenseFieldVector<T,
U, V>, U extends AbstractDenseFieldMatrix<U, T, V>, V extends Field<V>> The base class for all dense vectors whose data areField
elements. -
Uses of AbstractTensor in org.flag4j.arrays.backend.primitive_arrays
Subclasses of AbstractTensor in org.flag4j.arrays.backend.primitive_arraysModifier and TypeClassDescriptionclass
AbstractDenseDoubleTensor<T extends AbstractDoubleTensor<T>>
This is the base class of all real primitive double tensors.class
AbstractDoubleTensor<T extends AbstractDoubleTensor<T>>
This is the base class of all real primitive double tensors, matrices, or vectors. -
Uses of AbstractTensor in org.flag4j.arrays.backend.ring_arrays
Subclasses of AbstractTensor in org.flag4j.arrays.backend.ring_arraysModifier 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. -
Uses of AbstractTensor in org.flag4j.arrays.backend.semiring_arrays
Subclasses of AbstractTensor in org.flag4j.arrays.backend.semiring_arraysModifier and TypeClassDescriptionclass
AbstractCooSemiringMatrix<T extends AbstractCooSemiringMatrix<T,
U, V, W>, U extends AbstractDenseSemiringMatrix<U, ?, W>, V extends AbstractCooSemiringVector<V, ?, T, U, W>, W extends Semiring<W>> A sparse matrix stored in coordinate list (COO) format.class
AbstractCooSemiringTensor<T extends AbstractCooSemiringTensor<T,
U, V>, U extends AbstractDenseSemiringTensor<U, V>, V extends Semiring<V>> Base class for all sparse tensors stored in coordinate list (COO) format.class
AbstractCooSemiringVector<T extends AbstractCooSemiringVector<T,
U, V, W, Y>, U extends AbstractDenseSemiringVector<U, W, Y>, V extends AbstractCooSemiringMatrix<V, W, T, Y>, W extends AbstractDenseSemiringMatrix<W, U, Y>, Y extends Semiring<Y>> A sparse vector stored in coordinate list (COO) format.class
AbstractCsrSemiringMatrix<T extends AbstractCsrSemiringMatrix<T,
U, V, W>, U extends AbstractDenseSemiringMatrix<U, ?, W>, V extends AbstractCooSemiringVector<V, ?, ?, U, W>, W extends Semiring<W>> A sparse matrix stored in compressed sparse row (CSR) format.class
AbstractDenseSemiringMatrix<T extends AbstractDenseSemiringMatrix<T,
U, V>, U extends AbstractDenseSemiringVector<U, T, V>, V extends Semiring<V>> The base class for all dense matrices whose elements are members of aSemiring
.class
AbstractDenseSemiringTensor<T extends AbstractDenseSemiringTensor<T,
V>, V extends Semiring<V>> The base class for all denseSemiring
tensors.class
AbstractDenseSemiringVector<T extends AbstractDenseSemiringVector<T,
U, V>, U extends AbstractDenseSemiringMatrix<U, T, V>, V extends Semiring<V>> The base class for all dense vectors whose data areSemiring
elements.Methods in org.flag4j.arrays.backend.semiring_arrays that return AbstractTensorModifier and TypeMethodDescriptionprotected abstract AbstractTensor
<?, V[], V> AbstractDenseSemiringTensor.makeLikeCooTensor
(Shape shape, V[] data, int[][] indices) Constructs a sparse COO tensor which is of a similar type as this dense tensor.default AbstractTensor
<?, V, W> Computes the tensor dot product of this tensor with a second tensor.default AbstractTensor
<?, V, W> Computes the tensor contraction of this tensor with a specified tensor over the specified axes.AbstractTensor
<?, V, W> Computes the tensor contraction of this tensor with a specified tensor over the specified set of axes.default AbstractTensor
<?, V, W> Computes the tensor contraction of this tensor with a specified tensor over the specified axes.AbstractTensor
<?, V[], V> AbstractDenseSemiringTensor.toCoo()
Converts this tensor to an equivalent sparse COO tensor.AbstractTensor
<?, V[], V> AbstractDenseSemiringTensor.toCoo
(double estimatedSparsity) Converts this tensor to an equivalent sparse COO tensor.abstract AbstractTensor
<?, Y[], Y> AbstractCooSemiringVector.toTensor()
Converts this matrix to an equivalent rank 1 tensor.abstract AbstractTensor
<?, Y[], Y> Converts this vector to an equivalent tensor with the specified shape. -
Uses of AbstractTensor in org.flag4j.arrays.dense
Subclasses of AbstractTensor in org.flag4j.arrays.denseModifier and TypeClassDescriptionclass
Instances of this class represents a complex dense matrix backed by aComplex128
array.class
A dense complex tensor backed by an array ofComplex128
's.class
class
FieldMatrix<T extends Field<T>>
Instances of this class represents a dense matrix backed by aField
array.class
FieldTensor<T extends Field<T>>
Instances of this class represent a dense tensor backed by aField
array.class
FieldVector<T extends Field<T>>
Instances of this class represents a dense vector backed by aField
array.class
Instances of this class represents a complex dense matrix backed by adouble[]
array.class
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.class
SemiringMatrix<T extends Semiring<T>>
Instances of this class represents a dense matrix backed by aSemiring
array.class
SemiringTensor<T extends Semiring<T>>
Instances of this class represent a dense tensor backed by aSemiring
array.class
SemiringVector<T extends Semiring<T>>
Instances of this class represents a dense vector backed by aSemiring
array.class
A real dense tensor backed by a primitive double array.class
A dense vector backed by a primitive double array. -
Uses of AbstractTensor in org.flag4j.arrays.sparse
Subclasses of AbstractTensor in org.flag4j.arrays.sparseModifier and TypeClassDescriptionclass
A complex sparse matrix stored in coordinate list (COO) format.class
Sparse complex tensor stored in coordinate list (COO) format.class
A complex sparse vector stored in coordinate list (COO) format.class
CooFieldMatrix<T extends Field<T>>
Instances of this class represent a sparse matrix whose non-zero elements are stored in Coordinate List (COO) format, with all data elements belonging to a specifiedField
type.class
CooFieldTensor<T extends Field<T>>
Represents a sparse tensor whose non-zero elements are stored in Coordinate List (COO) format, with all data elements belonging to a specifiedField
type.class
CooFieldVector<T extends Field<T>>
Represents a sparse vector whose non-zero elements are stored in Coordinate List (COO) format, with all data elements belonging to a specifiedField
type.class
A real sparse matrix stored in coordinate list (COO) format.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 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
CooSemiringMatrix<T extends Semiring<T>>
Represents a sparse matrix whose non-zero elements are stored in Coordinate List (COO) format, with all data elements belonging to a specifiedSemiring
type.class
CooSemiringTensor<T extends Semiring<T>>
Represents a sparse tensor whose non-zero elements are stored in Coordinate List (COO) format, with all data elements belonging to a specifiedSemiring
type.class
CooSemiringVector<T extends Semiring<T>>
Represents a sparse vector whose non-zero elements are stored in Coordinate List (COO) format, with all data elements belonging to a specifiedSemiring
type.class
A real sparse tensor stored in coordinate list (COO) format.class
A real sparse vector stored in coordinate list (COO) format.class
A complex sparse matrix stored in compressed sparse row (CSR) format.class
CsrFieldMatrix<T extends Field<T>>
Instances of this class represent a sparse matrix using the compressed sparse row (CSR) format where all data elements belonging to a specifiedField
type.class
Instances of this class represent a real sparse matrix using the compressed sparse row (CSR) format.class
CsrRingMatrix<T extends Ring<T>>
class
CsrSemiringMatrix<T extends Semiring<T>>
Instances of this class represent a sparse matrix using the compressed sparse row (CSR) format where all data elements belonging to a specifiedSemiring
type.Methods in org.flag4j.arrays.sparse that return AbstractTensorModifier and TypeMethodDescriptionCooCMatrix.tensorDot
(CooCMatrix src2, int[] aAxes, int[] bAxes) Computes the tensor contraction of this tensor with a specified tensor over the specified set of axes.AbstractTensor
<?, T[], T> CsrFieldMatrix.tensorDot
(CsrFieldMatrix<T> src2, int[] aAxes, int[] bAxes) Computes the tensor contraction of this tensor with a specified tensor over the specified set of axes. -
Uses of AbstractTensor in org.flag4j.io
Methods in org.flag4j.io that return AbstractTensorModifier and TypeMethodDescriptionAbstractTensor
<?, ?, ?> Loads Matrix Market data from the file specified on instantiation of thisMatrixMarketReader
.static AbstractTensor
<?, ?, ?> Reads a serializedAbstractTensor
from a specified file using aObjectInputStream
.Methods in org.flag4j.io with parameters of type AbstractTensorModifier and TypeMethodDescriptionstatic void
TensorWriter.write
(String fileName, AbstractTensor<?, ?, ?> src) Writes a tensor to a file using aObjectOutputStream
. -
Uses of AbstractTensor in org.flag4j.linalg.solvers.exact
Classes in org.flag4j.linalg.solvers.exact with type parameters of type AbstractTensorModifier and TypeClassDescriptionclass
ExactTensorSolver<T extends AbstractTensor<T,
?, ?>, U extends MatrixMixin<U, ?, V, ?>, V extends VectorMixin<V, U, ?, ?>> Solves a well determined system of equations AX=B in an exact sense where A, X, and B are tensors.