source:
branches/2839_HiveProjectManagement/HeuristicLab.Algorithms.DataAnalysis/3.4/DoubleArrayExtensions.cs
@
17334
Last change on this file since 17334 was 16057, checked in by jkarder, 6 years ago | |
---|---|
File size: 352 bytes |
Rev | Line | |
---|---|---|
[15783] | 1 | namespace HeuristicLab.Algorithms.DataAnalysis { |
2 | public static class DoubleArrayExtensions { | |
[15786] | 3 | public static bool ContainsNanOrInfinity(this double[,] array) { |
[15783] | 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.