Last change
on this file since 15783 was
15783,
checked in by fholzing, 6 years ago
|
#2902: Changed from Cast to Iterator and adapted all occurrences.
|
File size:
345 bytes
|
Rev | Line | |
---|
[15783] | 1 | namespace HeuristicLab.Algorithms.DataAnalysis {
|
---|
| 2 | public static class DoubleArrayExtensions {
|
---|
| 3 | public static bool ContainsNanInf(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.