protected override void DoRemainderByThis(double dividend, Matrix<double> result) { var denseResult = result as DenseMatrix; if (denseResult == null) { base.DoRemainderByThis(dividend, result); return; } CommonParallel.For(0, _values.Length, 4096, (a, b) => { var v = denseResult._values; for (int i = a; i < b; i++) { v[i] = dividend%_values[i]; } }); }