From 26172c66cc90c6712ed717ec4f796f2a3a3104df Mon Sep 17 00:00:00 2001 From: chrdek Date: Tue, 5 Dec 2023 23:57:37 +0200 Subject: [PATCH] files ready for scloud online --- DataCalc.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/DataCalc.cs b/DataCalc.cs index e8ca968..97afcbf 100644 --- a/DataCalc.cs +++ b/DataCalc.cs @@ -138,7 +138,6 @@ public static IQueryable> CollEvenLength(this IQueryable - /// /// The leftmost string part to compare with /// The rightmost string part to compare against /// The hamming value to check per string comparison @@ -296,7 +295,7 @@ public static IQueryable SelectIntMatrix(this IQueryable source, Expression> transfMap = str => ConvertTo2Dim(new[] { str }.AsQueryable(), (int)Char.GetNumericValue(str.Length.ToString()[0]), - (int)(str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0]) + (str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0]) ); //default filtering part, returns full set of values as 2dim array nxm @@ -358,7 +357,7 @@ public static IQueryable SelectIntMatrix(this IQueryable source, Expression> transfMap = str => ConvertTo2Dim(new[] { str }.AsQueryable(), (int)Char.GetNumericValue(str.Length.ToString()[0]), - (int)(str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0]) + (str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0]) ); @@ -377,7 +376,7 @@ public static IQueryable SelectIntMatrix(this IQueryable source, .Select((_, index) => char.IsDigit(str[index]) ? (int)char.GetNumericValue(str[index]) : 0) .ToArray() .To2DArray(1, str.Length) - : ConvertTo2Dim(new[] { str }.AsQueryable(), (int)Char.GetNumericValue(str.Length.ToString()[0]), (int)(str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0])); + : ConvertTo2Dim(new[] { str }.AsQueryable(), (int)Char.GetNumericValue(str.Length.ToString()[0]), (str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0])); var executedSource = source.Select(changeStr); var resultArrays = executedSource.Select(transfMap.Compile());