Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/LibSVM/SVMExtensions.cs @ 2492

Last change on this file since 2492 was 2415, checked in by gkronber, 15 years ago

Updated LibSVM project to latest version. #774

File size: 353 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace 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.