Skip to content

Commit

Permalink
Attempting to fix mono tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarsouza committed Apr 21, 2019
1 parent eabf844 commit 62fd8e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Accord.Math/Matrix/Matrix.Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ public static bool IsEqual(this Array objA, Array objB, double atol = 0, double
// http://blog.slaks.net/2015-06-26/code-snippets-fast-property-access-reflection/

// Check if there is already an optimized method to perform this comparison
#if !NETSTANDARD1_4
Type typeA = objA.GetType();
Type typeB = objB.GetType();

#if !NETSTANDARD1_4
MethodInfo equals = typeof(Matrix).GetMethod("IsEqual", new Type[] {
typeA, typeB, typeof(double), typeof(double)
});
Expand All @@ -231,7 +231,7 @@ public static bool IsEqual(this Array objA, Array objB, double atol = 0, double
#endif

// Base case: arrays contain elements of same nature (both arrays, or both values)
if (objA.GetType().GetElementType().IsArray == objB.GetType().GetElementType().IsArray)
if (typeA.GetElementType().IsArray == typeB.GetElementType().IsArray)
{
var a = objA.GetEnumerator();
var b = objB.GetEnumerator();
Expand Down

0 comments on commit 62fd8e0

Please sign in to comment.