/// <summary> /// Subtracts each element of the matrix from a scalar and stores the result in the result matrix. /// </summary> /// <param name="scalar">The scalar to subtract from.</param> /// <param name="result">The matrix to store the result of the subtraction.</param> protected void DoSubtractFrom(T scalar, Matrix <T> result) { DoNegate(result); result.DoAdd(scalar, result); }