public void MatrixMultiply(int rowsX, int columnsX, double[] x, int rowsY, int columnsY, double[] y, double[] result) { if (columnsX != rowsY || rowsX * columnsY != result.Length) { ThrowHelper.ThrowDimensionDontMatchException(); } MklNativeMethod.dMatrixMatrixProduct(CBLAS_TRANSPOSE.CblasNoTrans, CBLAS_TRANSPOSE.CblasNoTrans, rowsX, columnsX, columnsY, x, y, 1, 0, result); }
public void VectorDotProduct(double[] x, double[] y, double result) { result = MklNativeMethod.dVectorDotProduct(x, y, x.Length); }
public void ArrayMultiply(double scalar, double[] x, double[] result) { x.CopyToWithoutCheck(result); MklNativeMethod.dVectorScalarProduct(result, result.Length, scalar); }
public void ArraySubtract(double[] x, double[] y, double[] result) { MklNativeMethod.dVectorSub(x, y, x.Length, result); }
public void ArrayAdd(double[] x, double[] y, double[] result) { MklNativeMethod.dVectorAdd(x, y, x.Length, result); }