PrimitiveMatrix
, ComplexMatrix
or RationalMatrix
.@Deprecated public interface BasicMatrix extends NormedVectorSpace<BasicMatrix,Number>, Operation.Subtraction<BasicMatrix>, Operation.Multiplication<BasicMatrix>, ScalarOperation.Addition<BasicMatrix,Number>, ScalarOperation.Division<BasicMatrix,Number>, ScalarOperation.Subtraction<BasicMatrix,Number>, Access2D<Number>, Access2D.Elements, Access2D.Aggregatable<Number>, Structure2D.ReducibleTo1D<BasicMatrix>, NumberContext.Enforceable<BasicMatrix>
This interface declares a limited set of high level methods for linear algebra. If this is not enough for your use case, then look at the various interfaces/classes in the org.ojalgo.matrix.store and/or org.ojalgo.matrix.decomposition packages.
Modifier and Type | Interface and Description |
---|---|
static interface |
BasicMatrix.LogicalBuilder<N extends Number,I extends BasicMatrix>
Deprecated.
|
static interface |
BasicMatrix.PhysicalBuilder<N extends Number,I extends BasicMatrix>
Deprecated.
|
Group.Additive<S>, Group.Multiplicative<S>
Operation.Addition<T>, Operation.Division<T>, Operation.Multiplication<T>, Operation.Subtraction<T>
ScalarOperation.Addition<T,N extends Number>, ScalarOperation.Division<T,N extends Number>, ScalarOperation.Multiplication<T,N extends Number>, ScalarOperation.Subtraction<T,N extends Number>
Access2D.Aggregatable<N extends Number>, Access2D.Collectable<N extends Number,R extends Mutate2D.Receiver<N>>, Access2D.Elements, Access2D.ElementView<N extends Number>, Access2D.IndexOf, Access2D.Sliceable<N extends Number>, Access2D.Visitable<N extends Number>
Structure2D.IntRowColumn, Structure2D.Logical<S extends Structure2D,B extends Structure2D.Logical<S,?>>, Structure2D.LongRowColumn, Structure2D.ReducibleTo1D<R extends Structure1D>, Structure2D.RowColumnCallback, Structure2D.RowColumnKey<R,C>, Structure2D.RowColumnMapper<R,C>
Structure1D.BasicMapper<T>, Structure1D.IndexCallback, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.LongIndex, Structure1D.LoopCallback
Modifier and Type | Method and Description |
---|---|
BasicMatrix |
add(int row,
int col,
Access2D<?> addend)
|
static double |
calculateFrobeniusNorm(BasicMatrix matrix)
Deprecated.
The Frobenius norm is the square root of the sum of the squares of each element, or the square root of
the sum of the square of the singular values.
|
static double |
calculateInfinityNorm(BasicMatrix matrix)
Deprecated.
|
static double |
calculateOneNorm(BasicMatrix matrix)
Deprecated.
|
BasicMatrix.PhysicalBuilder<? extends Number,? extends BasicMatrix> |
copy()
Deprecated.
|
BasicMatrix |
divideElements(Access2D<?> aMtrx)
|
boolean |
equals(Access2D<?> another,
NumberContext precision)
Deprecated.
|
void |
flushCache()
Deprecated.
BasicMatrix instances are intended to be immutable.
|
BasicMatrix |
getColumnsRange(int first,
int limit)
|
Scalar<?> |
getCondition()
Deprecated.
Matrix condition (2-norm)
|
Scalar<?> |
getDeterminant()
Deprecated.
|
List<Eigenvalue.Eigenpair> |
getEigenpairs()
Deprecated.
|
int |
getRank()
Deprecated.
The rank of a matrix is the (maximum) number of linearly independent rows or columns it contains.
|
BasicMatrix |
getRowsRange(int first,
int kimit)
|
List<? extends Number> |
getSingularValues()
Deprecated.
v40 Use
SingularValue |
Scalar<?> |
getTrace()
Deprecated.
The sum of the diagonal elements.
|
BasicMatrix |
invert()
Deprecated.
About inverting matrices:
|
boolean |
isFullRank()
Deprecated.
|
boolean |
isHermitian()
Deprecated.
|
boolean |
isSymmetric()
Deprecated.
|
BasicMatrix.LogicalBuilder<? extends Number,? extends BasicMatrix> |
logical()
Deprecated.
|
BasicMatrix |
mergeColumns(Access2D<?> belowRows)
|
BasicMatrix |
mergeRows(Access2D<?> rightColumns)
|
BasicMatrix |
modify(UnaryFunction<? extends Number> aFunc)
|
BasicMatrix |
multiplyElements(Access2D<?> aMtrx)
|
default BasicMatrix |
selectColumns(int... someCols)
|
default BasicMatrix |
selectRows(int... someRows)
|
BasicMatrix |
solve(Access2D<?> aRHS)
Deprecated.
This method solves a system of linear equations: [this][X]=[aRHS].
|
Scalar<?> |
toScalar(long row,
long col)
Deprecated.
Extracts one element of this matrix as a Scalar.
|
BasicMatrix |
transpose()
Deprecated.
Transposes this matrix.
|
isSmall, norm, signum
conjugate
negate
add
multiply, multiply
subtract
multiply
add, add
divide, divide
subtract, subtract
asCollectable2D, asPrimitive2D, byteValue, byteValue, columns, doubleValue, doubleValue, elements, equals, floatValue, floatValue, get, get, intValue, intValue, longValue, longValue, newPrimitiveColumnCollectable, newPrimitiveRowCollectable, rows, shortValue, shortValue, toRawCopy2D, toString, wrap, wrap, wrapAccess2D, wrapAccess2D
asCollectable1D, asPrimitive1D, axpy, dot, equals, hashCode, nonzeros, supplyTo, toRawCopy1D, wrap, wrap, wrap, wrapAccess1D, wrapAccess1D, wrapAccess1D
isAbsolute, isAbsolute, isColumnSmall, isColumnSmall, isRowSmall, isRowSmall, isSmall, isSmall
isAllSmall
aggregateColumn, aggregateColumn, aggregateDiagonal, aggregateDiagonal, aggregateRow, aggregateRow, reduceColumns, reduceRows
aggregateAll, aggregateRange
reduceColumns, reduceRows
column, column, column, column, column, count, count, countColumns, countRows, index, index, isEmpty, isFat, isScalar, isSquare, isTall, isVector, loopAll, loopColumn, loopColumn, loopDiagonal, loopMatching, loopRow, loopRow, mapperOf, row, row, row, row, row
loopAll, loopMatching, loopRange, mapper
enforce
static double calculateFrobeniusNorm(BasicMatrix matrix)
static double calculateInfinityNorm(BasicMatrix matrix)
static double calculateOneNorm(BasicMatrix matrix)
@Deprecated BasicMatrix add(int row, int col, Access2D<?> addend)
row
- The row index of where to superimpose the top left element of the addendcol
- The column index of where to superimpose the top left element of the addendaddend
- A matrix to superimposeBasicMatrix.PhysicalBuilder<? extends Number,? extends BasicMatrix> copy()
@Deprecated BasicMatrix divideElements(Access2D<?> aMtrx)
aMtrx
- The denominator elements.boolean equals(Access2D<?> another, NumberContext precision)
void flushCache()
@Deprecated BasicMatrix getColumnsRange(int first, int limit)
first
- The first column to include.limit
- The limit (exclusive) - the first column not to include.Scalar<?> getCondition()
Scalar<?> getDeterminant()
List<Eigenvalue.Eigenpair> getEigenpairs()
int getRank()
MatrixDecomposition.RankRevealing
@Deprecated BasicMatrix getRowsRange(int first, int kimit)
first
- The first row to include.kimit
- The limit (exclusive) - the first row not to include.@Deprecated List<? extends Number> getSingularValues()
SingularValue
Scalar<?> getTrace()
BasicMatrix invert()
About inverting matrices:
boolean isFullRank()
MatrixDecomposition.RankRevealing
boolean isHermitian()
boolean isSymmetric()
BasicMatrix.LogicalBuilder<? extends Number,? extends BasicMatrix> logical()
@Deprecated BasicMatrix mergeColumns(Access2D<?> belowRows)
belowRows
- The matrix to merge.@Deprecated BasicMatrix mergeRows(Access2D<?> rightColumns)
rightColumns
- The matrix to merge.@Deprecated BasicMatrix modify(UnaryFunction<? extends Number> aFunc)
@Deprecated BasicMatrix multiplyElements(Access2D<?> aMtrx)
aMtrx
- The elements to multiply by.@Deprecated default BasicMatrix selectColumns(int... someCols)
someCols
- An ordered array of column indeces.@Deprecated default BasicMatrix selectRows(int... someRows)
someRows
- An ordered array of row indeces.BasicMatrix solve(Access2D<?> aRHS)
This method solves a system of linear equations: [this][X]=[aRHS]. A combination of columns in [this] should produce a column(s) in [aRHS]. It is ok for [aRHS] to have more than 1 column.
Remember that: [X][this]=[aRHS] is equivalent to [this]T[X]T=[aRHS]T
aRHS
- The right hand side of the equation.Scalar<?> toScalar(long row, long col)
row
- A row index.col
- A column index.BasicMatrix transpose()
VectorSpace.conjugate()
Copyright © 2018 Optimatika. All rights reserved.