- java.lang.Object
-
- org.ojalgo.array.BasicArray<N>
-
- org.ojalgo.array.DenseArray<N>
-
- org.ojalgo.array.PlainArray<java.lang.Double>
-
- org.ojalgo.array.PrimitiveArray
-
- org.ojalgo.array.ArrayR032
-
- org.ojalgo.matrix.store.R032Store
-
- All Implemented Interfaces:
java.util.function.Consumer<Access2D<?>>,java.util.RandomAccess,Group,Group.Additive<MatrixStore<java.lang.Double>>,NormedVectorSpace<MatrixStore<java.lang.Double>,java.lang.Double>,Operation,Operation.Addition<MatrixStore<java.lang.Double>>,Operation.Multiplication<MatrixStore<java.lang.Double>>,Operation.Subtraction<MatrixStore<java.lang.Double>>,ScalarOperation,ScalarOperation.Addition<MatrixStore<java.lang.Double>,java.lang.Double>,ScalarOperation.Division<MatrixStore<java.lang.Double>,java.lang.Double>,ScalarOperation.Multiplication<MatrixStore<java.lang.Double>,java.lang.Double>,ScalarOperation.Subtraction<MatrixStore<java.lang.Double>,java.lang.Double>,VectorSpace<MatrixStore<java.lang.Double>,java.lang.Double>,Matrix2D<java.lang.Double,MatrixStore<java.lang.Double>>,ElementsSupplier<java.lang.Double>,MatrixStore<java.lang.Double>,PhysicalStore<java.lang.Double>,TransformableRegion<java.lang.Double>,Access1D<java.lang.Double>,Access1D.Aggregatable<java.lang.Double>,Access1D.Collectable<java.lang.Double,Mutate1D>,Access1D.Sliceable<java.lang.Double>,Access1D.Visitable<java.lang.Double>,Access2D<java.lang.Double>,Access2D.Aggregatable<java.lang.Double>,Access2D.Collectable<java.lang.Double,TransformableRegion<java.lang.Double>>,Access2D.Sliceable<java.lang.Double>,Access2D.Visitable<java.lang.Double>,Factory1D.Builder<DenseArray<java.lang.Double>>,Factory2D.Builder<R032Store>,Mutate1D,Mutate1D.Fillable<java.lang.Double>,Mutate1D.Modifiable<java.lang.Double>,Mutate1D.Sortable,Mutate2D,Mutate2D.Exchangeable,Mutate2D.Fillable<java.lang.Double>,Mutate2D.Modifiable<java.lang.Double>,Mutate2D.ModifiableReceiver<java.lang.Double>,Mutate2D.Receiver<java.lang.Double>,Operate2D<java.lang.Double,ElementsSupplier<java.lang.Double>>,Structure1D,Structure2D,Structure2D.Logical<Access2D<java.lang.Double>,MatrixStore<java.lang.Double>>,Structure2D.ReducibleTo1D<ElementsSupplier<java.lang.Double>>
public final class R032Store extends ArrayR032 implements PhysicalStore<java.lang.Double>, Factory2D.Builder<R032Store>
A float implementation of PhysicalStore.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ojalgo.array.PrimitiveArray
PrimitiveArray.Factory
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Access1D
Access1D.Aggregatable<N extends java.lang.Comparable<N>>, Access1D.Collectable<N extends java.lang.Comparable<N>,R extends Mutate1D>, Access1D.ElementView<N extends java.lang.Comparable<N>>, Access1D.SelectionView<N extends java.lang.Comparable<N>>, Access1D.Sliceable<N extends java.lang.Comparable<N>>, Access1D.Visitable<N extends java.lang.Comparable<N>>
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Access2D
Access2D.Aggregatable<N extends java.lang.Comparable<N>>, Access2D.Collectable<N extends java.lang.Comparable<N>,R extends Mutate2D>, Access2D.ColumnView<N extends java.lang.Comparable<N>>, Access2D.ElementView<N extends java.lang.Comparable<N>>, Access2D.RowView<N extends java.lang.Comparable<N>>, Access2D.SelectionView<N extends java.lang.Comparable<N>>, Access2D.Sliceable<N extends java.lang.Comparable<N>>, Access2D.Visitable<N extends java.lang.Comparable<N>>
-
Nested classes/interfaces inherited from interface org.ojalgo.algebra.Group
Group.Additive<T>, Group.Multiplicative<T>
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Mutate1D
Mutate1D.Fillable<N extends java.lang.Comparable<N>>, Mutate1D.Mixable<N extends java.lang.Comparable<N>>, Mutate1D.Modifiable<N extends java.lang.Comparable<N>>, Mutate1D.ModifiableReceiver<N extends java.lang.Comparable<N>>, Mutate1D.Receiver<N extends java.lang.Comparable<N>>, Mutate1D.Sortable
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Mutate2D
Mutate2D.Exchangeable, Mutate2D.Fillable<N extends java.lang.Comparable<N>>, Mutate2D.Mixable<N extends java.lang.Comparable<N>>, Mutate2D.Modifiable<N extends java.lang.Comparable<N>>, Mutate2D.ModifiableReceiver<N extends java.lang.Comparable<N>>, Mutate2D.Receiver<N extends java.lang.Comparable<N>>
-
Nested classes/interfaces inherited from interface org.ojalgo.algebra.Operation
Operation.Addition<T>, Operation.Division<T>, Operation.Multiplication<T>, Operation.Subtraction<T>
-
Nested classes/interfaces inherited from interface org.ojalgo.matrix.store.PhysicalStore
PhysicalStore.Factory<N extends java.lang.Comparable<N>,I extends PhysicalStore<N> & Factory2D.Builder<I>>
-
Nested classes/interfaces inherited from interface org.ojalgo.algebra.ScalarOperation
ScalarOperation.Addition<T,N extends java.lang.Comparable<N>>, ScalarOperation.Division<T,N extends java.lang.Comparable<N>>, ScalarOperation.Multiplication<T,N extends java.lang.Comparable<N>>, ScalarOperation.Subtraction<T,N extends java.lang.Comparable<N>>
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S extends Structure1D,B extends Structure1D.Logical<S,B>>, Structure1D.LongIndex, Structure1D.LoopCallback
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure2D
Structure2D.IntRowColumn, Structure2D.Logical<S extends Structure2D,B extends Structure2D.Logical<S,B>>, Structure2D.LongRowColumn, Structure2D.ReducibleTo1D<R extends Structure1D>, Structure2D.Reshapable, Structure2D.RowColumnKey<R,C>, Structure2D.RowColumnMapper<R,C>
-
Nested classes/interfaces inherited from interface org.ojalgo.matrix.store.TransformableRegion
TransformableRegion.FillByMultiplying<N extends java.lang.Comparable<N>>
-
-
Field Summary
Fields Modifier and Type Field Description static PrimitiveFactory<R032Store>FACTORYprivate MultiplyBoth.PrimitivemultiplyBothprivate MultiplyLeft.Primitive32multiplyLeftprivate MultiplyNeither.Primitive32multiplyNeitherprivate MultiplyRight.Primitive32multiplyRightprivate intmyColDimprivate intmyRowDimprivate Array2D<java.lang.Double>myUtilityprivate float[]myWorkerColumn-
Fields inherited from class org.ojalgo.array.PlainArray
MAX_SIZE
-
-
Constructor Summary
Constructors Constructor Description R032Store(int numbRows, int numbCols, float[] dataArray)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Access2D<?> supplied)voidadd(long row, long col, double addend)voidadd(long row, long col, java.lang.Comparable<?> addend)java.lang.DoubleaggregateColumn(long row, long col, Aggregator aggregator)java.lang.DoubleaggregateColumn(long col, Aggregator aggregator)java.lang.DoubleaggregateDiagonal(long row, long col, Aggregator aggregator)java.lang.DoubleaggregateDiagonal(Aggregator aggregator)java.lang.DoubleaggregateRange(long first, long limit, Aggregator aggregator)java.lang.DoubleaggregateRow(long row, long col, Aggregator aggregator)java.lang.DoubleaggregateRow(long row, Aggregator aggregator)<NN extends java.lang.Comparable<NN>,R extends Mutate2D.Receiver<NN>>
Access2D.Collectable<NN,R>asCollectable2D()Array1D<java.lang.Double>asList()An (immutable)Listdelegating to thisAccess1D.R032Storebuild()bytebyteValue(long row, long col)(package private) static Householder.Primitive32cast(Householder<java.lang.Double> transformation)(package private) static Rotation.Primitivecast(Rotation<java.lang.Double> transformation)(package private) static R032Storecast(Access1D<?> matrix)Access2D.ColumnView<java.lang.Double>columns()MatrixStore<java.lang.Double>conjugate()Returns the conjugate transpose of this matrix.longcountColumns()Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.longcountRows()Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.doubledot(Access1D<?> vector)Will calculate and return the dot product of this 1D-structure and another input 1D-vector.doubledoubleValue(int row, int col)Extracts one element of this matrix as a double.ElementView2D<java.lang.Double,?>elements()Returns an Iterable of ElementView1D.booleanequals(java.lang.Object obj)voidexchangeColumns(long colA, long colB)voidexchangeRows(long rowA, long rowB)voidfillByMultiplying(Access1D<java.lang.Double> left, Access1D<java.lang.Double> right)voidfillColumn(long row, long col, java.lang.Double value)voidfillColumn(long row, long col, NullaryFunction<?> supplier)voidfillColumn(long row, long col, Access1D<java.lang.Double> values)voidfillColumn(long col, java.lang.Double value)voidfillColumn(long col, NullaryFunction<?> supplier)voidfillColumn(long col, Access1D<java.lang.Double> values)voidfillCompatible(Access2D<java.lang.Double> left, BinaryFunction<java.lang.Double> operator, Access2D<java.lang.Double> right)'this' needs to be of a size compatible with the 'left' and 'right' matrices.voidfillDiagonal(long row, long col, java.lang.Double value)voidfillDiagonal(long row, long col, NullaryFunction<?> supplier)voidfillDiagonal(long row, long col, Access1D<java.lang.Double> values)voidfillDiagonal(java.lang.Double value)voidfillDiagonal(NullaryFunction<?> supplier)voidfillDiagonal(Access1D<java.lang.Double> values)voidfillMatching(UnaryFunction<java.lang.Double> function, Access1D<java.lang.Double> arguments)voidfillMatching(Access1D<java.lang.Double> left, BinaryFunction<java.lang.Double> function, Access1D<java.lang.Double> right)voidfillRow(long row, long col, java.lang.Double value)voidfillRow(long row, long col, NullaryFunction<?> supplier)voidfillRow(long row, long col, Access1D<java.lang.Double> values)voidfillRow(long row, java.lang.Double value)voidfillRow(long row, NullaryFunction<?> supplier)voidfillRow(long row, Access1D<java.lang.Double> values)floatfloatValue(long row, long col)java.lang.Doubleget(int row, int col)intgetColDim()intgetMaxDim()intgetMinDim()intgetRowDim()private float[]getWorkerColumn()inthashCode()intintValue(long row, long col)booleanisAcceptable(Structure2D supplier)booleanisEmpty()2D data structures are either square, tall, fat or empty.booleanisFat()2D data structures are either square, tall, fat or empty.booleanisScalar()booleanisSquare()2D data structures are either square, tall, fat or empty.booleanisTall()2D data structures are either square, tall, fat or empty.booleanisVector()longlongValue(long row, long col)voidmodifyAll(UnaryFunction<java.lang.Double> modifier)voidmodifyAny(Transformation2D<java.lang.Double> modifier)voidmodifyColumn(long row, long col, UnaryFunction<java.lang.Double> modifier)voidmodifyColumn(long col, UnaryFunction<java.lang.Double> modifier)voidmodifyDiagonal(long row, long col, UnaryFunction<java.lang.Double> modifier)voidmodifyDiagonal(UnaryFunction<java.lang.Double> modifier)voidmodifyMatching(BinaryFunction<java.lang.Double> function, Access1D<java.lang.Double> right)voidmodifyMatching(Access1D<java.lang.Double> left, BinaryFunction<java.lang.Double> function)voidmodifyMatchingInColumns(BinaryFunction<java.lang.Double> function, Access1D<java.lang.Double> right)Same asMutate2D.Modifiable.modifyMatchingInColumns(Access1D, BinaryFunction)but with the arguments to the modifier function swapped.voidmodifyMatchingInColumns(Access1D<java.lang.Double> left, BinaryFunction<java.lang.Double> function)"Matching In Columns" refers to that the supplied, left, data structure will be treated as a column, matching the columns of this structure.voidmodifyMatchingInRows(BinaryFunction<java.lang.Double> function, Access1D<java.lang.Double> right)Same asMutate2D.Modifiable.modifyMatchingInRows(Access1D, BinaryFunction)but with the arguments to the modifier function swapped.voidmodifyMatchingInRows(Access1D<java.lang.Double> left, BinaryFunction<java.lang.Double> function)Same asMutate2D.Modifiable.modifyMatchingInColumns(Access1D, BinaryFunction)but now the supplied left data structure is treated as a row.voidmodifyOne(long row, long col, UnaryFunction<java.lang.Double> modifier)voidmodifyRow(long row, long col, UnaryFunction<java.lang.Double> modifier)voidmodifyRow(long row, UnaryFunction<java.lang.Double> modifier)MatrixStore<java.lang.Double>multiply(MatrixStore<java.lang.Double> right)java.lang.DoublemultiplyBoth(Access1D<java.lang.Double> leftAndRight)Assumes [leftAndRight] is a vector and will calulate [leftAndRight]H[this][leftAndRight]PhysicalStore.Factory<java.lang.Double,?>physical()voidreduceColumns(Aggregator aggregator, Mutate1D receiver)voidreduceRows(Aggregator aggregator, Mutate1D receiver)TransformableRegion<java.lang.Double>regionByColumns(int... columns)TransformableRegion<java.lang.Double>regionByLimits(int rowLimit, int columnLimit)TransformableRegion<java.lang.Double>regionByOffsets(int rowOffset, int columnOffset)TransformableRegion<java.lang.Double>regionByRows(int... rows)TransformableRegion<java.lang.Double>regionByTransposing()Access2D.RowView<java.lang.Double>rows()voidset(int row, int col, double value)voidset(long row, long col, java.lang.Comparable<?> value)shortshortValue(long row, long col)Array1D<java.lang.Double>sliceColumn(long col)Array1D<java.lang.Double>sliceColumn(long row, long col)Access1D<java.lang.Double>sliceDiagonal()Array1D<java.lang.Double>sliceDiagonal(long row, long col)Array1D<java.lang.Double>sliceRow(long row)Array1D<java.lang.Double>sliceRow(long row, long col)voidsubstituteBackwards(Access2D<java.lang.Double> body, boolean unitDiagonal, boolean conjugated, boolean hermitian)Will solve the equation system [A][X]=[B] where: [body][this]=[this] is [A][X]=[B] ("this" is the right hand side, and it will be overwritten with the solution). [A] is upper/right triangularvoidsubstituteForwards(Access2D<java.lang.Double> body, boolean unitDiagonal, boolean conjugated, boolean identity)Will solve the equation system [A][X]=[B] where: [body][this]=[this] is [A][X]=[B] ("this" is the right hand side, and it will be overwritten with the solution). [A] is lower/left triangulardouble[]toRawCopy1D()double[][]toRawCopy2D()PrimitiveScalartoScalar(int row, int col)Extracts one element of this matrix as a Scalar.java.lang.StringtoString()voidtransformLeft(Householder<java.lang.Double> transformation, int firstColumn)voidtransformLeft(Rotation<java.lang.Double> transformation)As inMatrixStore.premultiply(Access1D)where the left/parameter matrix is a plane rotation.voidtransformRight(Householder<java.lang.Double> transformation, int firstRow)voidtransformRight(Rotation<java.lang.Double> transformation)As inMatrixStore.multiply(MatrixStore)where the right/parameter matrix is a plane rotation.voidvisitColumn(long row, long col, VoidFunction<java.lang.Double> visitor)voidvisitColumn(long col, VoidFunction<java.lang.Double> visitor)voidvisitDiagonal(long row, long col, VoidFunction<java.lang.Double> visitor)voidvisitDiagonal(VoidFunction<java.lang.Double> visitor)voidvisitOne(long row, long col, VoidFunction<java.lang.Double> visitor)voidvisitRow(long row, long col, VoidFunction<java.lang.Double> visitor)voidvisitRow(long row, VoidFunction<java.lang.Double> visitor)static R032Storewrap(float... data)static R032Storewrap(float[] data, int structure)-
Methods inherited from class org.ojalgo.array.ArrayR032
add, add, add, axpy, byteValue, copyOfData, doubleValue, exchange, fill, fill, fillMatching, fillOne, fillOne, fillOne, floatValue, get, indexOfLargest, intValue, isAbsolute, isSmall, make, modify, modify, modify, modifyOne, reset, searchAscending, set, set, set, set, shortValue, sortAscending, sortDescending, supplyTo, visit, visitOne
-
Methods inherited from class org.ojalgo.array.PrimitiveArray
wrap
-
Methods inherited from class org.ojalgo.array.PlainArray
add, add, add, add, add, add, add, add, add, add, add, byteValue, count, doubleValue, exchange, fill, fill, fillAll, fillAll, fillRange, fillRange, floatValue, get, indexOfLargest, intValue, longValue, longValue, modify, modify, modify, modifyOne, set, set, set, set, set, set, set, set, set, set, shortValue, size, visit, visitOne
-
Methods inherited from class org.ojalgo.array.BasicArray
getMathType, indexOfLargest, isPrimitive, modifyRange, visitAll, visitRange, wrapInArray1D, wrapInArray2D, wrapInArrayAnyD
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ojalgo.structure.Access1D
asCollectable1D, asKeyed1D, axpy, select, supplyTo, toList
-
Methods inherited from interface org.ojalgo.structure.Access1D.Collectable
collect
-
Methods inherited from interface org.ojalgo.structure.Access1D.Visitable
visitAll, visitRange
-
Methods inherited from interface org.ojalgo.structure.Access2D
asKeyed2D, byteValue, byteValue, byteValue, doubleValue, doubleValue, doubleValue, floatValue, floatValue, floatValue, get, intValue, intValue, intValue, longValue, longValue, longValue, nonzeros, shortValue, shortValue, shortValue
-
Methods inherited from interface org.ojalgo.structure.Access2D.Collectable
collect
-
Methods inherited from interface org.ojalgo.structure.Access2D.Visitable
visitOne
-
Methods inherited from interface org.ojalgo.matrix.store.ElementsSupplier
onAny, onColumns, onColumns, onMatching, onMatching, onRows, onRows
-
Methods inherited from interface org.ojalgo.matrix.store.MatrixStore
above, above, above, add, add, add, aggregateAll, below, below, below, bidiagonal, column, column, columns, columns, copy, diagonal, diagonally, divide, divide, equals, get, get, hermitian, hessenberg, indexOfLargest, isHermitian, isNormal, isSmall, isSmall, left, left, left, limits, logical, multiply, multiply, multiply, negate, norm, offsets, onAll, operate, power, premultiply, reduceColumns, reduceRows, repeat, right, right, right, row, row, rows, rows, select, select, signum, sliceRange, subtract, subtract, subtract, superimpose, superimpose, supplyTo, symmetric, transpose, triangular, tridiagonal
-
Methods inherited from interface org.ojalgo.structure.Mutate1D.Fillable
fillAll, fillAll, fillCompatible, fillMatching, fillRange, fillRange
-
Methods inherited from interface org.ojalgo.structure.Mutate1D.Modifiable
modifyRange
-
Methods inherited from interface org.ojalgo.structure.Mutate2D
set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set
-
Methods inherited from interface org.ojalgo.structure.Mutate2D.Modifiable
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, modifyOne
-
Methods inherited from interface org.ojalgo.structure.Mutate2D.ModifiableReceiver
modifyCompatible, modifyCompatible
-
Methods inherited from interface org.ojalgo.structure.Operate2D
onAll, onAll, onAll, onAll, onAll, onCompatible, onCompatible
-
Methods inherited from interface org.ojalgo.matrix.store.PhysicalStore
indexOfLargestInColumn, indexOfLargestInRow, indexOfLargestOnDiagonal, supplyTo
-
Methods inherited from interface org.ojalgo.algebra.ScalarOperation.Addition
add
-
Methods inherited from interface org.ojalgo.algebra.ScalarOperation.Division
divide
-
Methods inherited from interface org.ojalgo.algebra.ScalarOperation.Multiplication
multiply
-
Methods inherited from interface org.ojalgo.algebra.ScalarOperation.Subtraction
subtract
-
Methods inherited from interface org.ojalgo.structure.Structure2D
count, firstInColumn, firstInRow, limitOfColumn, limitOfRow, size
-
Methods inherited from interface org.ojalgo.matrix.store.TransformableRegion
synchronised
-
-
-
-
Field Detail
-
FACTORY
public static final PrimitiveFactory<R032Store> FACTORY
-
multiplyBoth
private final MultiplyBoth.Primitive multiplyBoth
-
multiplyLeft
private final MultiplyLeft.Primitive32 multiplyLeft
-
multiplyNeither
private final MultiplyNeither.Primitive32 multiplyNeither
-
multiplyRight
private final MultiplyRight.Primitive32 multiplyRight
-
myColDim
private final int myColDim
-
myRowDim
private final int myRowDim
-
myUtility
private final Array2D<java.lang.Double> myUtility
-
myWorkerColumn
private transient float[] myWorkerColumn
-
-
Method Detail
-
wrap
public static R032Store wrap(float... data)
-
wrap
public static R032Store wrap(float[] data, int structure)
-
cast
static Householder.Primitive32 cast(Householder<java.lang.Double> transformation)
-
cast
static Rotation.Primitive cast(Rotation<java.lang.Double> transformation)
-
accept
public void accept(Access2D<?> supplied)
- Specified by:
acceptin interfacejava.util.function.Consumer<Access2D<?>>- Specified by:
acceptin interfaceMutate2D.Receiver<java.lang.Double>
-
add
public void add(long row, long col, java.lang.Comparable<?> addend)- Specified by:
addin interfaceMutate2D.Modifiable<java.lang.Double>
-
add
public void add(long row, long col, double addend)- Specified by:
addin interfaceMutate2D.Modifiable<java.lang.Double>
-
aggregateColumn
public java.lang.Double aggregateColumn(long col, Aggregator aggregator)- Specified by:
aggregateColumnin interfaceAccess2D.Aggregatable<java.lang.Double>
-
aggregateColumn
public java.lang.Double aggregateColumn(long row, long col, Aggregator aggregator)- Specified by:
aggregateColumnin interfaceAccess2D.Aggregatable<java.lang.Double>- Specified by:
aggregateColumnin interfaceMatrixStore<java.lang.Double>
-
aggregateDiagonal
public java.lang.Double aggregateDiagonal(Aggregator aggregator)
- Specified by:
aggregateDiagonalin interfaceAccess2D.Aggregatable<java.lang.Double>
-
aggregateDiagonal
public java.lang.Double aggregateDiagonal(long row, long col, Aggregator aggregator)- Specified by:
aggregateDiagonalin interfaceAccess2D.Aggregatable<java.lang.Double>- Specified by:
aggregateDiagonalin interfaceMatrixStore<java.lang.Double>
-
aggregateRange
public java.lang.Double aggregateRange(long first, long limit, Aggregator aggregator)- Specified by:
aggregateRangein interfaceAccess1D.Aggregatable<java.lang.Double>- Specified by:
aggregateRangein interfaceMatrixStore<java.lang.Double>- Overrides:
aggregateRangein classBasicArray<java.lang.Double>
-
aggregateRow
public java.lang.Double aggregateRow(long row, Aggregator aggregator)- Specified by:
aggregateRowin interfaceAccess2D.Aggregatable<java.lang.Double>
-
aggregateRow
public java.lang.Double aggregateRow(long row, long col, Aggregator aggregator)- Specified by:
aggregateRowin interfaceAccess2D.Aggregatable<java.lang.Double>- Specified by:
aggregateRowin interfaceMatrixStore<java.lang.Double>
-
asCollectable2D
public <NN extends java.lang.Comparable<NN>,R extends Mutate2D.Receiver<NN>> Access2D.Collectable<NN,R> asCollectable2D()
- Specified by:
asCollectable2Din interfaceAccess2D<java.lang.Double>
-
asList
public Array1D<java.lang.Double> asList()
Description copied from interface:Access1DAn (immutable)Listdelegating to thisAccess1D.- Specified by:
asListin interfaceAccess1D<java.lang.Double>- Specified by:
asListin interfacePhysicalStore<java.lang.Double>- Returns:
- The elements of the physical store as a fixed size (1 dimensional) list. The elements may be accessed either row or colomn major.
- See Also:
Access1D.toList()
-
build
public R032Store build()
- Specified by:
buildin interfaceFactory1D.Builder<DenseArray<java.lang.Double>>- Specified by:
buildin interfaceFactory2D.Builder<R032Store>- Overrides:
buildin classDenseArray<java.lang.Double>
-
byteValue
public byte byteValue(long row, long col)
-
columns
public Access2D.ColumnView<java.lang.Double> columns()
-
conjugate
public MatrixStore<java.lang.Double> conjugate()
Description copied from interface:MatrixStoreReturns the conjugate transpose of this matrix. The conjugate transpose is also known as adjoint matrix, adjugate matrix, hermitian adjoint or hermitian transpose. (The conjugate matrix is the complex conjugate of each element. This NOT what is returned here!)- Specified by:
conjugatein interfaceMatrixStore<java.lang.Double>- Specified by:
conjugatein interfaceStructure2D.Logical<Access2D<java.lang.Double>,MatrixStore<java.lang.Double>>- Specified by:
conjugatein interfaceVectorSpace<MatrixStore<java.lang.Double>,java.lang.Double>- See Also:
VectorSpace.conjugate()
-
countColumns
public long countColumns()
Description copied from interface:Structure2DOnly need to implement if the structure may contain more than Integer.MAX_VALUE elements.- Specified by:
countColumnsin interfaceStructure2D- Returns:
- The number of columns
-
countRows
public long countRows()
Description copied from interface:Structure2DOnly need to implement if the structure may contain more than Integer.MAX_VALUE elements.- Specified by:
countRowsin interfaceStructure2D- Returns:
- The number of rows
-
dot
public double dot(Access1D<?> vector)
Description copied from interface:Access1DWill calculate and return the dot product of this 1D-structure and another input 1D-vector.
-
doubleValue
public double doubleValue(int row, int col)Description copied from interface:Access2DExtracts one element of this matrix as a double.- Specified by:
doubleValuein interfaceAccess2D<java.lang.Double>- Specified by:
doubleValuein interfaceMatrixStore<java.lang.Double>- Parameters:
row- A row index.col- A column index.- Returns:
- One matrix element
-
elements
public ElementView2D<java.lang.Double,?> elements()
Description copied from interface:Access1DReturns an Iterable of ElementView1D. It allows to iterate over the instance's element "positions" without actually extracting the elements (unless you explicitly do so).
-
exchangeColumns
public void exchangeColumns(long colA, long colB)- Specified by:
exchangeColumnsin interfaceMutate2D.Exchangeable- Specified by:
exchangeColumnsin interfaceTransformableRegion<java.lang.Double>
-
exchangeRows
public void exchangeRows(long rowA, long rowB)- Specified by:
exchangeRowsin interfaceMutate2D.Exchangeable- Specified by:
exchangeRowsin interfaceTransformableRegion<java.lang.Double>
-
fillByMultiplying
public void fillByMultiplying(Access1D<java.lang.Double> left, Access1D<java.lang.Double> right)
- Specified by:
fillByMultiplyingin interfaceTransformableRegion<java.lang.Double>
-
fillColumn
public void fillColumn(long col, Access1D<java.lang.Double> values)- Specified by:
fillColumnin interfaceMutate2D.Fillable<java.lang.Double>
-
fillColumn
public void fillColumn(long col, java.lang.Double value)- Specified by:
fillColumnin interfaceMutate2D.Fillable<java.lang.Double>
-
fillColumn
public void fillColumn(long row, long col, Access1D<java.lang.Double> values)- Specified by:
fillColumnin interfaceMutate2D.Fillable<java.lang.Double>
-
fillColumn
public void fillColumn(long row, long col, java.lang.Double value)- Specified by:
fillColumnin interfaceMutate2D.Fillable<java.lang.Double>
-
fillColumn
public void fillColumn(long row, long col, NullaryFunction<?> supplier)- Specified by:
fillColumnin interfaceMutate2D.Fillable<java.lang.Double>
-
fillColumn
public void fillColumn(long col, NullaryFunction<?> supplier)- Specified by:
fillColumnin interfaceMutate2D.Fillable<java.lang.Double>
-
fillCompatible
public void fillCompatible(Access2D<java.lang.Double> left, BinaryFunction<java.lang.Double> operator, Access2D<java.lang.Double> right)
Description copied from interface:Mutate2D.Fillable'this' needs to be of a size compatible with the 'left' and 'right' matrices. No checks are performed. The term "compatible" refers to MATLAB's rules for "array broadcasting". The result will be the same as if the 'left' and 'right' matrices where expanded (repeated) so that all three where of the same size, and then the operation was performed. The actual implementation may be more efficient than that.- Specified by:
fillCompatiblein interfaceMutate2D.Fillable<java.lang.Double>
-
fillDiagonal
public void fillDiagonal(Access1D<java.lang.Double> values)
- Specified by:
fillDiagonalin interfaceMutate2D.Fillable<java.lang.Double>
-
fillDiagonal
public void fillDiagonal(java.lang.Double value)
- Specified by:
fillDiagonalin interfaceMutate2D.Fillable<java.lang.Double>
-
fillDiagonal
public void fillDiagonal(long row, long col, Access1D<java.lang.Double> values)- Specified by:
fillDiagonalin interfaceMutate2D.Fillable<java.lang.Double>
-
fillDiagonal
public void fillDiagonal(long row, long col, java.lang.Double value)- Specified by:
fillDiagonalin interfaceMutate2D.Fillable<java.lang.Double>
-
fillDiagonal
public void fillDiagonal(long row, long col, NullaryFunction<?> supplier)- Specified by:
fillDiagonalin interfaceMutate2D.Fillable<java.lang.Double>
-
fillDiagonal
public void fillDiagonal(NullaryFunction<?> supplier)
- Specified by:
fillDiagonalin interfaceMutate2D.Fillable<java.lang.Double>
-
fillMatching
public void fillMatching(Access1D<java.lang.Double> left, BinaryFunction<java.lang.Double> function, Access1D<java.lang.Double> right)
- Specified by:
fillMatchingin interfaceMutate1D.Fillable<java.lang.Double>- Overrides:
fillMatchingin classArrayR032
-
fillMatching
public void fillMatching(UnaryFunction<java.lang.Double> function, Access1D<java.lang.Double> arguments)
- Specified by:
fillMatchingin interfaceMutate1D.Fillable<java.lang.Double>- Overrides:
fillMatchingin classArrayR032
-
fillRow
public void fillRow(long row, Access1D<java.lang.Double> values)- Specified by:
fillRowin interfaceMutate2D.Fillable<java.lang.Double>
-
fillRow
public void fillRow(long row, java.lang.Double value)- Specified by:
fillRowin interfaceMutate2D.Fillable<java.lang.Double>
-
fillRow
public void fillRow(long row, long col, Access1D<java.lang.Double> values)- Specified by:
fillRowin interfaceMutate2D.Fillable<java.lang.Double>
-
fillRow
public void fillRow(long row, long col, java.lang.Double value)- Specified by:
fillRowin interfaceMutate2D.Fillable<java.lang.Double>
-
fillRow
public void fillRow(long row, long col, NullaryFunction<?> supplier)- Specified by:
fillRowin interfaceMutate2D.Fillable<java.lang.Double>
-
fillRow
public void fillRow(long row, NullaryFunction<?> supplier)- Specified by:
fillRowin interfaceMutate2D.Fillable<java.lang.Double>
-
floatValue
public float floatValue(long row, long col)- Specified by:
floatValuein interfaceAccess2D<java.lang.Double>
-
get
public java.lang.Double get(int row, int col)- Specified by:
getin interfaceMatrixStore<java.lang.Double>
-
getColDim
public int getColDim()
- Specified by:
getColDimin interfaceStructure2D- Returns:
- The number of columns
-
getMaxDim
public int getMaxDim()
- Specified by:
getMaxDimin interfaceStructure2D
-
getMinDim
public int getMinDim()
- Specified by:
getMinDimin interfaceStructure2D
-
getRowDim
public int getRowDim()
- Specified by:
getRowDimin interfaceStructure2D- Returns:
- The number of rows
-
intValue
public int intValue(long row, long col)
-
isAcceptable
public boolean isAcceptable(Structure2D supplier)
- Specified by:
isAcceptablein interfaceMutate2D.Receiver<java.lang.Double>
-
isEmpty
public boolean isEmpty()
Description copied from interface:Structure2D2D data structures are either square, tall, fat or empty.m <= 0 or n <= 0
Historically some ojAlgo data structures did allow to create "empty" instances. Currently this is not encouraged, but still possible in some instances.- Specified by:
isEmptyin interfaceStructure2D- Returns:
- true if matrix is empty
-
isFat
public boolean isFat()
Description copied from interface:Structure2D2D data structures are either square, tall, fat or empty.1 <= m < n
- Specified by:
isFatin interfaceStructure2D- Returns:
- true if matrix is fat
-
isScalar
public boolean isScalar()
- Specified by:
isScalarin interfaceStructure2D- Returns:
- true if both the row and column dimensions are equal to 1.
-
isSquare
public boolean isSquare()
Description copied from interface:Structure2D2D data structures are either square, tall, fat or empty.m = n <> 0
- Specified by:
isSquarein interfaceStructure2D- Returns:
- true if matrix is square
-
isTall
public boolean isTall()
Description copied from interface:Structure2D2D data structures are either square, tall, fat or empty.m < n >= 1
- Specified by:
isTallin interfaceStructure2D- Returns:
- true if matrix is tall
-
isVector
public boolean isVector()
- Specified by:
isVectorin interfaceStructure2D- Returns:
- true if either the row or column dimensions are equal to 1.
-
longValue
public long longValue(long row, long col)
-
modifyAll
public void modifyAll(UnaryFunction<java.lang.Double> modifier)
- Specified by:
modifyAllin interfaceMutate1D.Modifiable<java.lang.Double>- Overrides:
modifyAllin classBasicArray<java.lang.Double>
-
modifyAny
public void modifyAny(Transformation2D<java.lang.Double> modifier)
- Specified by:
modifyAnyin interfaceMutate2D.ModifiableReceiver<java.lang.Double>- Specified by:
modifyAnyin interfacePhysicalStore<java.lang.Double>- Specified by:
modifyAnyin interfaceTransformableRegion<java.lang.Double>
-
modifyColumn
public void modifyColumn(long row, long col, UnaryFunction<java.lang.Double> modifier)- Specified by:
modifyColumnin interfaceMutate2D.Modifiable<java.lang.Double>
-
modifyColumn
public void modifyColumn(long col, UnaryFunction<java.lang.Double> modifier)- Specified by:
modifyColumnin interfaceMutate2D.Modifiable<java.lang.Double>
-
modifyDiagonal
public void modifyDiagonal(long row, long col, UnaryFunction<java.lang.Double> modifier)- Specified by:
modifyDiagonalin interfaceMutate2D.Modifiable<java.lang.Double>
-
modifyDiagonal
public void modifyDiagonal(UnaryFunction<java.lang.Double> modifier)
- Specified by:
modifyDiagonalin interfaceMutate2D.Modifiable<java.lang.Double>
-
modifyMatching
public void modifyMatching(Access1D<java.lang.Double> left, BinaryFunction<java.lang.Double> function)
- Specified by:
modifyMatchingin interfaceMutate1D.Modifiable<java.lang.Double>- Overrides:
modifyMatchingin classBasicArray<java.lang.Double>
-
modifyMatching
public void modifyMatching(BinaryFunction<java.lang.Double> function, Access1D<java.lang.Double> right)
- Specified by:
modifyMatchingin interfaceMutate1D.Modifiable<java.lang.Double>- Overrides:
modifyMatchingin classBasicArray<java.lang.Double>
-
modifyMatchingInColumns
public void modifyMatchingInColumns(Access1D<java.lang.Double> left, BinaryFunction<java.lang.Double> function)
Description copied from interface:Mutate2D.Modifiable"Matching In Columns" refers to that the supplied, left, data structure will be treated as a column, matching the columns of this structure. Matching columns have the same number of rows.This method will modify all elements of this structure by applying the modifier function to each of them. The left/first argument to the modifier function is taken from the supplied data structure, and the row-index determines which element.
- Specified by:
modifyMatchingInColumnsin interfaceMutate2D.Modifiable<java.lang.Double>
-
modifyMatchingInColumns
public void modifyMatchingInColumns(BinaryFunction<java.lang.Double> function, Access1D<java.lang.Double> right)
Description copied from interface:Mutate2D.ModifiableSame asMutate2D.Modifiable.modifyMatchingInColumns(Access1D, BinaryFunction)but with the arguments to the modifier function swapped.- Specified by:
modifyMatchingInColumnsin interfaceMutate2D.Modifiable<java.lang.Double>
-
modifyMatchingInRows
public void modifyMatchingInRows(Access1D<java.lang.Double> left, BinaryFunction<java.lang.Double> function)
Description copied from interface:Mutate2D.ModifiableSame asMutate2D.Modifiable.modifyMatchingInColumns(Access1D, BinaryFunction)but now the supplied left data structure is treated as a row. (Matching rows have the same number of columns.)- Specified by:
modifyMatchingInRowsin interfaceMutate2D.Modifiable<java.lang.Double>
-
modifyMatchingInRows
public void modifyMatchingInRows(BinaryFunction<java.lang.Double> function, Access1D<java.lang.Double> right)
Description copied from interface:Mutate2D.ModifiableSame asMutate2D.Modifiable.modifyMatchingInRows(Access1D, BinaryFunction)but with the arguments to the modifier function swapped.- Specified by:
modifyMatchingInRowsin interfaceMutate2D.Modifiable<java.lang.Double>
-
modifyOne
public void modifyOne(long row, long col, UnaryFunction<java.lang.Double> modifier)- Specified by:
modifyOnein interfaceMutate2D.Modifiable<java.lang.Double>
-
modifyRow
public void modifyRow(long row, long col, UnaryFunction<java.lang.Double> modifier)- Specified by:
modifyRowin interfaceMutate2D.Modifiable<java.lang.Double>
-
modifyRow
public void modifyRow(long row, UnaryFunction<java.lang.Double> modifier)- Specified by:
modifyRowin interfaceMutate2D.Modifiable<java.lang.Double>
-
multiply
public MatrixStore<java.lang.Double> multiply(MatrixStore<java.lang.Double> right)
- Specified by:
multiplyin interfaceMatrixStore<java.lang.Double>- Specified by:
multiplyin interfaceOperation.Multiplication<MatrixStore<java.lang.Double>>- Parameters:
right- The multiplicand- Returns:
this * multiplicand.
-
multiplyBoth
public java.lang.Double multiplyBoth(Access1D<java.lang.Double> leftAndRight)
Description copied from interface:MatrixStoreAssumes [leftAndRight] is a vector and will calulate [leftAndRight]H[this][leftAndRight]- Specified by:
multiplyBothin interfaceMatrixStore<java.lang.Double>- Parameters:
leftAndRight- The argument vector- Returns:
- A scalar (extracted from the resulting 1 x 1 matrix)
-
physical
public PhysicalStore.Factory<java.lang.Double,?> physical()
- Specified by:
physicalin interfaceMatrixStore<java.lang.Double>
-
reduceColumns
public void reduceColumns(Aggregator aggregator, Mutate1D receiver)
- Specified by:
reduceColumnsin interfaceAccess2D.Aggregatable<java.lang.Double>
-
reduceRows
public void reduceRows(Aggregator aggregator, Mutate1D receiver)
- Specified by:
reduceRowsin interfaceAccess2D.Aggregatable<java.lang.Double>
-
regionByColumns
public TransformableRegion<java.lang.Double> regionByColumns(int... columns)
- Specified by:
regionByColumnsin interfaceTransformableRegion<java.lang.Double>- Returns:
- A consumer (sub)region
-
regionByLimits
public TransformableRegion<java.lang.Double> regionByLimits(int rowLimit, int columnLimit)
- Specified by:
regionByLimitsin interfaceTransformableRegion<java.lang.Double>- Returns:
- A consumer (sub)region
-
regionByOffsets
public TransformableRegion<java.lang.Double> regionByOffsets(int rowOffset, int columnOffset)
- Specified by:
regionByOffsetsin interfaceTransformableRegion<java.lang.Double>- Returns:
- A consumer (sub)region
-
regionByRows
public TransformableRegion<java.lang.Double> regionByRows(int... rows)
- Specified by:
regionByRowsin interfaceTransformableRegion<java.lang.Double>- Returns:
- A consumer (sub)region
-
regionByTransposing
public TransformableRegion<java.lang.Double> regionByTransposing()
- Specified by:
regionByTransposingin interfaceTransformableRegion<java.lang.Double>- Returns:
- A transposed consumer region
-
rows
public Access2D.RowView<java.lang.Double> rows()
-
set
public void set(long row, long col, java.lang.Comparable<?> value)
-
shortValue
public short shortValue(long row, long col)- Specified by:
shortValuein interfaceAccess2D<java.lang.Double>
-
sliceColumn
public Array1D<java.lang.Double> sliceColumn(long col)
- Specified by:
sliceColumnin interfaceAccess2D.Sliceable<java.lang.Double>
-
sliceColumn
public Array1D<java.lang.Double> sliceColumn(long row, long col)
- Specified by:
sliceColumnin interfaceAccess2D.Sliceable<java.lang.Double>- Specified by:
sliceColumnin interfaceMatrixStore<java.lang.Double>
-
sliceDiagonal
public Access1D<java.lang.Double> sliceDiagonal()
- Specified by:
sliceDiagonalin interfaceAccess2D.Sliceable<java.lang.Double>
-
sliceDiagonal
public Array1D<java.lang.Double> sliceDiagonal(long row, long col)
- Specified by:
sliceDiagonalin interfaceAccess2D.Sliceable<java.lang.Double>- Specified by:
sliceDiagonalin interfaceMatrixStore<java.lang.Double>
-
sliceRow
public Array1D<java.lang.Double> sliceRow(long row)
- Specified by:
sliceRowin interfaceAccess2D.Sliceable<java.lang.Double>
-
sliceRow
public Array1D<java.lang.Double> sliceRow(long row, long col)
- Specified by:
sliceRowin interfaceAccess2D.Sliceable<java.lang.Double>- Specified by:
sliceRowin interfaceMatrixStore<java.lang.Double>
-
substituteBackwards
public void substituteBackwards(Access2D<java.lang.Double> body, boolean unitDiagonal, boolean conjugated, boolean hermitian)
Description copied from interface:PhysicalStoreWill solve the equation system [A][X]=[B] where:- [body][this]=[this] is [A][X]=[B] ("this" is the right hand side, and it will be overwritten with the solution).
- [A] is upper/right triangular
- Specified by:
substituteBackwardsin interfacePhysicalStore<java.lang.Double>- See Also:
SubstituteBackwards.invoke(double[], int, int, int, Access2D, boolean, boolean, boolean)
-
substituteForwards
public void substituteForwards(Access2D<java.lang.Double> body, boolean unitDiagonal, boolean conjugated, boolean identity)
Description copied from interface:PhysicalStoreWill solve the equation system [A][X]=[B] where:- [body][this]=[this] is [A][X]=[B] ("this" is the right hand side, and it will be overwritten with the solution).
- [A] is lower/left triangular
- Specified by:
substituteForwardsin interfacePhysicalStore<java.lang.Double>- See Also:
SubstituteForwards.invoke(double[], int, int, int, Access2D, boolean, boolean, boolean)
-
toRawCopy1D
public double[] toRawCopy1D()
- Specified by:
toRawCopy1Din interfaceAccess1D<java.lang.Double>
-
toRawCopy2D
public double[][] toRawCopy2D()
- Specified by:
toRawCopy2Din interfaceAccess2D<java.lang.Double>
-
toScalar
public PrimitiveScalar toScalar(int row, int col)
Description copied from interface:Matrix2DExtracts one element of this matrix as a Scalar.- Specified by:
toScalarin interfaceMatrix2D<java.lang.Double,MatrixStore<java.lang.Double>>- Specified by:
toScalarin interfaceMatrixStore<java.lang.Double>- Parameters:
row- A row index.col- A column index.- Returns:
- One matrix element as a Scalar.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classBasicArray<java.lang.Double>
-
transformLeft
public void transformLeft(Householder<java.lang.Double> transformation, int firstColumn)
- Specified by:
transformLeftin interfacePhysicalStore<java.lang.Double>
-
transformLeft
public void transformLeft(Rotation<java.lang.Double> transformation)
Description copied from interface:PhysicalStoreAs in
MatrixStore.premultiply(Access1D)where the left/parameter matrix is a plane rotation.Multiplying by a plane rotation from the left means that [this] gets two of its rows updated to new combinations of those two (current) rows.
There are two ways to transpose/invert a rotation. Either you negate the angle or you interchange the two indeces that define the rotation plane.
- Specified by:
transformLeftin interfacePhysicalStore<java.lang.Double>- See Also:
PhysicalStore.transformRight(Rotation)
-
transformRight
public void transformRight(Householder<java.lang.Double> transformation, int firstRow)
- Specified by:
transformRightin interfacePhysicalStore<java.lang.Double>
-
transformRight
public void transformRight(Rotation<java.lang.Double> transformation)
Description copied from interface:PhysicalStoreAs in
MatrixStore.multiply(MatrixStore)where the right/parameter matrix is a plane rotation.Multiplying by a plane rotation from the right means that [this] gets two of its columns updated to new combinations of those two (current) columns.
There result is undefined if the two input indeces are the same (in which case the rotation plane is undefined).
- Specified by:
transformRightin interfacePhysicalStore<java.lang.Double>- See Also:
PhysicalStore.transformLeft(Rotation)
-
visitColumn
public void visitColumn(long row, long col, VoidFunction<java.lang.Double> visitor)- Specified by:
visitColumnin interfaceAccess2D.Visitable<java.lang.Double>
-
visitColumn
public void visitColumn(long col, VoidFunction<java.lang.Double> visitor)- Specified by:
visitColumnin interfaceAccess2D.Visitable<java.lang.Double>
-
visitDiagonal
public void visitDiagonal(long row, long col, VoidFunction<java.lang.Double> visitor)- Specified by:
visitDiagonalin interfaceAccess2D.Visitable<java.lang.Double>
-
visitDiagonal
public void visitDiagonal(VoidFunction<java.lang.Double> visitor)
- Specified by:
visitDiagonalin interfaceAccess2D.Visitable<java.lang.Double>
-
visitOne
public void visitOne(long row, long col, VoidFunction<java.lang.Double> visitor)- Specified by:
visitOnein interfaceAccess2D.Visitable<java.lang.Double>- Specified by:
visitOnein interfaceMatrixStore<java.lang.Double>
-
visitRow
public void visitRow(long row, long col, VoidFunction<java.lang.Double> visitor)- Specified by:
visitRowin interfaceAccess2D.Visitable<java.lang.Double>
-
visitRow
public void visitRow(long row, VoidFunction<java.lang.Double> visitor)- Specified by:
visitRowin interfaceAccess2D.Visitable<java.lang.Double>
-
getWorkerColumn
private float[] getWorkerColumn()
-
-