Go to the documentation of this file.
69 #include <sphinxbase/sphinxbase_export.h>
80 SPHINXBASE_EXPORT
void norm_3d(float32 ***arr, uint32 d1, uint32 d2, uint32 d3);
90 SPHINXBASE_EXPORT
void
91 accum_3d(float32 ***out, float32 ***in, uint32 d1, uint32 d2, uint32 d3);
98 SPHINXBASE_EXPORT
void band_nz_1d(float32 *v, uint32 d1, float32 band);
108 SPHINXBASE_EXPORT
void floor_nz_3d(float32 ***m, uint32 d1, uint32 d2, uint32 d3, float32 floor);
116 SPHINXBASE_EXPORT
void floor_nz_1d(float32 *v, uint32 d1, float32 floor);
149 int32
invert(float32 **out_ainv, float32 **a, int32 len);
163 int32
solve(float32 **a, float32 *b,
164 float32 *out_x, int32 n);
175 void outerproduct(float32 **out_a, float32 *x, float32 *y, int32 len);
186 float32 **a, float32 **b,
205 void matrixadd(float32 **inout_a, float32 **b, int32 n);
Basic type definitions used in Sphinx.
SPHINXBASE_EXPORT void matrixmultiply(float32 **out_c, float32 **a, float32 **b, int32 n)
Multiply C=AB where A and B are symmetric matrices.
SPHINXBASE_EXPORT void norm_3d(float32 ***arr, uint32 d1, uint32 d2, uint32 d3)
Norm an array.
SPHINXBASE_EXPORT int32 solve(float32 **a, float32 *b, float32 *out_x, int32 n)
Solve (if possible) a positive-definite system of linear equations AX=B for X.
SPHINXBASE_EXPORT void outerproduct(float32 **out_a, float32 *x, float32 *y, int32 len)
Calculate the outer product of two vectors.
SPHINXBASE_EXPORT void scalarmultiply(float32 **inout_a, float32 x, int32 n)
Multiply a symmetric matrix by a constant in-place.
SPHINXBASE_EXPORT float64 determinant(float32 **a, int32 len)
Calculate the determinant of a positive definite matrix.
SPHINXBASE_EXPORT void band_nz_1d(float32 *v, uint32 d1, float32 band)
Ensures that non-zero values x such that -band < x < band, band > 0 are set to -band if x < 0 and ban...
SPHINXBASE_EXPORT void floor_nz_3d(float32 ***m, uint32 d1, uint32 d2, uint32 d3, float32 floor)
Floor 3-d array.
SPHINXBASE_EXPORT void accum_3d(float32 ***out, float32 ***in, uint32 d1, uint32 d2, uint32 d3)
Floor 3-d array.
SPHINXBASE_EXPORT int32 invert(float32 **out_ainv, float32 **a, int32 len)
Invert (if possible) a positive definite matrix with QR algorithm.
SPHINXBASE_EXPORT void matrixadd(float32 **inout_a, float32 **b, int32 n)
Add A += B.
SPHINXBASE_EXPORT void floor_nz_1d(float32 *v, uint32 d1, float32 floor)
Floor 1-d array.