blockMatrixMax

Output vector of row- or column-wise maximum of the input matrix

Information

If rowMax = true, this block outputs the row-wise maximum of the input matrix u, otherwise it outputs the column-wise maximum of the input matrix u.

Parameters

TypeNameDefaultDescription
BooleanrowMaxtrueIf true, outputs row-wise maximum, otherwise column-wise
IntegernRowNumber of rows in input matrix
IntegernColNumber of columns in input matrix

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.RealInput[nRow,nCol]uInput for the matrix max function
Buildings.Controls.OBC.CDL.Interfaces.RealOutput[if rowMax then size(u, 1) else size(u, 2)]yOutput with vector of row- or colum-wise maximum of the input matrix

Revisions

  • May 17, 2019, by Milica Grahovac:
    First implementation.