If(false){ }
-
Here is a snippet from a set of GPU routines called GraphiXNA. I'll probably not use that for now...
if ((Weights.Length % 1) == 1)
{
throw new ArgumentException("Array length must be odd.");
}http://graphixna.codeplex.com/SourceControl/changeset/view/12148#186731
It is no longer open source and his new server is not reachable...
-
Well, it used to say "% 2" but then it kept showing up for odd numbers, so it was changed to "% 1". It's much better now.
-
I'm not 100% sure of this comment either:
"//To loop through arrays, it's more efficent to write Weights.Length than writing 15;"
-
@hallo.amt said:
I would say his diagnostic is correct. If the array length, modulo one, equals one, something is very odd indeed about it.Here is a snippet from a set of GPU routines called GraphiXNA. I'll probably not use that for now...
if ((Weights.Length % 1) == 1)
{
throw new ArgumentException("Array length must be odd.");
}