Skip to content

Commit

Permalink
add VectorTest example
Browse files Browse the repository at this point in the history
  • Loading branch information
sploving committed Aug 3, 2011
1 parent b8ead09 commit a8175a3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions examples/undocumented/csharp_modular/VectorTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;

public class VectorTest
{
public static void Main(string[] args) {
modshogun.init_shogun_with_defaults();

double[] y = new double[4] {1, 2, 3, 4};
Labels x = new Labels(y);
double[] r = x.get_labels();
for (int i = 0; i < r.Length; i++) {
Console.WriteLine(r[i]);
}

modshogun.exit_shogun();

}
}

0 comments on commit a8175a3

Please sign in to comment.