Class R032Store
- All Implemented Interfaces:
Consumer<Access2D<?>>
,RandomAccess
,Group
,Group.Additive<MatrixStore<Double>>
,NormedVectorSpace<MatrixStore<Double>,
,Double> Operation
,Operation.Addition<MatrixStore<Double>>
,Operation.Multiplication<MatrixStore<Double>>
,Operation.Subtraction<MatrixStore<Double>>
,ScalarOperation
,ScalarOperation.Addition<MatrixStore<Double>,
,Double> ScalarOperation.Division<MatrixStore<Double>,
,Double> ScalarOperation.Multiplication<MatrixStore<Double>,
,Double> ScalarOperation.Subtraction<MatrixStore<Double>,
,Double> VectorSpace<MatrixStore<Double>,
,Double> Matrix2D<Double,
,MatrixStore<Double>> ElementsSupplier<Double>
,MatrixStore<Double>
,PhysicalStore<Double>
,TransformableRegion<Double>
,Access1D<Double>
,Access1D.Aggregatable<Double>
,Access1D.Collectable<Double,
,Mutate1D> Access1D.Sliceable<Double>
,Access1D.Visitable<Double>
,Access2D<Double>
,Access2D.Aggregatable<Double>
,Access2D.Collectable<Double,
,TransformableRegion<Double>> Access2D.Sliceable<Double>
,Access2D.Visitable<Double>
,Factory1D.Builder<DenseArray<Double>>
,Factory2D.Builder<R032Store>
,Mutate1D
,Mutate1D.Fillable<Double>
,Mutate1D.Modifiable<Double>
,Mutate1D.Sortable
,Mutate2D
,Mutate2D.Exchangeable
,Mutate2D.Fillable<Double>
,Mutate2D.Modifiable<Double>
,Mutate2D.ModifiableReceiver<Double>
,Mutate2D.Receiver<Double>
,Operate2D<Double,
,ElementsSupplier<Double>> Structure1D
,Structure2D
,Structure2D.Logical<Access2D<Double>,
,MatrixStore<Double>> Structure2D.ReducibleTo1D<ElementsSupplier<Double>>
invalid reference
float
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ojalgo.array.DenseArray
DenseArray.Factory<N extends Comparable<N>>
Nested classes/interfaces inherited from interface org.ojalgo.structure.Access1D
Access1D.Aggregatable<N extends Comparable<N>>, Access1D.Collectable<N extends Comparable<N>,
R extends Mutate1D>, Access1D.ElementView<N extends Comparable<N>>, Access1D.SelectionView<N extends Comparable<N>>, Access1D.Sliceable<N extends Comparable<N>>, Access1D.Visitable<N extends Comparable<N>> Nested classes/interfaces inherited from interface org.ojalgo.structure.Access2D
Access2D.Aggregatable<N extends Comparable<N>>, Access2D.Collectable<N extends Comparable<N>,
R extends Mutate2D>, Access2D.ColumnView<N extends Comparable<N>>, Access2D.ElementView<N extends Comparable<N>>, Access2D.RowView<N extends Comparable<N>>, Access2D.SelectionView<N extends Comparable<N>>, Access2D.Sliceable<N extends Comparable<N>>, Access2D.Visitable<N extends 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 Comparable<N>>, Mutate1D.Mixable<N extends Comparable<N>>, Mutate1D.Modifiable<N extends Comparable<N>>, Mutate1D.ModifiableReceiver<N extends Comparable<N>>, Mutate1D.Receiver<N extends Comparable<N>>, Mutate1D.Sortable
Nested classes/interfaces inherited from interface org.ojalgo.structure.Mutate2D
Mutate2D.Exchangeable, Mutate2D.Fillable<N extends Comparable<N>>, Mutate2D.Mixable<N extends Comparable<N>>, Mutate2D.Modifiable<N extends Comparable<N>>, Mutate2D.ModifiableReceiver<N extends Comparable<N>>, Mutate2D.Receiver<N extends 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 Comparable<N>,
I extends PhysicalStore<N> & Factory2D.Builder<I>> Nested classes/interfaces inherited from interface org.ojalgo.algebra.ScalarOperation
ScalarOperation.Addition<T,
N extends Comparable<N>>, ScalarOperation.Division<T, N extends Comparable<N>>, ScalarOperation.Multiplication<T, N extends Comparable<N>>, ScalarOperation.Subtraction<T, N extends 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 Comparable<N>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PhysicalStore.Factory
<Double, R032Store> private final MultiplyBoth.Primitive
private final MultiplyLeft.Primitive32
private final MultiplyNeither.Primitive32
private final MultiplyRight.Primitive32
private final int
private final int
private float[]
Fields inherited from class org.ojalgo.array.PlainArray
MAX_SIZE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
add
(long row, long col, double addend) void
add
(long row, long col, Comparable<?> addend) aggregateColumn
(long row, long col, Aggregator aggregator) aggregateColumn
(long col, Aggregator aggregator) aggregateDiagonal
(long row, long col, Aggregator aggregator) aggregateDiagonal
(Aggregator aggregator) aggregateRange
(long first, long limit, Aggregator aggregator) aggregateRow
(long row, long col, Aggregator aggregator) aggregateRow
(long row, Aggregator aggregator) <NN extends Comparable<NN>,
R extends Mutate2D.Receiver<NN>>
Access2D.Collectable<NN, R> asList()
build()
byte
byteValue
(long row, long col) (package private) static Householder.Primitive32
cast
(Householder<Double> transformation) (package private) static Rotation.Primitive
(package private) static R032Store
columns()
Returns the conjugate transpose of this matrix.long
Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.long
Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.double
Will calculate and return the dot product of this 1D-structure and another input 1D-vector.double
doubleValue
(int row, int col) Extracts one element of this matrix as a double.elements()
Returns an Iterable of ElementView1D.boolean
void
exchangeColumns
(long colA, long colB) void
exchangeRows
(long rowA, long rowB) void
fillByMultiplying
(Access1D<Double> left, Access1D<Double> right) void
fillColumn
(long row, long col, Double value) void
fillColumn
(long row, long col, NullaryFunction<?> supplier) void
fillColumn
(long row, long col, Access1D<Double> values) void
fillColumn
(long col, Double value) void
fillColumn
(long col, NullaryFunction<?> supplier) void
fillColumn
(long col, Access1D<Double> values) void
fillCompatible
(Access2D<Double> left, BinaryFunction<Double> operator, Access2D<Double> right) 'this' needs to be of a size compatible with the 'left' and 'right' matrices.void
fillDiagonal
(long row, long col, Double value) void
fillDiagonal
(long row, long col, NullaryFunction<?> supplier) void
fillDiagonal
(long row, long col, Access1D<Double> values) void
fillDiagonal
(Double value) void
fillDiagonal
(NullaryFunction<?> supplier) void
fillDiagonal
(Access1D<Double> values) void
fillMatching
(UnaryFunction<Double> function, Access1D<Double> arguments) void
fillMatching
(Access1D<Double> left, BinaryFunction<Double> function, Access1D<Double> right) void
void
fillRow
(long row, long col, NullaryFunction<?> supplier) void
void
void
fillRow
(long row, NullaryFunction<?> supplier) void
float
floatValue
(long row, long col) get
(int row, int col) int
int
int
int
private float[]
int
hashCode()
int
intValue
(long row, long col) boolean
isAcceptable
(Structure2D supplier) boolean
isEmpty()
2D data structures are either square, tall, fat or empty.boolean
isFat()
2D data structures are either square, tall, fat or empty.boolean
isScalar()
boolean
isSquare()
2D data structures are either square, tall, fat or empty.boolean
isTall()
2D data structures are either square, tall, fat or empty.boolean
isVector()
long
longValue
(long row, long col) void
modifyAll
(UnaryFunction<Double> modifier) void
modifyAny
(Transformation2D<Double> modifier) void
modifyColumn
(long row, long col, UnaryFunction<Double> modifier) void
modifyColumn
(long col, UnaryFunction<Double> modifier) void
modifyDiagonal
(long row, long col, UnaryFunction<Double> modifier) void
modifyDiagonal
(UnaryFunction<Double> modifier) void
modifyMatching
(BinaryFunction<Double> function, Access1D<Double> right) void
modifyMatching
(Access1D<Double> left, BinaryFunction<Double> function) void
modifyMatchingInColumns
(BinaryFunction<Double> function, Access1D<Double> right) Same asMutate2D.Modifiable.modifyMatchingInColumns(Access1D, BinaryFunction)
but with the arguments to the modifier function swapped.void
modifyMatchingInColumns
(Access1D<Double> left, BinaryFunction<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.void
modifyMatchingInRows
(BinaryFunction<Double> function, Access1D<Double> right) Same asMutate2D.Modifiable.modifyMatchingInRows(Access1D, BinaryFunction)
but with the arguments to the modifier function swapped.void
modifyMatchingInRows
(Access1D<Double> left, BinaryFunction<Double> function) Same asMutate2D.Modifiable.modifyMatchingInColumns(Access1D, BinaryFunction)
but now the supplied left data structure is treated as a row.void
modifyOne
(long row, long col, UnaryFunction<Double> modifier) void
modifyRow
(long row, long col, UnaryFunction<Double> modifier) void
modifyRow
(long row, UnaryFunction<Double> modifier) multiply
(MatrixStore<Double> right) multiplyBoth
(Access1D<Double> leftAndRight) Assumes [leftAndRight] is a vector and will calulate [leftAndRight]H[this][leftAndRight]physical()
void
reduceColumns
(Aggregator aggregator, Mutate1D receiver) void
reduceRows
(Aggregator aggregator, Mutate1D receiver) regionByColumns
(int... columns) regionByLimits
(int rowLimit, int columnLimit) regionByOffsets
(int rowOffset, int columnOffset) regionByRows
(int... rows) rows()
void
set
(int row, int col, double value) void
set
(long row, long col, Comparable<?> value) short
shortValue
(long row, long col) sliceColumn
(long col) sliceColumn
(long row, long col) sliceDiagonal
(long row, long col) sliceRow
(long row) sliceRow
(long row, long col) void
substituteBackwards
(Access2D<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 triangularvoid
substituteForwards
(Access2D<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[]
double[][]
toScalar
(int row, int col) Extracts one element of this matrix as a Scalar.toString()
void
transformLeft
(Householder<Double> transformation, int firstColumn) void
transformLeft
(Rotation<Double> transformation) As inMatrixStore.premultiply(Access1D)
where the left/parameter matrix is a plane rotation.void
transformRight
(Householder<Double> transformation, int firstRow) void
transformRight
(Rotation<Double> transformation) As inMatrixStore.multiply(MatrixStore)
where the right/parameter matrix is a plane rotation.void
visitColumn
(long row, long col, VoidFunction<Double> visitor) void
visitColumn
(long col, VoidFunction<Double> visitor) void
visitDiagonal
(long row, long col, VoidFunction<Double> visitor) void
visitDiagonal
(VoidFunction<Double> visitor) void
visitOne
(long row, long col, VoidFunction<Double> visitor) void
visitRow
(long row, long col, VoidFunction<Double> visitor) void
visitRow
(long row, VoidFunction<Double> visitor) 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, wrap
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
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, 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, 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 Details
-
FACTORY
-
multiplyBoth
-
multiplyLeft
-
multiplyNeither
-
multiplyRight
-
myColDim
private final int myColDim -
myRowDim
private final int myRowDim -
myUtility
-
myWorkerColumn
private transient float[] myWorkerColumn
-
-
Constructor Details
-
R032Store
R032Store(int numbRows, int numbCols, float[] dataArray) -
R032Store
R032Store(long numbRows, long numbCols)
-
-
Method Details
-
cast
-
cast
-
cast
-
accept
-
add
- Specified by:
add
in interfaceMutate2D.Modifiable<Double>
-
add
public void add(long row, long col, double addend) - Specified by:
add
in interfaceMutate2D.Modifiable<Double>
-
aggregateColumn
- Specified by:
aggregateColumn
in interfaceAccess2D.Aggregatable<Double>
-
aggregateColumn
- Specified by:
aggregateColumn
in interfaceAccess2D.Aggregatable<Double>
- Specified by:
aggregateColumn
in interfaceMatrixStore<Double>
-
aggregateDiagonal
- Specified by:
aggregateDiagonal
in interfaceAccess2D.Aggregatable<Double>
-
aggregateDiagonal
- Specified by:
aggregateDiagonal
in interfaceAccess2D.Aggregatable<Double>
- Specified by:
aggregateDiagonal
in interfaceMatrixStore<Double>
-
aggregateRange
- Specified by:
aggregateRange
in interfaceAccess1D.Aggregatable<Double>
- Specified by:
aggregateRange
in interfaceMatrixStore<Double>
- Overrides:
aggregateRange
in classBasicArray<Double>
-
aggregateRow
- Specified by:
aggregateRow
in interfaceAccess2D.Aggregatable<Double>
-
aggregateRow
- Specified by:
aggregateRow
in interfaceAccess2D.Aggregatable<Double>
- Specified by:
aggregateRow
in interfaceMatrixStore<Double>
-
asCollectable2D
public <NN extends Comparable<NN>,R extends Mutate2D.Receiver<NN>> Access2D.Collectable<NN,R> asCollectable2D()- Specified by:
asCollectable2D
in interfaceAccess2D<Double>
-
asList
- Specified by:
asList
in interfacePhysicalStore<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.
-
build
- Specified by:
build
in interfaceFactory1D.Builder<DenseArray<Double>>
- Specified by:
build
in interfaceFactory2D.Builder<R032Store>
- Overrides:
build
in classDenseArray<Double>
-
byteValue
public byte byteValue(long row, long col) -
columns
-
conjugate
Description copied from interface:MatrixStore
Returns 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:
conjugate
in interfaceMatrixStore<Double>
- Specified by:
conjugate
in interfaceStructure2D.Logical<Access2D<Double>,
MatrixStore<Double>> - Specified by:
conjugate
in interfaceVectorSpace<MatrixStore<Double>,
Double> - See Also:
-
countColumns
public long countColumns()Description copied from interface:Structure2D
Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.- Specified by:
countColumns
in interfaceStructure2D
- Returns:
- The number of columns
-
countRows
public long countRows()Description copied from interface:Structure2D
Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.- Specified by:
countRows
in interfaceStructure2D
- Returns:
- The number of rows
-
dot
Description copied from interface:Access1D
Will 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:Access2D
Extracts one element of this matrix as a double.- Specified by:
doubleValue
in interfaceAccess2D<Double>
- Specified by:
doubleValue
in interfaceMatrixStore<Double>
- Parameters:
row
- A row index.col
- A column index.- Returns:
- One matrix element
-
elements
Description copied from interface:Access1D
Returns an Iterable of ElementView1D. It allows to iterate over the instance's element "positions" without actually extracting the elements (unless you explicitly do so). -
equals
-
exchangeColumns
public void exchangeColumns(long colA, long colB) - Specified by:
exchangeColumns
in interfaceMutate2D.Exchangeable
- Specified by:
exchangeColumns
in interfaceTransformableRegion<Double>
-
exchangeRows
public void exchangeRows(long rowA, long rowB) - Specified by:
exchangeRows
in interfaceMutate2D.Exchangeable
- Specified by:
exchangeRows
in interfaceTransformableRegion<Double>
-
fillCompatible
public void fillCompatible(Access2D<Double> left, BinaryFunction<Double> operator, Access2D<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:
fillCompatible
in interfaceMutate2D.Fillable<Double>
-
fillByMultiplying
- Specified by:
fillByMultiplying
in interfaceTransformableRegion<Double>
-
fillColumn
- Specified by:
fillColumn
in interfaceMutate2D.Fillable<Double>
-
fillColumn
- Specified by:
fillColumn
in interfaceMutate2D.Fillable<Double>
-
fillColumn
- Specified by:
fillColumn
in interfaceMutate2D.Fillable<Double>
-
fillColumn
- Specified by:
fillColumn
in interfaceMutate2D.Fillable<Double>
-
fillColumn
- Specified by:
fillColumn
in interfaceMutate2D.Fillable<Double>
-
fillColumn
- Specified by:
fillColumn
in interfaceMutate2D.Fillable<Double>
-
fillDiagonal
- Specified by:
fillDiagonal
in interfaceMutate2D.Fillable<Double>
-
fillDiagonal
- Specified by:
fillDiagonal
in interfaceMutate2D.Fillable<Double>
-
fillDiagonal
- Specified by:
fillDiagonal
in interfaceMutate2D.Fillable<Double>
-
fillDiagonal
- Specified by:
fillDiagonal
in interfaceMutate2D.Fillable<Double>
-
fillDiagonal
- Specified by:
fillDiagonal
in interfaceMutate2D.Fillable<Double>
-
fillDiagonal
- Specified by:
fillDiagonal
in interfaceMutate2D.Fillable<Double>
-
fillMatching
public void fillMatching(Access1D<Double> left, BinaryFunction<Double> function, Access1D<Double> right) - Specified by:
fillMatching
in interfaceMutate1D.Fillable<Double>
- Overrides:
fillMatching
in classArrayR032
-
fillMatching
- Specified by:
fillMatching
in interfaceMutate1D.Fillable<Double>
- Overrides:
fillMatching
in classArrayR032
-
fillRow
- Specified by:
fillRow
in interfaceMutate2D.Fillable<Double>
-
fillRow
- Specified by:
fillRow
in interfaceMutate2D.Fillable<Double>
-
fillRow
- Specified by:
fillRow
in interfaceMutate2D.Fillable<Double>
-
fillRow
- Specified by:
fillRow
in interfaceMutate2D.Fillable<Double>
-
fillRow
- Specified by:
fillRow
in interfaceMutate2D.Fillable<Double>
-
fillRow
- Specified by:
fillRow
in interfaceMutate2D.Fillable<Double>
-
floatValue
public float floatValue(long row, long col) - Specified by:
floatValue
in interfaceAccess2D<Double>
-
get
- Specified by:
get
in interfaceMatrixStore<Double>
-
getColDim
public int getColDim()- Specified by:
getColDim
in interfaceStructure2D
- Returns:
- The number of columns
-
getMaxDim
public int getMaxDim()- Specified by:
getMaxDim
in interfaceStructure2D
-
getMinDim
public int getMinDim()- Specified by:
getMinDim
in interfaceStructure2D
-
getRowDim
public int getRowDim()- Specified by:
getRowDim
in interfaceStructure2D
- Returns:
- The number of rows
-
hashCode
public int hashCode() -
intValue
public int intValue(long row, long col) -
isAcceptable
- Specified by:
isAcceptable
in interfaceMutate2D.Receiver<Double>
-
isEmpty
public boolean isEmpty()Description copied from interface:Structure2D
2D 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:
isEmpty
in interfaceStructure2D
- Returns:
- true if matrix is empty
-
isFat
public boolean isFat()Description copied from interface:Structure2D
2D data structures are either square, tall, fat or empty.1 <= m < n
- Specified by:
isFat
in interfaceStructure2D
- Returns:
- true if matrix is fat
-
isScalar
public boolean isScalar()- Specified by:
isScalar
in interfaceStructure2D
- Returns:
- true if both the row and column dimensions are equal to 1.
-
isSquare
public boolean isSquare()Description copied from interface:Structure2D
2D data structures are either square, tall, fat or empty.m = n <> 0
- Specified by:
isSquare
in interfaceStructure2D
- Returns:
- true if matrix is square
-
isTall
public boolean isTall()Description copied from interface:Structure2D
2D data structures are either square, tall, fat or empty.m < n >= 1
- Specified by:
isTall
in interfaceStructure2D
- Returns:
- true if matrix is tall
-
isVector
public boolean isVector()- Specified by:
isVector
in interfaceStructure2D
- Returns:
- true if either the row or column dimensions are equal to 1.
-
longValue
public long longValue(long row, long col) -
modifyAll
- Specified by:
modifyAll
in interfaceMutate1D.Modifiable<Double>
- Overrides:
modifyAll
in classBasicArray<Double>
-
modifyAny
- Specified by:
modifyAny
in interfaceMutate2D.ModifiableReceiver<Double>
- Specified by:
modifyAny
in interfacePhysicalStore<Double>
- Specified by:
modifyAny
in interfaceTransformableRegion<Double>
-
modifyColumn
- Specified by:
modifyColumn
in interfaceMutate2D.Modifiable<Double>
-
modifyColumn
- Specified by:
modifyColumn
in interfaceMutate2D.Modifiable<Double>
-
modifyDiagonal
- Specified by:
modifyDiagonal
in interfaceMutate2D.Modifiable<Double>
-
modifyDiagonal
- Specified by:
modifyDiagonal
in interfaceMutate2D.Modifiable<Double>
-
modifyMatching
- Specified by:
modifyMatching
in interfaceMutate1D.Modifiable<Double>
- Overrides:
modifyMatching
in classBasicArray<Double>
-
modifyMatching
- Specified by:
modifyMatching
in interfaceMutate1D.Modifiable<Double>
- Overrides:
modifyMatching
in classBasicArray<Double>
-
modifyMatchingInColumns
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:
modifyMatchingInColumns
in interfaceMutate2D.Modifiable<Double>
-
modifyMatchingInColumns
Description copied from interface:Mutate2D.Modifiable
Same asMutate2D.Modifiable.modifyMatchingInColumns(Access1D, BinaryFunction)
but with the arguments to the modifier function swapped.- Specified by:
modifyMatchingInColumns
in interfaceMutate2D.Modifiable<Double>
-
modifyMatchingInRows
Description copied from interface:Mutate2D.Modifiable
Same 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:
modifyMatchingInRows
in interfaceMutate2D.Modifiable<Double>
-
modifyMatchingInRows
Description copied from interface:Mutate2D.Modifiable
Same asMutate2D.Modifiable.modifyMatchingInRows(Access1D, BinaryFunction)
but with the arguments to the modifier function swapped.- Specified by:
modifyMatchingInRows
in interfaceMutate2D.Modifiable<Double>
-
modifyOne
- Specified by:
modifyOne
in interfaceMutate2D.Modifiable<Double>
-
modifyRow
- Specified by:
modifyRow
in interfaceMutate2D.Modifiable<Double>
-
modifyRow
- Specified by:
modifyRow
in interfaceMutate2D.Modifiable<Double>
-
multiply
- Specified by:
multiply
in interfaceMatrixStore<Double>
- Specified by:
multiply
in interfaceOperation.Multiplication<MatrixStore<Double>>
- Parameters:
right
- The multiplicand- Returns:
this * multiplicand
.
-
multiplyBoth
Description copied from interface:MatrixStore
Assumes [leftAndRight] is a vector and will calulate [leftAndRight]H[this][leftAndRight]- Specified by:
multiplyBoth
in interfaceMatrixStore<Double>
- Parameters:
leftAndRight
- The argument vector- Returns:
- A scalar (extracted from the resulting 1 x 1 matrix)
-
physical
- Specified by:
physical
in interfaceMatrixStore<Double>
-
reduceColumns
- Specified by:
reduceColumns
in interfaceAccess2D.Aggregatable<Double>
-
reduceRows
- Specified by:
reduceRows
in interfaceAccess2D.Aggregatable<Double>
-
regionByColumns
- Specified by:
regionByColumns
in interfaceTransformableRegion<Double>
- Returns:
- A consumer (sub)region
-
regionByLimits
- Specified by:
regionByLimits
in interfaceTransformableRegion<Double>
- Returns:
- A consumer (sub)region
-
regionByOffsets
- Specified by:
regionByOffsets
in interfaceTransformableRegion<Double>
- Returns:
- A consumer (sub)region
-
regionByRows
- Specified by:
regionByRows
in interfaceTransformableRegion<Double>
- Returns:
- A consumer (sub)region
-
regionByTransposing
- Specified by:
regionByTransposing
in interfaceTransformableRegion<Double>
- Returns:
- A transposed consumer region
-
rows
-
set
public void set(int row, int col, double value) -
set
-
shortValue
public short shortValue(long row, long col) - Specified by:
shortValue
in interfaceAccess2D<Double>
-
sliceColumn
- Specified by:
sliceColumn
in interfaceAccess2D.Sliceable<Double>
-
sliceColumn
- Specified by:
sliceColumn
in interfaceAccess2D.Sliceable<Double>
- Specified by:
sliceColumn
in interfaceMatrixStore<Double>
-
sliceDiagonal
- Specified by:
sliceDiagonal
in interfaceAccess2D.Sliceable<Double>
-
sliceDiagonal
- Specified by:
sliceDiagonal
in interfaceAccess2D.Sliceable<Double>
- Specified by:
sliceDiagonal
in interfaceMatrixStore<Double>
-
sliceRow
- Specified by:
sliceRow
in interfaceAccess2D.Sliceable<Double>
-
sliceRow
- Specified by:
sliceRow
in interfaceAccess2D.Sliceable<Double>
- Specified by:
sliceRow
in interfaceMatrixStore<Double>
-
substituteBackwards
public void substituteBackwards(Access2D<Double> body, boolean unitDiagonal, boolean conjugated, boolean hermitian) Description copied from interface:PhysicalStore
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 triangular
- Specified by:
substituteBackwards
in interfacePhysicalStore<Double>
- See Also:
-
substituteForwards
public void substituteForwards(Access2D<Double> body, boolean unitDiagonal, boolean conjugated, boolean identity) Description copied from interface:PhysicalStore
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 triangular
- Specified by:
substituteForwards
in interfacePhysicalStore<Double>
- See Also:
-
toRawCopy1D
public double[] toRawCopy1D()- Specified by:
toRawCopy1D
in interfaceAccess1D<Double>
-
toRawCopy2D
public double[][] toRawCopy2D()- Specified by:
toRawCopy2D
in interfaceAccess2D<Double>
-
toString
- Overrides:
toString
in classBasicArray<Double>
-
transformLeft
- Specified by:
transformLeft
in interfacePhysicalStore<Double>
-
transformLeft
Description copied from interface:PhysicalStore
As 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:
transformLeft
in interfacePhysicalStore<Double>
- See Also:
-
transformRight
- Specified by:
transformRight
in interfacePhysicalStore<Double>
-
transformRight
Description copied from interface:PhysicalStore
As 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:
transformRight
in interfacePhysicalStore<Double>
- See Also:
-
visitColumn
- Specified by:
visitColumn
in interfaceAccess2D.Visitable<Double>
-
visitColumn
- Specified by:
visitColumn
in interfaceAccess2D.Visitable<Double>
-
visitDiagonal
- Specified by:
visitDiagonal
in interfaceAccess2D.Visitable<Double>
-
visitDiagonal
- Specified by:
visitDiagonal
in interfaceAccess2D.Visitable<Double>
-
visitOne
- Specified by:
visitOne
in interfaceAccess2D.Visitable<Double>
- Specified by:
visitOne
in interfaceMatrixStore<Double>
-
visitRow
- Specified by:
visitRow
in interfaceAccess2D.Visitable<Double>
-
visitRow
- Specified by:
visitRow
in interfaceAccess2D.Visitable<Double>
-
toScalar
Description copied from interface:Matrix2D
Extracts one element of this matrix as a Scalar.- Specified by:
toScalar
in interfaceMatrix2D<Double,
MatrixStore<Double>> - Specified by:
toScalar
in interfaceMatrixStore<Double>
- Parameters:
row
- A row index.col
- A column index.- Returns:
- One matrix element as a Scalar.
-
getWorkerColumn
private float[] getWorkerColumn()
-