The functions in this module are called by the BQ object, and in most cases shouldn’t need to be called directly by user code. However, they are provided here for reference.
Compute the Cholesky factorization of matrix \(C\) and store the result in \(L\). The lower part will contain the factorization; upper values could be anything.
Parameters : | C : float64_t[::1, :]
L : float64_t[::1, :]
|
---|---|
Returns : | out : 0 on success, -1 on failure |
Solve the equation \(AX=B\), where \(A\), \(X\), and \(B\) are matrices.
Parameters : | L : float64_t[::1, :]
B : float64_t[::1, :]
X : float64_t[::1, :]
|
---|---|
Returns : | out : 0 on success, -1 on failure |
Solve the equation \(Ax=b\), where \(A\) is a matrix and \(x\) and \(b\) are vectors.
Parameters : | L : float64_t[::1, :]
b : float64_t[::1]
x : float64_t[::1]
|
---|---|
Returns : | out : 0 on success, -1 on failure |
Compute the dot product between vectors \(x\) and \(y\).
Parameters : | x : float64_t[::1]
y : float64_t[::1]
|
---|---|
Returns : | out : dot product |
Compute the dot product between a vector \(x\) and a matrix \(Y\).
Parameters : | x : float64_t[::1]
Y : float64_t[::1, :]
xY : float64_t[::1]
|
---|---|
Returns : | out : 0 on success, -1 on failure |
Compute the dot product between a matrix \(X\) and a vector \(y\).
Parameters : | X : float64_t[::1, :]
y : float64_t[::1]
xY : float64_t[::1]
|
---|---|
Returns : | out : 0 on success, -1 on failure |
Compute the dot product between a matrix \(X\) and a vector \(y\).
Parameters : | X : float64_t[::1, :]
Y : float64_t[::1, :]
XY : float64_t[::1, :]
|
---|---|
Returns : | out : 0 on success, -1 on failure |
Compute the log determinant of a matrix \(A\) from its lower-triangular Cholesky factor \(L\).
Parameters : | L : float64_t[::1, :]
|
---|---|
Returns : | out : log-determinant |
Compute the Euclidean distance between two vectors \(x\) and \(y\).
Parameters : | x : float64_t[::1]
y : float64_t[::1]
|
---|---|
Returns : | out : Euclidean distance, \(\sqrt{\sum_i x_i^2 + y_i^2}\) |