Tagging Test Post

Trying to tag without picking a category. Looks like it doesn’t work. Picked publicity, but we probably need one that covers the Discourse interface itself, or at least a catch-all.

By the way, @syclik, what’s with all the badges? We don’t need no - stinkin’ badges :stuck_out_tongue_closed_eyes:

just fyi, I’m going to get rid of the “tagging” tag. I really want to keep tags and categories down to a minimum. There shouldn’t be a maze of options just to post.

Agreed. But you should have some wider categories to catch things we didn’t think of.

I just added a “General” category.

How about “bug” and “feature request” as well, or does that all fall under “Interfaces”?

Those definitely fall under interfaces. We should add those tags, huh?

Bugs don’t exist in the ether. Nor do feature requests. They need to be attached to something – either an interface, the Stan language, the math library. But something.

Testing code markup. Would be nice to have something like crayon for wordpress.

#include <RcppEigen.h>
#include <algorithm> 

// [[Rcpp::depends(RcppEigen)]]

using namespace Rcpp;

using Eigen::Map;            // 'maps' rather than copies 
using Eigen::MatrixXd;       // variable size matrix, double precision
using Eigen::VectorXd;      // variable size vector, complex double precision
using Eigen::EigenSolver;    // general real eigenvalue solvers

const double tol = 1E-12;

// [[Rcpp::export]]
bool Eigentest(Map<MatrixXd> M) {
  EigenSolver<MatrixXd> es(M);
  VectorXd E = es.eigenvalues().real();
  return (E.maxCoeff() < tol);

// [[Rcpp::export]]
bool MMULT(MatrixXd M) {
  std::size_t n = M.rows();
  MatrixXd A = M;
  int i = 0;
  do {
    A *= M;
  } while (A.sum() > tol && i < n);
  return(A.sum() < tol);

Really happening place y’all have here, @syclik :stuck_out_tongue_closed_eyes: