Arithmetic Operators
From Jacket Wiki
(Redirected from LDIVIDE)
Back to Function List, Jacket DLA, Jacket SLA
Matrix and array arithmetic
Usage
Notes
- / - Matrix Right Divide (MRDIVIDE) - B is restricted to scalars.
- \ - Matrix Left Divide (MLDIVIDE) - Does not support empty inputs.
- \ - Matrix Left Divide (MLDIVIDE) - For M<N, CPU-based MATLAB returns a solution with the maximum number of trailing zeros. On the other hand, the LAPACK function SGELS returns a minimum norm solution, which is what Jacket returns for MLDIVIDE on the GPU. Therefore, it is important to adjust for this difference as needed.
- ^ - Matrix Power (MPOWER) - Inputs must be non-sparse and square. The power must be a MATLAB scalar.
- With Base Jacket, MLDIVIDE and MPOWER are supported for real, single inputs only. MPOWER is supported for positive powers only.
- With Jacket DLA, MLDIVIDE and MPOWER are supported for single and double precision and for real and complex inputs. MPOWER is supported for positive and negative powers.
- With Jacket SLA, MTIMES, TRANSPOSE and CTRANSPOSE are supported for sparse matrices.
- MTIMES is only supported for A * B when A is sparse, B is dense.
- Check out some MTIMES benchmarks using Jacket
- When used with GCOMPILE all arithmetic operations are performed element-wise.
See Also
CHOL, DET, INV, LU, ORTH, PERMUTE, IPERMUTE, QR, RREF, LINSOLVE, NTHROOT, REALPOW
Categories: JACKET | Jacket DLA | Jacket SLA | GFOR | GCOMPILE | Functions | Mathematics | Arrays and Matrices | Operators