source:
branches/Persistence Test/LibSVM/SVMExtensions.cs
@
4023
Last change on this file since 4023 was 2415, checked in by gkronber, 15 years ago | |
---|---|
File size: 353 bytes |
Line | |
---|---|
1 | using System; |
2 | using System.Collections.Generic; |
3 | using System.Linq; |
4 | using System.Text; |
5 | |
6 | namespace SVM |
7 | { |
8 | internal static class SVMExtensions |
9 | { |
10 | public static void SwapIndex<T>(this T[] list, int i, int j) |
11 | { |
12 | T tmp = list[i]; |
13 | list[i] = list[j]; |
14 | list[j] = tmp; |
15 | } |
16 | } |
17 | } |
Note: See TracBrowser
for help on using the repository browser.