Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/DoubleArrayExtensions.cs @ 17189

Last change on this file since 17189 was 16538, checked in by bwerth, 6 years ago

#2847 renamed branch to include ticket number; merged current trunk version into branch; updated Build.cmd and Build.ps1

File size: 352 bytes
Line 
1namespace HeuristicLab.Algorithms.DataAnalysis {
2  public static class DoubleArrayExtensions {
3    public static bool ContainsNanOrInfinity(this double[,] array) {
4      foreach (var entry in array) {
5        if (double.IsNaN(entry) || double.IsInfinity(entry)) {
6          return true;
7        }
8      }
9      return false;
10    }
11  }
12}
Note: See TracBrowser for help on using the repository browser.