R/libqe-package.R
libqe-package.RdHeader-only C++ library providing shared computational primitives for
rENA, tma, and other Quantitative Ethnography packages. Exposes four
modules via Rcpp-wrapped lq_* functions:
Upper-triangle index pairs and vector/matrix conversions.
See lq_tri_indices, lq_vector_to_upper_tri,
lq_svector_to_upper_tri.
Row-wise L2 sphere norm and max-norm scaling.
See lq_sphere_norm, lq_skip_sphere_norm.
Column centering, ENA correlation, and least-squares node
positions (undirected and directed).
See lq_center_data, lq_ena_correlation,
lq_lws_lsq_positions, lq_directed_node_positions.
Stanza-window (rENA) and ground/response/tensor (tma)
accumulation primitives.
See lq_stanza_window, lq_accumulate_unit,
lq_apply_tensor.
Using libqe headers in your own R package:
Add to DESCRIPTION:
LinkingTo: Rcpp, RcppArmadillo, libqe
Then in your .cpp source:
// [[Rcpp::depends(RcppArmadillo, libqe)]]
#include <RcppArmadillo.h>
#include <libqe/libqe.hpp>