Created
May 8, 2012 20:16
-
-
Save anonymous/2638963 to your computer and use it in GitHub Desktop.
minimal dense
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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