Skip to content
Commit 20fe6987 authored by Karl Rupp's avatar Karl Rupp
Browse files

Added diag() for extracting a diagonal (or off-diagonal) of a matrix, or for...

Added diag() for extracting a diagonal (or off-diagonal) of a matrix, or for generating a square matrix out of a vector with the specified (off-)diagonal.

Same functionality as MATLAB's diag() function. Supports all three backends.
parent 4728dbcd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment