You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

To use these functions the Matrix Feature is required.

The matrix feature provides arbitrary functions to work with matrices in a data stream and provides algebraic operator (+, *, -, ^) to perform matrix addition, subtraction, multiplication, and exponentiation.

Matrix Example
SELECT [1.0,2.0,3.0;4.0,5.0,6.0]+[1.0,2.0,3.0;4.0,5.0,6.0] FROM stream
SELECT [1.0,2.0,3.0;4.0,5.0,6.0]-[1.0,2.0,3.0;4.0,5.0,6.0] FROM stream
SELECT [1.0,2.0,3.0;4.0,5.0,6.0]*[1.0,2.0,3.0;4.0,5.0,6.0] FROM stream
SELECT [1.0,2.0,3.0;4.0,5.0,6.0]^3 FROM stream

Tr(Matrix)

Computes the trace of the matrix

Det(Matrix)

Computes the determinant of the given matrix

Inv(Matrix)

Computes the inverse of the given matrix

Trans(Matrix)

Computes the transpose of the given matrix

Identity(dimension)

Creates a dimension x dimension identity matrix

sMin(Matrix|Vector)

Return the minimum element in the given matrix.

sMax(Matrix|Vector)

Returns the maximum element in the given matrix.

sCount(Matrix|Vector)

Counts all elements in the given matrix.

sSum(Matrix|Vector)

Computes the sum of all elements of the given matrix.

sAVG(Matrix|Vector)

Compute the average of all elements of the given matrix.

  • No labels