view examples/myfunc.c @ 19076:534511deb10e stable

Use %!testif HAVE_CHOLMOD for sparse chol test added in cset 161b11e7da2d * chol.cc: Use %!testif HAVE_CHOLMOD for chol %!test on sparse data that was added in cset 161b11e7da2d.
author Mike Miller <mtmiller@ieee.org>
date Tue, 01 Jul 2014 21:55:15 -0400
parents 224e76250443
children
line wrap: on
line source

#include "mex.h"

void
mexFunction (int nlhs, mxArray *plhs[],
             int nrhs, const mxArray *prhs[])
{
  const char *nm;

  nm = mexFunctionName ();
  mexPrintf ("You called function: %s\n", nm);
  if (strcmp (nm, "myfunc") == 0)
    mexPrintf ("This is the principal function\n", nm);

  return;
}