Skip to content

Instantly share code, notes, and snippets.

Created May 8, 2012 20:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/2638963 to your computer and use it in GitHub Desktop.
minimal dense
#include <shogun/base/init.h>
#include <shogun/features/DenseFeatures.h>
using namespace shogun;
int main (int argc, char** argv) {
init_shogun_with_defaults();
int32_t num_feats = 10, num_vectors = 10;
SGMatrix< float64_t > mat = SGMatrix< float64_t >(num_feats, num_vectors);
CDenseFeatures< float64_t >* features = new CDenseFeatures< float64_t >(mat);
SG_UNREF(features);
exit_shogun();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment