public abstract class MatrixUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
copy(Access2D<?> source,
int rows,
int columns,
double[][] destination) |
static void |
copyComplexArgument(Access2D<ComplexNumber> source,
ElementsConsumer<?> destination)
Copies the argument of the ComplexNumber elements to the destination.
|
static void |
copyComplexImaginary(Access2D<ComplexNumber> source,
ElementsConsumer<?> destination)
Copies the imaginary part of the ComplexNumber elements to the destination.
|
static void |
copyComplexModulus(Access2D<ComplexNumber> source,
ElementsConsumer<?> destination)
Copies the modulus of the ComplexNumber elements to the destination.
|
static void |
copyComplexModulusAndArgument(Access2D<ComplexNumber> source,
ElementsConsumer<?> modDest,
ElementsConsumer<?> argDest)
Simultaneously copies the modulus and argument of the ComplexNumber elements to the destinations.
|
static void |
copyComplexReal(Access2D<ComplexNumber> source,
ElementsConsumer<?> destination)
Copies the real part of the ComplexNumber elements to the destination.
|
static void |
copyComplexRealAndImaginary(Access2D<ComplexNumber> source,
ElementsConsumer<?> realDest,
ElementsConsumer<?> imagDest)
Simultaneously copies the real and imaginary parts of the ComplexNumber elements to the destinations.
|
static int |
firstInColumn(Access1D<?> matrix,
int col,
int defaultAndMinimum) |
static long |
firstInColumn(Access1D<?> matrix,
long col,
long defaultAndMinimum) |
static int |
firstInRow(Access1D<?> matrix,
int row,
int defaultAndMinimum) |
static long |
firstInRow(Access1D<?> matrix,
long row,
long defaultAndMinimum) |
static PrimitiveDenseStore |
getComplexArgument(Access2D<ComplexNumber> arg)
Extracts the argument of the ComplexNumber elements to a new primitive double valued matrix.
|
static PrimitiveDenseStore |
getComplexImaginary(Access2D<ComplexNumber> arg)
Extracts the imaginary part of the ComplexNumber elements to a new primitive double valued matrix.
|
static PrimitiveDenseStore |
getComplexModulus(Access2D<ComplexNumber> arg)
Extracts the modulus of the ComplexNumber elements to a new primitive double valued matrix.
|
static PrimitiveDenseStore |
getComplexReal(Access2D<ComplexNumber> arg)
Extracts the real part of the ComplexNumber elements to a new primitive double valued matrix.
|
static <N extends Number> |
hashCode(BasicMatrix matrix) |
static <N extends Number> |
hashCode(MatrixStore<N> matrix) |
static boolean |
isHermitian(Access2D<?> matrix) |
static <N extends Number> |
isNormal(MatrixStore<N> matrix) |
static int |
limitOfColumn(Access1D<?> matrix,
int col,
int defaultAndMaximum) |
static long |
limitOfColumn(Access1D<?> matrix,
long col,
long defaultAndMaximum) |
static int |
limitOfRow(Access1D<?> matrix,
int row,
int defaultAndMaximum) |
static long |
limitOfRow(Access1D<?> matrix,
long row,
long defaultAndMaximum) |
static PhysicalStore<ComplexNumber> |
makeRandomComplexStore(int aRowDim,
int aColDim) |
static PrimitiveDenseStore |
makeSPD(int dim)
Make a random symmetric positive definite matrix
|
static String |
toString(Access2D<?> matrix)
Deprecated.
v45 Use
Access2D.toString(Access2D<?>) instead |
static Access2D<BigDecimal> |
wrapBigAccess2D(BasicMatrix matrix) |
static Access2D<ComplexNumber> |
wrapComplexAccess2D(BasicMatrix matrix) |
static Access2D<Double> |
wrapPrimitiveAccess2D(BasicMatrix matrix) |
public static void copy(Access2D<?> source, int rows, int columns, double[][] destination)
public static void copyComplexArgument(Access2D<ComplexNumber> source, ElementsConsumer<?> destination)
public static void copyComplexImaginary(Access2D<ComplexNumber> source, ElementsConsumer<?> destination)
public static void copyComplexModulus(Access2D<ComplexNumber> source, ElementsConsumer<?> destination)
public static void copyComplexModulusAndArgument(Access2D<ComplexNumber> source, ElementsConsumer<?> modDest, ElementsConsumer<?> argDest)
public static void copyComplexReal(Access2D<ComplexNumber> source, ElementsConsumer<?> destination)
public static void copyComplexRealAndImaginary(Access2D<ComplexNumber> source, ElementsConsumer<?> realDest, ElementsConsumer<?> imagDest)
public static final int firstInColumn(Access1D<?> matrix, int col, int defaultAndMinimum)
public static final long firstInColumn(Access1D<?> matrix, long col, long defaultAndMinimum)
public static final int firstInRow(Access1D<?> matrix, int row, int defaultAndMinimum)
public static final long firstInRow(Access1D<?> matrix, long row, long defaultAndMinimum)
public static PrimitiveDenseStore getComplexArgument(Access2D<ComplexNumber> arg)
public static PrimitiveDenseStore getComplexImaginary(Access2D<ComplexNumber> arg)
public static PrimitiveDenseStore getComplexModulus(Access2D<ComplexNumber> arg)
public static PrimitiveDenseStore getComplexReal(Access2D<ComplexNumber> arg)
public static <N extends Number> int hashCode(BasicMatrix matrix)
public static <N extends Number> int hashCode(MatrixStore<N> matrix)
public static boolean isHermitian(Access2D<?> matrix)
public static <N extends Number> boolean isNormal(MatrixStore<N> matrix)
public static final int limitOfColumn(Access1D<?> matrix, int col, int defaultAndMaximum)
public static final long limitOfColumn(Access1D<?> matrix, long col, long defaultAndMaximum)
public static final int limitOfRow(Access1D<?> matrix, int row, int defaultAndMaximum)
public static final long limitOfRow(Access1D<?> matrix, long row, long defaultAndMaximum)
public static PhysicalStore<ComplexNumber> makeRandomComplexStore(int aRowDim, int aColDim)
public static PrimitiveDenseStore makeSPD(int dim)
@Deprecated public static String toString(Access2D<?> matrix)
Access2D.toString(Access2D<?>)
insteadpublic static Access2D<BigDecimal> wrapBigAccess2D(BasicMatrix matrix)
public static Access2D<ComplexNumber> wrapComplexAccess2D(BasicMatrix matrix)
public static Access2D<Double> wrapPrimitiveAccess2D(BasicMatrix matrix)
Copyright © 2018 Optimatika. All rights reserved.