Operations that combine an expression with fixed data — a registered parameter node or a constant matrix — so the data can flow through the differentiated graph (and, for parameters, be updated between evaluations).
Arguments
- param
a parameter expression handle (see
sd_parameter).- child
an expression handle (the variable argument).
- Qp, Qi, Qx
the column-pointer, row-index and value arrays of a compressed-sparse-column matrix \(Q\) (as in a
Matrix::dgCMatrix:@p,@i,@x) forsd_quad_form's \(x^\top Q x\).- Ap, Ai, Ax
the compressed-sparse-column arrays of a constant matrix \(A\) for the sparse matrix products.
- ncol
number of columns of the sparse constant matrix \(A\).
- m, n
row and column dimensions of the dense constant matrix.
- data
the dense constant-matrix entries (length
m * n, column-major).
Details
sd_scalar_mult,sd_vector_multmultiply a child by a scalar / vector parameter.
sd_convolveconvolution of a parameter kernel with a child.
sd_quad_formthe quadratic form \(x^\top Q x\) with sparse constant \(Q\).
sd_left_matmul,sd_right_matmulleft / right product with a sparse constant matrix \(A\).
sd_left_matmul_dense,sd_right_matmul_denseleft / right product with a dense constant matrix.
