Package org.ejml.ops
Class DConvertMatrixStruct
java.lang.Object
org.ejml.ops.DConvertMatrixStruct
Functions for converting between matrix types. Both matrices must be the same size and their values will
be copied.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DMatrixRMaj
convert
(DMatrix2 input, @Nullable DMatrixRMaj output) ConvertsDMatrix2
intoDMatrixRMaj
.static DMatrixRMaj
convert
(DMatrix2x2 input, @Nullable DMatrixRMaj output) ConvertsDMatrix2x2
intoDMatrixRMaj
.static DMatrixRMaj
convert
(DMatrix3 input, @Nullable DMatrixRMaj output) ConvertsDMatrix3
intoDMatrixRMaj
.static DMatrixRMaj
convert
(DMatrix3x3 input, @Nullable DMatrixRMaj output) ConvertsDMatrix3x3
intoDMatrixRMaj
.static DMatrixRMaj
convert
(DMatrix4 input, @Nullable DMatrixRMaj output) ConvertsDMatrix4
intoDMatrixRMaj
.static DMatrixRMaj
convert
(DMatrix4x4 input, @Nullable DMatrixRMaj output) ConvertsDMatrix4x4
intoDMatrixRMaj
.static DMatrixRMaj
convert
(DMatrix5 input, @Nullable DMatrixRMaj output) ConvertsDMatrix5
intoDMatrixRMaj
.static DMatrixRMaj
convert
(DMatrix5x5 input, @Nullable DMatrixRMaj output) ConvertsDMatrix5x5
intoDMatrixRMaj
.static DMatrixRMaj
convert
(DMatrix6 input, @Nullable DMatrixRMaj output) ConvertsDMatrix6
intoDMatrixRMaj
.static DMatrixRMaj
convert
(DMatrix6x6 input, @Nullable DMatrixRMaj output) ConvertsDMatrix6x6
intoDMatrixRMaj
.static DMatrixSparseTriplet
convert
(DMatrix src, @Nullable DMatrixSparseTriplet dst, double tol) static DMatrixRMaj
convert
(DMatrixRBlock src, @Nullable DMatrixRMaj dst) ConvertsDMatrixRBlock
intoDMatrixRMaj
static DMatrix2
convert
(DMatrixRMaj input, @Nullable DMatrix2 output) ConvertsDMatrixRMaj
intoDMatrix2
static DMatrix2x2
convert
(DMatrixRMaj input, @Nullable DMatrix2x2 output) ConvertsDMatrixRMaj
intoDMatrix2x2
static DMatrix3
convert
(DMatrixRMaj input, @Nullable DMatrix3 output) ConvertsDMatrixRMaj
intoDMatrix3
static DMatrix3x3
convert
(DMatrixRMaj input, @Nullable DMatrix3x3 output) ConvertsDMatrixRMaj
intoDMatrix3x3
static DMatrix4
convert
(DMatrixRMaj input, @Nullable DMatrix4 output) ConvertsDMatrixRMaj
intoDMatrix4
static DMatrix4x4
convert
(DMatrixRMaj input, @Nullable DMatrix4x4 output) ConvertsDMatrixRMaj
intoDMatrix4x4
static DMatrix5
convert
(DMatrixRMaj input, @Nullable DMatrix5 output) ConvertsDMatrixRMaj
intoDMatrix5
static DMatrix5x5
convert
(DMatrixRMaj input, @Nullable DMatrix5x5 output) ConvertsDMatrixRMaj
intoDMatrix5x5
static DMatrix6
convert
(DMatrixRMaj input, @Nullable DMatrix6 output) ConvertsDMatrixRMaj
intoDMatrix6
static DMatrix6x6
convert
(DMatrixRMaj input, @Nullable DMatrix6x6 output) ConvertsDMatrixRMaj
intoDMatrix6x6
static DMatrixSparseCSC
convert
(DMatrixRMaj src, @Nullable DMatrixSparseCSC dst, double tol) Converts DMatrixRMaj into a DMatrixSparseCSCstatic DMatrixSparseTriplet
convert
(DMatrixRMaj src, @Nullable DMatrixSparseTriplet dst, double tol) static void
convert
(DMatrixRMaj src, DMatrixRBlock dst) ConvertsDMatrixRMaj
intoDMatrixRBlock
Can't handle null output matrix since block size needs to be specified.static void
Generic, but slow, conversion function.static DMatrixRMaj
convert
(DMatrixSparseCSC src, @Nullable DMatrixRMaj dst) static DMatrixSparseTriplet
convert
(DMatrixSparseCSC src, @Nullable DMatrixSparseTriplet dst) static DMatrixRMaj
convert
(DMatrixSparseTriplet src, @Nullable DMatrixRMaj dst) static DMatrixSparseCSC
convert
(DMatrixSparseTriplet src, @Nullable DMatrixSparseCSC dst) static DMatrixSparseCSC
convert
(DMatrixSparseTriplet src, @Nullable DMatrixSparseCSC dst, @Nullable IGrowArray histStorage) Converts DMatrixSparseTriplet into a DMatrixSparseCSC.
-
Constructor Details
-
DConvertMatrixStruct
public DConvertMatrixStruct()
-
-
Method Details
-
convert
Generic, but slow, conversion function.- Parameters:
input
- Input matrix.output
- Output matrix.
-
convert
ConvertsDMatrix2x2
intoDMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrix3x3
intoDMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrix4x4
intoDMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrix5x5
intoDMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrix6x6
intoDMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrixRMaj
intoDMatrix2x2
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrixRMaj
intoDMatrix3x3
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrixRMaj
intoDMatrix4x4
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrixRMaj
intoDMatrix5x5
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrixRMaj
intoDMatrix6x6
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrix2
intoDMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrix3
intoDMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrix4
intoDMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrix5
intoDMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrix6
intoDMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrixRMaj
intoDMatrix2
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrixRMaj
intoDMatrix3
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrixRMaj
intoDMatrix4
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrixRMaj
intoDMatrix5
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrixRMaj
intoDMatrix6
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsDMatrixRMaj
intoDMatrixRBlock
Can't handle null output matrix since block size needs to be specified.- Parameters:
src
- Input matrix.dst
- Output matrix.
-
convert
ConvertsDMatrixRBlock
intoDMatrixRMaj
- Parameters:
src
- Input matrix.dst
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
public static DMatrixSparseTriplet convert(DMatrix src, @Nullable @Nullable DMatrixSparseTriplet dst, double tol) -
convert
public static DMatrixSparseTriplet convert(DMatrixRMaj src, @Nullable @Nullable DMatrixSparseTriplet dst, double tol) -
convert
-
convert
-
convert
public static DMatrixSparseCSC convert(DMatrixRMaj src, @Nullable @Nullable DMatrixSparseCSC dst, double tol) Converts DMatrixRMaj into a DMatrixSparseCSC- Parameters:
src
- Original matrix that is to be converted.dst
- Storage for the converted matrix. If null a new instance will be returned.- Returns:
- The converted matrix
-
convert
public static DMatrixSparseCSC convert(DMatrixSparseTriplet src, @Nullable @Nullable DMatrixSparseCSC dst, @Nullable @Nullable IGrowArray histStorage) Converts DMatrixSparseTriplet into a DMatrixSparseCSC. Duplicate elements in triplet will result in an illegal matrix in output having duplicate elements.- Parameters:
src
- Original matrix which is to be copied. Not modified.dst
- Destination. Will be a copy. Modified.histStorage
- Workspace. Can be null.
-
convert
public static DMatrixSparseCSC convert(DMatrixSparseTriplet src, @Nullable @Nullable DMatrixSparseCSC dst) -
convert
public static DMatrixSparseTriplet convert(DMatrixSparseCSC src, @Nullable @Nullable DMatrixSparseTriplet dst)
-