Package org.ejml.ops
Class FConvertMatrixStruct
java.lang.Object
org.ejml.ops.FConvertMatrixStruct
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 FMatrixRMaj
convert
(FMatrix2 input, @Nullable FMatrixRMaj output) ConvertsFMatrix2
intoFMatrixRMaj
.static FMatrixRMaj
convert
(FMatrix2x2 input, @Nullable FMatrixRMaj output) ConvertsFMatrix2x2
intoFMatrixRMaj
.static FMatrixRMaj
convert
(FMatrix3 input, @Nullable FMatrixRMaj output) ConvertsFMatrix3
intoFMatrixRMaj
.static FMatrixRMaj
convert
(FMatrix3x3 input, @Nullable FMatrixRMaj output) ConvertsFMatrix3x3
intoFMatrixRMaj
.static FMatrixRMaj
convert
(FMatrix4 input, @Nullable FMatrixRMaj output) ConvertsFMatrix4
intoFMatrixRMaj
.static FMatrixRMaj
convert
(FMatrix4x4 input, @Nullable FMatrixRMaj output) ConvertsFMatrix4x4
intoFMatrixRMaj
.static FMatrixRMaj
convert
(FMatrix5 input, @Nullable FMatrixRMaj output) ConvertsFMatrix5
intoFMatrixRMaj
.static FMatrixRMaj
convert
(FMatrix5x5 input, @Nullable FMatrixRMaj output) ConvertsFMatrix5x5
intoFMatrixRMaj
.static FMatrixRMaj
convert
(FMatrix6 input, @Nullable FMatrixRMaj output) ConvertsFMatrix6
intoFMatrixRMaj
.static FMatrixRMaj
convert
(FMatrix6x6 input, @Nullable FMatrixRMaj output) ConvertsFMatrix6x6
intoFMatrixRMaj
.static FMatrixSparseTriplet
convert
(FMatrix src, @Nullable FMatrixSparseTriplet dst, float tol) static FMatrixRMaj
convert
(FMatrixRBlock src, @Nullable FMatrixRMaj dst) ConvertsFMatrixRBlock
intoFMatrixRMaj
static FMatrix2
convert
(FMatrixRMaj input, @Nullable FMatrix2 output) ConvertsFMatrixRMaj
intoFMatrix2
static FMatrix2x2
convert
(FMatrixRMaj input, @Nullable FMatrix2x2 output) ConvertsFMatrixRMaj
intoFMatrix2x2
static FMatrix3
convert
(FMatrixRMaj input, @Nullable FMatrix3 output) ConvertsFMatrixRMaj
intoFMatrix3
static FMatrix3x3
convert
(FMatrixRMaj input, @Nullable FMatrix3x3 output) ConvertsFMatrixRMaj
intoFMatrix3x3
static FMatrix4
convert
(FMatrixRMaj input, @Nullable FMatrix4 output) ConvertsFMatrixRMaj
intoFMatrix4
static FMatrix4x4
convert
(FMatrixRMaj input, @Nullable FMatrix4x4 output) ConvertsFMatrixRMaj
intoFMatrix4x4
static FMatrix5
convert
(FMatrixRMaj input, @Nullable FMatrix5 output) ConvertsFMatrixRMaj
intoFMatrix5
static FMatrix5x5
convert
(FMatrixRMaj input, @Nullable FMatrix5x5 output) ConvertsFMatrixRMaj
intoFMatrix5x5
static FMatrix6
convert
(FMatrixRMaj input, @Nullable FMatrix6 output) ConvertsFMatrixRMaj
intoFMatrix6
static FMatrix6x6
convert
(FMatrixRMaj input, @Nullable FMatrix6x6 output) ConvertsFMatrixRMaj
intoFMatrix6x6
static FMatrixSparseCSC
convert
(FMatrixRMaj src, @Nullable FMatrixSparseCSC dst, float tol) Converts FMatrixRMaj into a FMatrixSparseCSCstatic FMatrixSparseTriplet
convert
(FMatrixRMaj src, @Nullable FMatrixSparseTriplet dst, float tol) static void
convert
(FMatrixRMaj src, FMatrixRBlock dst) ConvertsFMatrixRMaj
intoFMatrixRBlock
Can't handle null output matrix since block size needs to be specified.static void
Generic, but slow, conversion function.static FMatrixRMaj
convert
(FMatrixSparseCSC src, @Nullable FMatrixRMaj dst) static FMatrixSparseTriplet
convert
(FMatrixSparseCSC src, @Nullable FMatrixSparseTriplet dst) static FMatrixRMaj
convert
(FMatrixSparseTriplet src, @Nullable FMatrixRMaj dst) static FMatrixSparseCSC
convert
(FMatrixSparseTriplet src, @Nullable FMatrixSparseCSC dst) static FMatrixSparseCSC
convert
(FMatrixSparseTriplet src, @Nullable FMatrixSparseCSC dst, @Nullable IGrowArray histStorage) Converts FMatrixSparseTriplet into a FMatrixSparseCSC.
-
Constructor Details
-
FConvertMatrixStruct
public FConvertMatrixStruct()
-
-
Method Details
-
convert
Generic, but slow, conversion function.- Parameters:
input
- Input matrix.output
- Output matrix.
-
convert
ConvertsFMatrix2x2
intoFMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrix3x3
intoFMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrix4x4
intoFMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrix5x5
intoFMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrix6x6
intoFMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrixRMaj
intoFMatrix2x2
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrixRMaj
intoFMatrix3x3
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrixRMaj
intoFMatrix4x4
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrixRMaj
intoFMatrix5x5
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrixRMaj
intoFMatrix6x6
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrix2
intoFMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrix3
intoFMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrix4
intoFMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrix5
intoFMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrix6
intoFMatrixRMaj
.- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrixRMaj
intoFMatrix2
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrixRMaj
intoFMatrix3
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrixRMaj
intoFMatrix4
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrixRMaj
intoFMatrix5
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrixRMaj
intoFMatrix6
- Parameters:
input
- Input matrix.output
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
ConvertsFMatrixRMaj
intoFMatrixRBlock
Can't handle null output matrix since block size needs to be specified.- Parameters:
src
- Input matrix.dst
- Output matrix.
-
convert
ConvertsFMatrixRBlock
intoFMatrixRMaj
- Parameters:
src
- Input matrix.dst
- Output matrix. If null a new matrix will be declared.- Returns:
- Converted matrix.
-
convert
public static FMatrixSparseTriplet convert(FMatrix src, @Nullable @Nullable FMatrixSparseTriplet dst, float tol) -
convert
public static FMatrixSparseTriplet convert(FMatrixRMaj src, @Nullable @Nullable FMatrixSparseTriplet dst, float tol) -
convert
-
convert
-
convert
public static FMatrixSparseCSC convert(FMatrixRMaj src, @Nullable @Nullable FMatrixSparseCSC dst, float tol) Converts FMatrixRMaj into a FMatrixSparseCSC- 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 FMatrixSparseCSC convert(FMatrixSparseTriplet src, @Nullable @Nullable FMatrixSparseCSC dst, @Nullable @Nullable IGrowArray histStorage) Converts FMatrixSparseTriplet into a FMatrixSparseCSC. 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 FMatrixSparseCSC convert(FMatrixSparseTriplet src, @Nullable @Nullable FMatrixSparseCSC dst) -
convert
public static FMatrixSparseTriplet convert(FMatrixSparseCSC src, @Nullable @Nullable FMatrixSparseTriplet dst)
-