public MathOperationManager(MathType type) { this.MathType = type; if (type == MathType.GPU) { this.globalInstance = new GpuMathOperations(); } else { this.globalInstance = new CpuMathOperations(); } }