예제 #1
0
 // Search returns the result of applying SearchFloat64s to the receiver and x.
 public static long Search(this Float64Slice p, double x)
 {
     return(SearchFloat64s(p, x));
 }
예제 #2
0
파일: sort.cs 프로젝트: zjmit/go2cs
 // Sort is a convenience method.
 public static void Sort(this Float64Slice p)
 {
     Sort(p);
 }
예제 #3
0
파일: sort.cs 프로젝트: zjmit/go2cs
 public static bool Less(this Float64Slice p, long i, long j)
 {
     return(p[i] < p[j] || isNaN(p[i]) && !isNaN(p[j]));
 }
예제 #4
0
파일: sort.cs 프로젝트: zjmit/go2cs
 public static void Swap(this Float64Slice p, long i, long j)
 {
     p[i] = p[j];
     p[j] = p[i];
 }
예제 #5
0
파일: sort.cs 프로젝트: zjmit/go2cs
 public static long Len(this Float64Slice p)
 {
     return(len(p));
 }