Difference between revisions of "Manuals/calci/DIAGONALWITH"

From ZCubes Wiki
Jump to navigation Jump to search
Line 4: Line 4:
  
 
==Description==
 
==Description==
*This function gives the matrix satisfying the diagonal properties.  
+
* This function gives the matrix satisfying the diagonal properties.  
*An diagonal matrix is a matrix where all the entries are zero on the main diagonal going from the upper left corner to the lower right corner (<math>\searrow</math>).
+
* An diagonal matrix is a matrix where all the entries are zero on the main diagonal going from the upper left corner to the lower right corner (<math>\searrow</math>).
*In Diagonalwith, all the elements on main diagonal are filled with the given Properties rather than by 0.
+
* In Diagonalwith, all the elements on main diagonal are filled with the given Properties rather than by 0.
*A diagonal matrix is a square matrix which is of the form <math>a_{ij}=c_{i} \delta_{ij}</math> where <math>\delta_{ij}</math> is the Kronecker delta, <math>c_{i}</math> are constants, and i,j=1, 2, ..., n.  
+
* "ZERO" is a default Property.
 
+
** Types of Properties:
*The general diagonal matrix is of the form:
+
  case "POSITIVE":
<math>\begin{bmatrix}
+
  case "NEGATIVE":
c_{1} & 0  & \cdots & 0      \\
+
  case "NATURAL":
0 & c_{2} & \cdots & 0 \\
+
  case "POSITIVE:INTEGER":
\vdots & \vdots &\ddots & \vdots \\
+
  case "NEGATIVE:INTEGER":
0 & 0 & \cdots & c_{n}
+
  case "INTEGER":
\end{bmatrix} </math>
+
  case "NEGZEROPOS":
*So the main diagonal entries are need not to be zero and off-diagonal entries are zero.
+
  case "VALUE":
 +
  case "LIST":
 +
  case "SERIES":
 +
  case "SEED":
 +
  case "FUNCTION":
 +
  case "ZERO":
 +
  case "ZEROS":

Revision as of 06:17, 11 January 2018

DIAGONALWITH(Matrix,Properties,Seed,Offset,FillTypeAntiColumnOrRow)


  • is any nxn square matrix.


Description

  • This function gives the matrix satisfying the diagonal properties.
  • An diagonal matrix is a matrix where all the entries are zero on the main diagonal going from the upper left corner to the lower right corner ().
  • In Diagonalwith, all the elements on main diagonal are filled with the given Properties rather than by 0.
  • "ZERO" is a default Property.
    • Types of Properties:
  case "POSITIVE":
  case "NEGATIVE":
  case "NATURAL":
  case "POSITIVE:INTEGER":
  case "NEGATIVE:INTEGER":
  case "INTEGER":
  case "NEGZEROPOS":
  case "VALUE":
  case "LIST":
  case "SERIES":
  case "SEED":
  case "FUNCTION":
  case "ZERO":
  case "ZEROS":