public static NDArray Dot(NDArray lhs, NDArray rhs, bool lconj = false, bool rconj = false) { IntPtr ptr; Internal.VERIFY(AFBlas.af_dot(out ptr, lhs._ptr, rhs._ptr, lconj ? af_mat_prop.AF_MAT_CONJ : af_mat_prop.AF_MAT_NONE, rconj ? af_mat_prop.AF_MAT_CONJ : af_mat_prop.AF_MAT_NONE)); return(new NDArray(ptr)); }
public static Array Transpose(Array arr, bool conjugate) { IntPtr ptr; Internal.VERIFY(AFBlas.af_transpose(out ptr, arr._ptr, conjugate)); return(new Array(ptr)); }
public static Array Multiply(Array lhs, Array rhs, MatMulOp lop = MatMulOp.None, MatMulOp rop = MatMulOp.None) { IntPtr ptr; Internal.VERIFY(AFBlas.af_matmul(out ptr, lhs._ptr, rhs._ptr, (af_mat_prop)lop, (af_mat_prop)rop)); return(new Array(ptr)); }
public static Array MatMul(Array lhs, Array rhs, bool lconj = false, bool rconj = false) { IntPtr ptr; Internal.VERIFY(AFBlas.af_matmul(out ptr, lhs._ptr, rhs._ptr, lconj ? af_mat_prop.AF_MAT_CONJ : af_mat_prop.AF_MAT_NONE, rconj ? af_mat_prop.AF_MAT_CONJ : af_mat_prop.AF_MAT_NONE)); return(new Array(ptr)); }
public static void TransposeInPlace(Array arr, bool conjugate) { Internal.VERIFY(AFBlas.af_transpose_inplace(arr._ptr, conjugate)); }