Difference between revisions of "Array.$diag()"

From ZCubes Wiki
Jump to navigation Jump to search
 
Line 4: Line 4:
  
  
==Array.$diag(nthDiagonalIndex,Function|Array of Functions[,param1,param2,...]) ==
+
==Array.$diag(Function|Array of Functions[,param1,param2,...]) ==
  
Extracts the diagonal at nthDiagonalIndex (-ve for diagonals below the proper diagonal, and zero for the proper diagonal), and applies the functions give as the second parameter.
+
Applies the functions given as the second parameter on the proper diagonal.
  
 
Same as [[ Array.$d() | Array.$d()]]
 
Same as [[ Array.$d() | Array.$d()]]
 +
 +
==Related Functions==
 +
[[ Array.diagonal() | Array.diagonal()]]

Latest revision as of 11:11, 10 April 2020


Array.$diag(Function|Array of Functions[,param1,param2,...])

Applies the functions given as the second parameter on the proper diagonal.

Same as Array.$d()

Related Functions

Array.diagonal()