IsMNMatrix: Unterschied zwischen den Versionen

Aus JACK Wiki
Zur Navigation springen Zur Suche springen
Zeile 14: Zeile 14:


===Beispiele===
===Beispiele===
  isMNMatrix(matrix(matrixrow(0,1),matrixrow(2,3),matrixrow(4,5)),3,2)    --> returns True
  isMNMatrix(matrix(matrixrow(0,1),matrixrow(2,3),matrixrow(4,5)),3,2)    --> returns true
   
   
  isMNMatrix(matrix(matrixrow(0,1),matrixrow(2,3),matrixrow(4,5)),2,3)    --> returns False
  isMNMatrix(matrix(matrixrow(0,1),matrixrow(2,3),matrixrow(4,5)),2,3)    --> returns false
   
   
  isMNMatrix(2,3,4)    --> returns False
  isMNMatrix(2,3,4)    --> returns false


[[Kategorie:Evaluatorfunktion]][[Kategorie:Testfunktionen]]
[[Kategorie:Evaluatorfunktion]][[Kategorie:Testfunktionen]]

Version vom 25. September 2018, 09:50 Uhr

Beschreibung

isMNMatrix gibt wahr(true) zurück falls der erste Parameter eine Matrix ist und der zweite und dritte Parameter die Dimensionen der Matrix entsprechen, nicht wahr(false) ansonst.

Syntax

isMNMatrix(a, b, c)

Parameter

  • a - Matrix
  • b - M (Anzahl der Zeilen)
  • c - N (Anzahl der Spalten)

Return Value

  • Gibt True oder False zurück.

Beispiele

isMNMatrix(matrix(matrixrow(0,1),matrixrow(2,3),matrixrow(4,5)),3,2)    --> returns true

isMNMatrix(matrix(matrixrow(0,1),matrixrow(2,3),matrixrow(4,5)),2,3)    --> returns false

isMNMatrix(2,3,4)    --> returns false