A class for matrix operations.
More...
#include <MatrixOps.hpp>
|
template<class T > |
void | mulProxy (JNIEnv *env, jarray lhsV, jarray rhsV, jint lhsR, jint rhsC, jarray dstV, T zero, jboolean complex) |
|
template<class T > |
void | mul (const T *lArr, const T *rArr, jint inner, T *outArr, jint lr, jint rc, T zero) |
|
template<class T > |
void | diagProxy (JNIEnv *env, jarray srcV, jarray dstV, jint size, jboolean complex) |
|
template<class T > |
void | diag (const T *srcArr, T *dstArr, jint size) |
|
|
static void | mul (JNIEnv *env, jobject thisObj, jdoubleArray lhsV, jdoubleArray rhsV, jint lhsR, jint rhsC, jdoubleArray dstV, jboolean complex) |
| Multiplies two matrices. More...
|
|
template<class T > |
static void | mul (const T *lArr, const T *rArr, jint inner, T *outArr, jint lr, jint rc, T zero) |
| Computes the product of two matrices. More...
|
|
static void | diag (JNIEnv *env, jobject thisObj, jdoubleArray srcV, jdoubleArray dstV, jint size, jboolean complex) |
| Gets the diagonal of a matrix. More...
|
|
template<class T > |
static void | diag (const T *srcArr, T *dstArr, jint size) |
| Computes the diagonal of a matrix. More...
|
|
A class for matrix operations.
void MatrixOps::diag |
( |
JNIEnv * |
env, |
|
|
jobject |
thisObj, |
|
|
jdoubleArray |
srcV, |
|
|
jdoubleArray |
dstV, |
|
|
jint |
size, |
|
|
jboolean |
complex |
|
) |
| |
|
static |
Gets the diagonal of a matrix.
- Parameters
-
env | the JNI environment. |
thisObj | this object. |
srcV | source values. |
dstV | destination values. |
size | the matrix size. |
complex | whether the operation is complex-valued. |
template<class T >
static void MatrixOps::diag |
( |
const T * |
srcArr, |
|
|
T * |
dstArr, |
|
|
jint |
size |
|
) |
| |
|
inlinestatic |
Computes the diagonal of a matrix.
- Parameters
-
srcArr | the source array. |
dstArr | the destination array. |
size | the matrix size. |
void MatrixOps::mul |
( |
JNIEnv * |
env, |
|
|
jobject |
thisObj, |
|
|
jdoubleArray |
lhsV, |
|
|
jdoubleArray |
rhsV, |
|
|
jint |
lhsR, |
|
|
jint |
rhsC, |
|
|
jdoubleArray |
dstV, |
|
|
jboolean |
complex |
|
) |
| |
|
static |
Multiplies two matrices.
- Parameters
-
env | the JNI environment. |
thisObj | this object. |
lhsV | the left hand side values. |
rhsV | the right hand side values. |
lhsR | the row count of the result. |
rhsC | the column count of the result. |
dstV | the destination values. |
complex | whether the operation is complex-valued. |
template<class T >
static void MatrixOps::mul |
( |
const T * |
lArr, |
|
|
const T * |
rArr, |
|
|
jint |
inner, |
|
|
T * |
outArr, |
|
|
jint |
lr, |
|
|
jint |
rc, |
|
|
T |
zero |
|
) |
| |
|
inlinestatic |
Computes the product of two matrices.
- Parameters
-
lArr | the left hand side array. |
rArr | the right hand side array. |
inner | the inner dimension size. |
outArr | the output array. |
lr | the left hand side row count. |
rc | the right hand side column count. |
zero | the representation of 0. |