Expand description
Matrix operations for MATLAB-compatible arithmetic
Implements element-wise and matrix operations following MATLAB semantics.
Functions§
- complex_
matrix_ power - Complex matrix power: C = A^n (for positive integer n) Uses binary exponentiation with complex matrix multiply
- matrix_
add - Matrix addition: C = A + B
- matrix_
eye - Create identity matrix
- matrix_
mul - Matrix multiplication: C = A * B
- matrix_
power - Matrix power: C = A^n (for positive integer n) This computes A * A * … * A (n times) via repeated multiplication
- matrix_
scalar_ mul - Scalar multiplication: C = A * s
- matrix_
sub - Matrix subtraction: C = A - B
- matrix_
transpose - Matrix transpose: C = A’
- value_
matmul - GPU-aware matmul entry: if both inputs are GpuTensor handles, call provider; otherwise fall back to CPU.