Command Reference : Matrix Language Reference
  
 
@qform
Syntax: @qform(s, o)
Argument 1: sym
Argument 2: vector
Return: scalar
 
Syntax: @qform(s, o)
Argument 1: sym
Argument 2: matrix or sym
Return: sym
@qform returns the quadratic form of a symmetric matrix with another matrix, or vector. If S is the symmetric matrix, and v is a vector, @qform will return v’S*v, which results in a scalar. If S is symmetric matrix, and m is a matrix, then @qform returns m’S*m, which is a symmetric matrix.