Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

Matrix Arithmetic Operations
[Data Manipulation]

Collaboration diagram for Matrix Arithmetic Operations:


Files

file  psBinaryOp.h
 Provides binary functions for simple matrix and vector element operations. Functions include:.
file  psUnaryOp.h
 Provides unary functions for simple matrix and vector element operations. Functions include:.

Functions

psTypepsBinaryOp (psPtr out, psPtr in1, char *op, psPtr in2)
 Perform simple binary arithmetic with images or vectors.
psTypepsUnaryOp (psPtr out, psPtr in, char *op)
 Perform simple unary arithmetic with images or vectors.


Function Documentation

psType* psBinaryOp psPtr  out,
psPtr  in1,
char *  op,
psPtr  in2
 

Perform simple binary arithmetic with images or vectors.

Performs addition, subtraction, multiplication, division, power, minumum, and maximum arithmetic operations with images and vectors. Uses the form:

out = in1 op in2,

Where op is: "=", "+", "-", "*", "/", "^", "min", or "max"

This function only supports vector-vector or image-image operations.

Returns:
psType* : Pointer to either psImage or psVector.
Parameters:
out  Output type, either psImage or psVector.
in1  First input, either psImage or psVector.
op  Operator.
in2  Second input, either psImage or psVector.

psType* psUnaryOp psPtr  out,
psPtr  in,
char *  op
 

Perform simple unary arithmetic with images or vectors.

Performs absolute value, exponent, natural log, power of 10, log, sine, cosine, tangent, arcsine, arccosine, or arctan. operations with images and vectors. Uses the form:

out = op(in),

Where op is: "abs", "exp", "ln", "ten", "log", "sin", "cos", "tan" "asin", "acos", "atan", "dsin", "dcos", dtan", "dasin", "dacos", or "datan".

Trigometric Operations with "d" prefix use units of degrees. Those without are in radians.

This function only supports vector-vector or image-image opertions.

Returns:
psType* : Pointer to either psImage or psVector.
Parameters:
out  Output type, either psImage or psVector.
in  Input, either psImage or psVector.
op  Operator.


Generated on Wed Jun 15 11:01:15 2005 for Pan-STARRS Foundation Library by  doxygen 1.4.1