Functions | |
| void * | libra_new (const unsigned int byteCount) |
| allocates count bytes of memory from computer main memory. | |
| void | libra_delete (const void *memory) |
| free the memory allocated using libra_new. | |
| gVar | scalar (double value, gDataType type=GDEFAULT) |
| creates a Scalar of gDataType type. | |
| gVar | scalar (float value, gDataType type=GDEFAULT) |
| creates a Scalar of gDataType type. | |
| gVar | scalar (int value, gDataType type=GDEFAULT) |
| creates a Scalar of gDataType type. | |
| gVar | scalar (bool value, gDataType type=GDEFAULT) |
| creates a Scalar of gDataType type. | |
| gVar | complex (double realValue, double imagenaryValue=0.0, gDataType type=GDEFAULT) |
| creates a Complex Scalar of gDataType type. | |
| gVar | complex (float realValue, float imagenaryValue=0.0f, gDataType type=GDEFAULT) |
| creates a Complex Scalar of gDataType type. | |
| gVar | complex (int realValue, int imagenaryValue=0, gDataType type=GDEFAULT) |
| creates a Complex Scalar of gDataType type. | |
| gVar | sparse (float *values, int *rows, int *columns, int nz, gDataType type=GDEFAULT) |
| creates a sparse matrix, with input in Coordinate format. | |
| gVar | sparse (double *values, int *rows, int *columns, int nz, gDataType type=GDEFAULT) |
| creates a sparse matrix, with input in Coordinate format. | |
| gVar | sparseCSC (float *values, int *rows, int *colIndex, int nz, gDataType type=GDEFAULT) |
| creates a sparse matrix, with input in Compressed Sparse Column (CSC) format. | |
| gVar | sparseCSC (double *values, int *rows, int *colIndex, int nz, gDataType type=GDEFAULT) |
| creates a sparse matrix, with input in Compressed Sparse Column (CSC) format. | |
| gVar | sparseCSR (float *values, int *columns, int *rowIndex, int nz, gDataType type=GDEFAULT) |
| creates a sparse matrix, with input in Compressed Sparse Row (CSR) format. | |
| gVar | sparseCSR (double *values, int *columns, int *rowIndex, int nz, gDataType type=GDEFAULT) |
| creates a sparse matrix, with input in Compressed Sparse Row (CSR) format. | |
| gVar | sparseBanded (int rowCount, int columnCount, float **values, int *positions, int bandCount, gDataType type=GDEFAULT) |
| creates a sparse matrix, with input in Coordinate (Coord) format. | |
| gVar | sparseBanded (int rowCount, int columnCount, double **values, int *positions, int bandCount, gDataType type=GDEFAULT) |
| creates a sparse matrix, with input in Coordinate (Coord) format. | |
| gVar | complexSparse (float *values, int *rows, int *columns, int nz, gDataType type=GDEFAULT) |
| creates a sparse matrix, with input in Coordinate format. | |
| gVar | complexSparse (double *values, int *rows, int *columns, int nz, gDataType type=GDEFAULT) |
| creates a sparse matrix, with input in Coordinate format. | |
| gVar | complexSparseCSC (float *values, int *rows, int *colIndex, int nz, gDataType type=GDEFAULT) |
| creates a sparse matrix, with input in Compressed Sparse Column (CSC) format. | |
| gVar | complexSparseCSC (double *values, int *rows, int *colIndex, int nz, gDataType type=GDEFAULT) |
| creates a sparse matrix, with input in Compressed Sparse Column (CSC) format. | |
| gVar | complexSparseCSR (float *values, int *columns, int *rowIndex, int nz, gDataType type=GDEFAULT) |
| creates a sparse matrix, with input in Compressed Sparse Row (CSR) format. | |
| gVar | complexSparseCSR (double *values, int *columns, int *rowIndex, int nz, gDataType type=GDEFAULT) |
| creates a sparse matrix, with input in Compressed Sparse Row (CSR) format. | |
| gVar | complexSparseBanded (int rowCount, int columnCount, float **values, int *positions, int bandCount, gDataType type=GDEFAULT) |
| creates a sparse matrix, with input in Coordinate (Coord) format. | |
| gVar | complexSparseBanded (int rowCount, int columnCount, double **values, int *positions, int bandCount, gDataType type=GDEFAULT) |
| creates a sparse matrix, with input in Coordinate (Coord) format. | |
| gVar | eye (int count, gDataType type=GDEFAULT) |
| creates an identity matrix. | |
| gVar | eye (int rowCount, int columnCount, gDataType type=GDEFAULT) |
| creates an identity matrix. | |
| gVar | complexEye (int count, gDataType type=GDEFAULT) |
| creates an identity matrix. | |
| gVar | complexEye (int rowCount, int columnCount, gDataType type=GDEFAULT) |
| creates an identity matrix. | |
| gVar | ones (int rowCount, int columnCount, gDataType type=GDEFAULT) |
| creates a matrix whose elements are all 1. | |
| gVar | ones (int count, gDataType type=GDEFAULT) |
| creates a matrix whose elements are all 1. | |
| gVar | ones (gDataType type=GDEFAULT) |
| creates a scalar with value 1. | |
| gVar | zeros (int rowCount, int columnCount, gDataType type=GDEFAULT) |
| creates a matrix whose elements are all 0. | |
| gVar | zeros (int count, gDataType type=GDEFAULT) |
| creates a matrix whose elements are all 0. | |
| gVar | zeros (gDataType type=GDEFAULT) |
| creates a scalar with value 0. | |
| gVar | complexOnes (int rowCount, int columnCount, gDataType type=GDEFAULT) |
| creates a matrix whose elements are all 1. | |
| gVar | complexOnes (int count, gDataType type=GDEFAULT) |
| creates a matrix whose elements are all 1. | |
| gVar | complexOnes (gDataType type=GDEFAULT) |
| creates a scalar with value 1. | |
| gVar | complexZeros (int rowCount, int columnCount, gDataType type=GDEFAULT) |
| creates a matrix whose elements are all 0. | |
| gVar | complexZeros (int count, gDataType type=GDEFAULT) |
| creates a matrix whose elements are all 0. | |
| gVar | complexZeros (gDataType type=GDEFAULT) |
| creates a scalar with value 0. | |
| gVar | indexmap (int rowCount, int columnCount, float rowCoeff, float colCoeff, float offs, gDataType type=GDEFAULT) |
| creates an object where the element values are a linear function of ther row, column index. | |
| gVar | step (float from, float to, float stride=1, gDataType type=GDEFAULT) |
| creates a vector which elements are in a sequence | |
| gVar | rand (int rowCount, int columnCount, gDataType type=GDEFAULT) |
| creates a matrix filled with random values. | |
| gVar | rand (int count, gDataType type=GDEFAULT) |
| creates a matrix filled with random values. | |
| gVar | complexRand (int count, gDataType type=GDEFAULT) |
| creates a matrix filled with random values. | |
| gVar | operator * (const gVar &var1, const gVar &var2) |
| perform matrix multiply. | |
| gVar & | operator *= (gVar &var1, const gVar &var2) |
| perform matrix multiply and assign result to var1. | |
| gVar | operator * (double d, const gVar &var2) |
| perform multiply, element by element. | |
| gVar | operator * (const gVar &var1, double d) |
| perform multiply, element by element. | |
| gVar | operator * (float f, const gVar &var2) |
| perform multiply, element by element. | |
| gVar | operator * (const gVar &var1, float f) |
| perform multiply, element by element. | |
| gVar & | operator *= (gVar &var1, float f) |
| perform multiply, element by element and assign result to var | |
| gVar & | operator *= (gVar &var1, double d) |
| perform multiply, element by element and assign result to var. | |
| gVar | operator/ (const gVar &var1, const gVar &var2) |
| perform right division. | |
| gVar | operator/ (const gVar &var1, double d) |
| perform right division. | |
| gVar | operator/ (const gVar &var1, float f) |
| perform right division. | |
| gVar | operator/ (double d, const gVar &var2) |
| perform right division. | |
| gVar | operator/ (float f, const gVar &var2) |
| perform right division. | |
| gVar & | operator/= (gVar &var1, const gVar &var2) |
| perform right division. | |
| gVar & | operator/= (gVar &var1, double d) |
| perform right division and assign result to var. | |
| gVar & | operator/= (gVar &var1, float f) |
| perform right division and assign result to var. | |
| gVar | operator% (const gVar &var1, const gVar &var2) |
| perform modulo operation, element by element. | |
| gVar | operator% (const gVar &var1, double d) |
| perform modulo operation, element by element. | |
| gVar | operator% (const gVar &var1, float f) |
| perform modulo operation, element by element. | |
| gVar | operator% (const gVar &var1, int i) |
| perform modulo operation, element by element. | |
| gVar | operator% (double d, const gVar &var2) |
| perform modulo operation, element by element. | |
| gVar | operator% (float f, const gVar &var2) |
| perform modulo operation, element by element. | |
| gVar | operator% (int i, const gVar &var2) |
| perform modulo operation, element by element. | |
| gVar & | operator%= (gVar &var1, const gVar &var2) |
| perform modulo operation, element by element and assign result to var1. | |
| gVar & | operator%= (gVar &var1, double d) |
| perform modulo operation, element by element and assign result to var. | |
| gVar & | operator%= (gVar &var1, float f) |
| perform modulo operation, element by element and assign result to var. | |
| gVar & | operator%= (gVar &var1, int i) |
| perform modulo operation, element by element and assign result to var. | |
| gVar | operator+ (const gVar &var1, const gVar &var2) |
| perform addition, element by element. | |
| gVar & | operator+= (gVar &var1, const gVar &var2) |
| perform addition, element by element and assign result to var1. | |
| gVar | operator+ (double d, const gVar &var2) |
| perform addition, element by element. | |
| gVar | operator+ (const gVar &var1, double d) |
| perform addition, element by element. | |
| gVar & | operator+= (gVar &var1, double d) |
| perform addition, element by element and assign result to var. | |
| gVar | operator+ (float f, const gVar &var2) |
| perform addition, element by element. | |
| gVar | operator+ (const gVar &var1, float f) |
| perform addition, element by element. | |
| gVar & | operator+= (gVar &var1, float f) |
| perform addition, element by element and assign result to var. | |
| gVar | operator- (const gVar &var1, const gVar &var2) |
| perform subtraction, element by element. | |
| gVar & | operator-= (gVar &var1, const gVar &var2) |
| perform subtraction, element by element and assign result to var1. | |
| gVar | operator- (double d, const gVar &var2) |
| perform subtraction, element by element. | |
| gVar | operator- (const gVar &var1, double d) |
| perform subtraction, element by element. | |
| gVar & | operator-= (gVar &var1, double d) |
| perform subtraction, element by element and assign result to var. | |
| gVar | operator- (float f, const gVar &var2) |
| perform subtraction, element by element. | |
| gVar | operator- (const gVar &var1, float f) |
| perform subtraction, element by element. | |
| gVar & | operator-= (gVar &var1, float f) |
| perform subtraction, element by element and assign result to var. | |
| gVar | operator- (const gVar &var) |
| negate operand, element by element. | |
| gVar | operator== (const gVar &var1, const gVar &var2) |
| compares two objects, element by element | |
| gVar | operator== (double d, const gVar &var2) |
| compares two operands, element by element | |
| gVar | operator== (const gVar &var1, double d) |
| compares two operands, element by element | |
| gVar | operator== (float f, const gVar &var2) |
| compares two operands, element by element | |
| gVar | operator== (const gVar &var1, float f) |
| compares two operands, element by element | |
| gVar | operator> (const gVar &var1, const gVar &var2) |
| compares two objects, element by element | |
| gVar | operator>= (const gVar &var1, const gVar &var2) |
| compares two objects, element by element and assign result to var1. | |
| gVar | operator> (double d, const gVar &var2) |
| compares two operands, element by element | |
| gVar | operator>= (double d, const gVar &var2) |
| compares two operands, element by element and assign result to var. | |
| gVar | operator> (const gVar &var1, double d) |
| compares two operands, element by element | |
| gVar | operator>= (const gVar &var1, double d) |
| compares two operands, element by element and assign result to var. | |
| gVar | operator> (float f, const gVar &var2) |
| compares two operands, element by element. | |
| gVar | operator> (const gVar &var, float f) |
| compares two operands, element by element. | |
| gVar | operator>= (const gVar &var1, float f) |
| compares two operands, element by element and assign result to var. | |
| gVar | operator< (const gVar &var1, const gVar &var2) |
| compares two objects, element by element | |
| gVar | operator<= (const gVar &var1, const gVar &var2) |
| compares two objects, element by element and assign result to var1. | |
| gVar | operator< (double d, const gVar &var2) |
| compares two objects, element by element. | |
| gVar | operator<= (double d, const gVar &var2) |
| compares two objects, element by element and assign result to var. | |
| gVar | operator< (float f, const gVar &var2) |
| compares two objects, element by element. | |
| gVar | operator<= (float f, const gVar &var2) |
| compares two objects, element by element and assign result to var. | |
| gVar | operator< (const gVar &var1, double d) |
| compares two objects, element by element. | |
| gVar | operator<= (const gVar &var1, double d) |
| compares two objects, element by element and assign result to var. | |
| gVar | operator< (const gVar &var1, float f) |
| compares two objects, element by element. | |
| gVar | operator<= (const gVar &var1, float f) |
| compares two objects, element by element and assign result to var. | |
| gVar | operator!= (const gVar &var1, const gVar &var2) |
| compares two objects, element by element | |
| gVar | operator!= (double d, const gVar &var2) |
| compares two objects, element by element. | |
| gVar | operator!= (const gVar &var1, double d) |
| compares two objects, element by element. | |
| gVar | operator!= (float f, const gVar &var2) |
| compares two objects, element by element. | |
| gVar | operator!= (const gVar &var1, float f) |
| compares two objects, element by element. | |
| gVar | operator! (const gVar &var) |
| perform the logical not operation of an object, element by element | |
| gVar | operator & (const gVar &var1, const gVar &var2) |
| perform the logical and operation of two objects, element by element | |
| gVar | operator| (const gVar &var1, const gVar &var2) |
| perform the logical or operation of two objects, element by element | |
| gVar | operator^ (const gVar &var1, const gVar &var2) |
| perform the logical xor operation of two objects, element by element | |
| gVar | cond (const gVar &var1, const gVar &var2, const gVar &var3) |
| condition operand ? left operand : right operand. conditionally selects elements from two operators, element by element. | |
| gVar | cond (const gVar &var1, const gVar &var2, const double d) |
| condition operand ? left operand : right operand. conditionally selects elements from two operators, element by element. | |
| gVar | cond (const gVar &var1, const double d, const gVar &var3) |
| condition operand ? left operand : right operand. conditionally selects elements from two operators, element by element. | |
| gVar | cond (const gVar &var1, const double d1, const double d2) |
| condition operand ? left operand : right operand. conditionally selects elements from two operators, element by element. | |
| gVar | cond (const gVar &var1, const gVar &var2, const float f) |
| condition operand ? left operand : right operand. conditionally selects elements from two operators, element by element. | |
| gVar | cond (const gVar &var1, const float f, const gVar &var3) |
| condition operand ? left operand : right operand. conditionally selects elements from two operators, element by element. | |
| gVar | cond (const gVar &var, const float f1, const float f2) |
| condition operand ? left operand : right operand. conditionally selects elements from two operators, element by element. | |
| gVar | dot (const gVar &var1, const gVar &var2) |
| perform the inner (dot) product. | |
| gVar | mul (const gVar &var1, const gVar &var2) |
| perform multiply, element by element. | |
| gVar | mul (const gVar &var, const float f) |
| perform multiply, element by element. | |
| gVar | mul (const float f, const gVar &var) |
| perform multiply, element by element. | |
| gVar | div (const gVar &var1, const gVar &var2) |
| perform division, element by element. | |
| gVar | div (const gVar &var1, double d) |
| perform division, element by element. | |
| gVar | div (double d, const gVar &var2) |
| perform division, element by element. | |
| gVar | div (const gVar &var1, float f) |
| perform division, element by element. | |
| gVar | div (float f, const gVar &var2) |
| perform division, element by element. | |
| gVar | pow (const gVar &var1, const gVar &var2) |
| performs the power function, raising base left operand to the power of right operand, element by element. | |
| gVar | pow (double d, const gVar &var2) |
| performs the power function, raising base left operand to the power of right operand, element by element. | |
| gVar | pow (const gVar &var1, double d) |
| performs the power function, raising base left operand to the power of right operand, element by element. | |
| gVar | pow (float f, const gVar &var2) |
| performs the power function, raising base left operand to the power of right operand, element by element. | |
| gVar | pow (const gVar &var1, float f) |
| performs the power function, raising base left operand to the power of right operand, element by element. | |
| gVar | max (const gVar &var) |
| performs max of the elements of an object. | |
| gVar | max (const gVar &var1, const gVar &var2) |
| performs max of the elements of an object. | |
| gVar | max (double d, const gVar &var2) |
| performs max of the elements of an object. | |
| gVar | max (const gVar &var1, double d) |
| performs max of the elements of an object. | |
| gVar | max (float f, const gVar &var2) |
| performs max of the elements of an object. | |
| gVar | max (const gVar &var1, float f) |
| performs max of the elements of an object. | |
| gVar | min (const gVar &var) |
| performs min of the elements of an object. | |
| gVar | min (const gVar &var1, const gVar &var2) |
| performs min of the elements of an object. | |
| gVar | min (double d, const gVar &var2) |
| performs min of the elements of an object. | |
| gVar | min (const gVar &var1, double d) |
| performs min of the elements of an object. | |
| gVar | min (float f, const gVar &var2) |
| performs min of the elements of an object. | |
| gVar | min (const gVar &var1, float f) |
| performs min of the elements of an object. | |
| gVar | imfilter (const gVar &var1, const gVar &var2, const char *options="") |
| return the linear filtering of image var1 and filter var2. | |
| gVar | sin (const gVar &var) |
| performs sine, element by element. | |
| gVar | cos (const gVar &var) |
| performs cosine, element by element. | |
| gVar | tan (const gVar &var) |
| performs tangent, element by element. | |
| gVar | asin (const gVar &var) |
| performs arcsine (inverse of sine), element by element. | |
| gVar | acos (const gVar &var) |
| performs arccosine (inverse of cosine), element by element. | |
| gVar | atan (const gVar &var) |
| performs arctangent (inverse of tangent), element by element. | |
| gVar | log (const gVar &var) |
| performs the natural logarithm, element by element. | |
| gVar | log2 (const gVar &var) |
| performs the logarithm of base 2, element by element. | |
| gVar | log10 (const gVar &var) |
| performs the logarithm of base 10, element by element. | |
| gVar | exp (const gVar &var) |
| performs the exponential function of base e, element by element. | |
| gVar | exp2 (const gVar &var) |
| performs the exponential function of base 2, element by element. | |
| gVar | exp10 (const gVar &var) |
| performs the exponential function of base 10, element by element. | |
| gVar | sqrt (const gVar &var) |
| computes the squared root, element by element. | |
| gVar | invSqrt (const gVar &var) |
| computes 1.0 divided by the squared root, element by element. | |
| gVar | floor (const gVar &var) |
| the input is rounded downwards (truncated) to the nearest integer, element by element. | |
| gVar | ceil (const gVar &var) |
| the input is rounded upwards to nearest integer, element by element. | |
| gVar | round (const gVar &var) |
| the input is rounded to the nearest integer, element by element. | |
| gVar | abs (const gVar &var) |
| computes the absolute value, element by element. | |
| gVar | sign (const gVar &var) |
| performs the sign (sgn) function, element by element. | |
| gVar | sum (const gVar &var) |
| computes the sum of all elements in an object. | |
| gVar | transpose (const gVar &var) |
| computes the transpose of an object. | |
| gVar | conj (const gVar &var) |
| computes the conj of an object. | |
| gVar | cast (const gVar &var, gDataType dataType) |
| casts an object into a new object with the specified gDataType. | |
| gVar | cast (float f, gDataType dataType) |
| casts a float into a new object with the specified gDataType. | |
| gVar | cast (int i, gDataType dataType) |
| casts an int into a new object with the specified gDataType. | |
| gVar | cast (double d, gDataType dataType) |
| casts a double into a new object with the specified gDataType. | |
| gVar | sort (const gVar &var) |
| return a sorted gVar. | |
| gVar | fft (const gVar &var) |
| return the 1D fourier transform of a gVar. | |
| gVar | ifft (const gVar &var) |
| return the inverse 1D fourier transform of a gVar. | |
| gVar | fftshift (const gVar &var) |
| swaps "half-spaces" of var along each dimension. | |
| gVar | ifftshift (const gVar &var) |
| inverse swaps "half-spaces" of var along each dimension. | |
| gVar | usolve (const gVar &var1, const gVar &var2) |
| return the the solution of a upper triangular equation system. | |
| gVar | lsolve (const gVar &var1, const gVar &var2) |
| return the the solution of a lower triangular equation system. | |
| gVar | real (const gVar &var) |
| returns Real part of a var. | |
| gVar | imag (const gVar &var) |
| returns Imag part of a var. | |
| gVar | complex (const gVar &var1, const gVar &var2=0) |
| returns a complex var from two real vars. | |
| gVar | diag (const gVar &var) |
| extracts the diagonal of an object | |
| gVar | diag (const gVar &var, int k) |
| creates a gVar (typically a matrix) with the specified diagonal at position k. | |
| gVar | gather (const gVar &var1, const gVar &var2) |
| gathers selected elements from a vector. | |
| gVar | gather (const gVar &var1, const gVar &var2, const gVar &var3) |
| gathers selected elements from a matrix. | |
| void | scatter (const gVar &var1, const gVar &var2, gVar &var3) |
| scatters elements into selected positions of a vector. | |
| void | scatter (const gVar &var1, const gVar &var2, const gVar &var3, gVar &var4) |
| scatters elements into selected positions of a matrix. | |
| void | scatter (const int i, int j, float value, gVar &var) |
| scatters element into selected position i,j of a matrix, vector or scalar. | |
| void | scatter (const int i, float value, gVar &var) |
| scatters element into selected position i of a vector. | |
| void | scatter (const float i, float j, float value, gVar &var) |
| scatters element into selected position i,j of a matrix, vector or scalar. | |
| void | scatter (const float i, float j, float re, float im, gVar &var) |
| scatters complex element into selected position i,j of a matrix, vector or scalar. | |
| gVar | jacobiIter (const gVar &A, const gVar &x, const gVar &b) |
| performs a jacobi iteration. | |
| void | render (const gVar &var, gRenderMode mode=GDISPLAY2D, int rowStride=0) |
| when Libra is in debug or SDK mode, displays a variable graphically. | |
| void | renderText (const char *text, unsigned int posX, unsigned int posY, unsigned int byteColorRGBA) |
| when Libra is in debug or SDK mode, displays a text string graphically. | |
| gVar | rows () |
| returns the rows of an gVar. | |
| gVar | columns () |
| returns the columns of an gVar. | |
| gVar | numel (const gVar &var1) |
| get the number of elements from an object. | |
| gVar | ndims (const gVar &var1) |
| get the number of dimensions from an object. | |
| gVar | isreal (const gVar &var) |
| return 1 if the queried object is a complex object othwerwise 0. | |
| gVar | iscomplex (const gVar &var) |
| return 1 if the queried object is a complex object othwerwise 0. | |
| gVar | imread (const char *fileName, gDataType type=GDEFAULT) |
| creates a gVar object from an image file. | |
| gVar columns | ( | ) |
creates a Complex Scalar of gDataType type.
| realValue | the Complex integer value. | |
| imagenaryValue | the Complex imagenary value. | |
| type | the desired gDataType of the new object. |
creates a Complex Scalar of gDataType type.
| realValue | the Complex real value. | |
| imagenaryValue | the Complex imagenary value. | |
| type | the desired gDataType of the new object. |
creates a Complex Scalar of gDataType type.
| realValue | the Complex real value. | |
| imagenaryValue | the Complex imagenary value. | |
| type | the desired gDataType of the new object. |
creates an identity matrix.
| rowCount | the number of rows to be created. | |
| columnCount | the number of columns to be created. | |
| type | the gDataType to be used for representation of elements. |
Depending on rowCount and columnCount, the returned gVarHandle can also represent a vector or a scalar.
creates an identity matrix.
| count | the number of rows and columns to be created. | |
| type | the gDataType to be used for representation of elements. |
Depending on count, the returned gVarHandle can also represent a scalar.
creates a scalar with value 1.
| type | the gDataType to be used for representation of elements. |
creates a matrix whose elements are all 1.
| count | the number of rows and columns to be created. | |
| type | the gDataType to be used for representation of elements. |
Depending on rowCount and columnCount, the returned gVarHandle can also represent a scalar.
creates a matrix whose elements are all 1.
| rowCount | the number of rows to be created. | |
| columnCount | the number of columns to be created. | |
| type | the gDataType to be used for representation of elements. |
Depending on rowCount and columnCount, the returned gVarHandle can also represent a vector or a scalar.
creates a matrix filled with random values.
| count | the number of rows and columns to be created. | |
| type | the gDataType to be used for representation of elements. |
Depending on rowCount and columnCount, the returned gVarHandle can also represent a scalar.
creates a sparse matrix, with input in Coordinate format.
| values | A array that contains the non-zero entries of A. | |
| rows | Element i of the integer array rows contains the number of the row in A that contained the value in values(i). | |
| columns | Element i of the integer array columns contains the number of the column in A that contained the value in values(i). | |
| nz | the number of non zero elements in A. | |
| type | the gDataType to be used for representation of elements. |
creates a sparse matrix, with input in Coordinate format.
| values | A array that contains the non-zero entries of A. | |
| rows | Element i of the integer array rows contains the number of the row in A that contained the value in values(i). | |
| columns | Element i of the integer array columns contains the number of the column in A that contained the value in values(i). | |
| nz | the number of non zero elements in A. | |
| type | the gDataType to be used for representation of elements. |
| gVar complexSparseBanded | ( | int | rowCount, | |
| int | columnCount, | |||
| double ** | values, | |||
| int * | positions, | |||
| int | bandCount, | |||
| gDataType | type | |||
| ) |
creates a sparse matrix, with input in Coordinate (Coord) format.
| rowCount | number of rows | |
| columnCount | number of colums | |
| values | A array that contains pointers to the values of the band vectors | |
| positions | an array that contains each bands offset from the main diagonal | |
| bandCount | the number of bands | |
| type | the gDataType to be used for representation of elements. |
| gVar complexSparseBanded | ( | int | rowCount, | |
| int | columnCount, | |||
| float ** | values, | |||
| int * | positions, | |||
| int | bandCount, | |||
| gDataType | type | |||
| ) |
creates a sparse matrix, with input in Coordinate (Coord) format.
| rowCount | number of rows | |
| columnCount | number of colums | |
| values | A array that contains pointers to the values of the band vectors | |
| positions | an array that contains each bands offset from the main diagonal | |
| bandCount | the number of bands | |
| type | the gDataType to be used for representation of elements. |
creates a sparse matrix, with input in Compressed Sparse Column (CSC) format.
| values | A array that contains the non-zero entries of A. | |
| rows | Element i of the integer array rows contains the number of the row in A that contained the value in values(i). | |
| colIndex | Element j of the integer array colIndex gives the index into the values array that contains the first non-zero element in a column j of A. | |
| nz | the number of non zero elements in A. | |
| type | the gDataType to be used for representation of elements. |
creates a sparse matrix, with input in Compressed Sparse Column (CSC) format.
| values | A array that contains the non-zero entries of A. | |
| rows | Element i of the integer array rows contains the number of the row in A that contained the value in values(i). | |
| colIndex | Element j of the integer array colIndex gives the index into the values array that contains the first non-zero element in a column j of A. | |
| nz | the number of non zero elements in A. | |
| type | the gDataType to be used for representation of elements. |
creates a sparse matrix, with input in Compressed Sparse Row (CSR) format.
| values | A array that contains the non-zero entries of A. | |
| columns | Element i of the integer array columns contains the number of the column in A that contained the value in values(i). | |
| rowIndex | Element j of the integer array rowIndex gives the index into the values array that contains the first non-zero element in a row j of A. | |
| nz | the number of non zero elements in A. | |
| type | the gDataType to be used for representation of elements. |
creates a sparse matrix, with input in Compressed Sparse Row (CSR) format.
| values | A array that contains the non-zero entries of A. | |
| columns | Element i of the integer array columns contains the number of the column in A that contained the value in values(i). | |
| rowIndex | Element j of the integer array rowIndex gives the index into the values array that contains the first non-zero element in a row j of A. | |
| nz | the number of non zero elements in A. | |
| type | the gDataType to be used for representation of elements. |
creates a scalar with value 0.
| type | the gDataType to be used for representation of elements. |
creates a matrix whose elements are all 0.
| count | the number of rows and columns to be created. | |
| type | the gDataType to be used for representation of elements. |
Depending on rowCount and columnCount, the returned gVarHandle can also represent a scalar.
creates a matrix whose elements are all 0.
| rowCount | the number of rows to be created. | |
| columnCount | the number of columns to be created. | |
| type | the gDataType to be used for representation of elements. |
Depending on rowCount and columnCount, the returned gVarHandle can also represent a vector or a scalar.
condition operand ? left operand : right operand.
conditionally selects elements from two operators, element by element.
condition operand ? left operand : right operand.
conditionally selects elements from two operators, element by element.
condition operand ? left operand : right operand.
conditionally selects elements from two operators, element by element.
condition operand ? left operand : right operand.
conditionally selects elements from two operators, element by element.
condition operand ? left operand : right operand.
conditionally selects elements from two operators, element by element.
creates an identity matrix.
| rowCount | the number of rows to be created. | |
| columnCount | the number of columns to be created. | |
| type | the gDataType to be used for representation of elements. |
Depending on rowCount and columnCount, the returned gVarHandle can also represent a vector or a scalar.
creates an identity matrix.
| count | the number of rows and columns to be created. | |
| type | the gDataType to be used for representation of elements. |
Depending on count, the returned gVarHandle can also represent a scalar.
return the 1D fourier transform of a gVar.
| var | handle to the operand. |
swaps "half-spaces" of var along each dimension.
| var | handle to the operand. |
gathers selected elements from a matrix.
| var1 | gVar row selector operand. | |
| var2 | gVar column selector operand. | |
| var3 | gVar from which to gather. |
gathers selected elements from a vector.
return the inverse 1D fourier transform of a gVar.
| var | handle to the operand. |
inverse swaps "half-spaces" of var along each dimension.
| var | handle to the operand. |
creates a gVar object from an image file.
| fileName | the filename of the image to be loaded relative to your binary path. | |
| type | specifies the data type for the elements. |
| gVar indexmap | ( | int | rowCount, | |
| int | columnCount, | |||
| float | rowCoeff, | |||
| float | colCoeff, | |||
| float | offs, | |||
| gDataType | type | |||
| ) |
creates an object where the element values are a linear function of ther row, column index.
| rowCount | the number of rows to be created. | |
| columnCount | the number of columns to be created. | |
| rowCoeff | row index multiplier coefficient | |
| colCoeff | column index multiplier coefficient | |
| offs | an offset coefficient | |
| type | the gDataType to be used for representation of elements. |
return 1 if the queried object is a complex object othwerwise 0.
| var | object to be queried. |
return 1 if the queried object is a complex object othwerwise 0.
| var | object to be queried. |
| void libra_delete | ( | const void * | memory | ) |
free the memory allocated using libra_new.
| memory | a pointer to memory |
| void* libra_new | ( | const unsigned int | byteCount | ) |
allocates count bytes of memory from computer main memory.
| byteCount | byte count. |
return the the solution of a lower triangular equation system.
| var1 | handle to the matrix operand. | |
| var2 | handle to the vector operand. |
perform multiply, element by element.
get the number of dimensions from an object.
| var1 | object to be queried. |
creates a scalar with value 1.
| type | the gDataType to be used for representation of elements. |
creates a matrix whose elements are all 1.
| count | the number of rows and columns to be created. | |
| type | the gDataType to be used for representation of elements. |
Depending on rowCount and columnCount, the returned gVarHandle can also represent a scalar.
creates a matrix whose elements are all 1.
| rowCount | the number of rows to be created. | |
| columnCount | the number of columns to be created. | |
| type | the gDataType to be used for representation of elements. |
Depending on rowCount and columnCount, the returned gVarHandle can also represent a vector or a scalar.
perform right division and assign result to var.
| var1 | gVar left operand. | |
| f | float right operand. |
perform right division and assign result to var.
| var1 | gVar left operand. | |
| d | double right operand. |
creates a matrix filled with random values.
| count | the number of rows and columns to be created. | |
| type | the gDataType to be used for representation of elements. |
Depending on rowCount and columnCount, the returned gVarHandle can also represent a scalar.
creates a matrix filled with random values.
| rowCount | the number of rows to be created. | |
| columnCount | the number of columns to be created. | |
| type | the gDataType to be used for representation of elements. |
Depending on rowCount and columnCount, the returned gVarHandle can also represent a vector or a scalar.
| void render | ( | const gVar & | var, | |
| gRenderMode | mode, | |||
| int | rowStride | |||
| ) |
when Libra is in debug or SDK mode, displays a variable graphically.
| var | object to be displayed. | |
| mode | determines how the object is displayed. | |
| rowStride | The logical stride of an object. For example specifying vector rowCount when displayed as 2D data. |
| void renderText | ( | const char * | text, | |
| unsigned int | posX, | |||
| unsigned int | posY, | |||
| unsigned int | byteColorRGBA | |||
| ) |
when Libra is in debug or SDK mode, displays a text string graphically.
| text | the text string to be displayed. | |
| posX | the x pixel position of the text string relative to upperleft corner of the window. | |
| posY | the y pixel position of the text string relative to upperleft corner of the window. | |
| byteColorRGBA | the byte component rgba color of the text string to be displayed. |
| gVar rows | ( | ) |
creates a Scalar of gDataType type.
| value | the Scalar boolean value. | |
| type | the desired gDataType of the new object. |
creates a Scalar of gDataType type.
| value | the Scalar integer value. | |
| type | the desired gDataType of the new object. |
creates a Scalar of gDataType type.
| value | the Scalar float value. | |
| type | the desired gDataType of the new object. |
creates a Scalar of gDataType type.
| value | the Scalar double value. | |
| type | the desired gDataType of the new object. |
| void scatter | ( | const float | i, | |
| float | j, | |||
| float | re, | |||
| float | im, | |||
| gVar & | var | |||
| ) |
scatters complex element into selected position i,j of a matrix, vector or scalar.
| i | to element row selector operand. | |
| j | to element column selector operand. | |
| re | value scatter value operand. | |
| im | value scatter value operand. | |
| var | gVar representing the matrix which to scatter the values into. |
| void scatter | ( | const float | i, | |
| float | j, | |||
| float | value, | |||
| gVar & | var | |||
| ) |
scatters element into selected position i,j of a matrix, vector or scalar.
| i | to element row selector operand. | |
| j | to element column selector operand. | |
| value | scatter value operand. | |
| var | gVar representing the matrix which to scatter the values into. |
| void scatter | ( | const int | i, | |
| float | value, | |||
| gVar & | var | |||
| ) |
scatters element into selected position i of a vector.
| i | to element row selector operand. | |
| value | scatter value operand. | |
| var | gVar representing the matrix which to scatter the values into. |
| void scatter | ( | const int | i, | |
| int | j, | |||
| float | value, | |||
| gVar & | var | |||
| ) |
scatters element into selected position i,j of a matrix, vector or scalar.
| i | to element row selector operand. | |
| j | to element column selector operand. | |
| value | scatter value operand. | |
| var | gVar representing the matrix which to scatter the values into. |
scatters elements into selected positions of a matrix.
If var1 and var2 is not of gDataType GINT32, necessary conversions will first be performed. var1, var2 and var3 can all represent either matrices, vectors or scalars, but must be of the same dimension. The output will be the same object as var4, i.e. this function changes var4 and does not create/return any new object.
scatters elements into selected positions of a vector.
If var1 is not of gDataType GINT32, necessary conversions will first be performed. var1 and var2 can both represent either matrices, vectors or scalars, but must be of the same dimension. The output will be the same object as var3, i.e. this function changes var3 and does not create/return any new object.
return a sorted gVar.
| var | handle to the operand. |
creates a sparse matrix, with input in Coordinate format.
| values | A array that contains the non-zero entries of A. | |
| rows | Element i of the integer array rows contains the number of the row in A that contained the value in values(i). | |
| columns | Element i of the integer array columns contains the number of the column in A that contained the value in values(i). | |
| nz | the number of non zero elements in A. | |
| type | the gDataType to be used for representation of elements. |
creates a sparse matrix, with input in Coordinate format.
| values | A array that contains the non-zero entries of A. | |
| rows | Element i of the integer array rows contains the number of the row in A that contained the value in values(i). | |
| columns | Element i of the integer array columns contains the number of the column in A that contained the value in values(i). | |
| nz | the number of non zero elements in A. | |
| type | the gDataType to be used for representation of elements. |
| gVar sparseBanded | ( | int | rowCount, | |
| int | columnCount, | |||
| double ** | values, | |||
| int * | positions, | |||
| int | bandCount, | |||
| gDataType | type | |||
| ) |
creates a sparse matrix, with input in Coordinate (Coord) format.
| rowCount | number of rows | |
| columnCount | number of colums | |
| values | A array that contains pointers to the values of the band vectors | |
| positions | an array that contains each bands offset from the main diagonal | |
| bandCount | the number of bands | |
| type | the gDataType to be used for representation of elements. |
| gVar sparseBanded | ( | int | rowCount, | |
| int | columnCount, | |||
| float ** | values, | |||
| int * | positions, | |||
| int | bandCount, | |||
| gDataType | type | |||
| ) |
creates a sparse matrix, with input in Coordinate (Coord) format.
| rowCount | number of rows | |
| columnCount | number of colums | |
| values | A array that contains pointers to the values of the band vectors | |
| positions | an array that contains each bands offset from the main diagonal | |
| bandCount | the number of bands | |
| type | the gDataType to be used for representation of elements. |
creates a sparse matrix, with input in Compressed Sparse Column (CSC) format.
| values | A array that contains the non-zero entries of A. | |
| rows | Element i of the integer array rows contains the number of the row in A that contained the value in values(i). | |
| colIndex | Element j of the integer array colIndex gives the index into the values array that contains the first non-zero element in a column j of A. | |
| nz | the number of non zero elements in A. | |
| type | the gDataType to be used for representation of elements. |
creates a sparse matrix, with input in Compressed Sparse Column (CSC) format.
| values | A array that contains the non-zero entries of A. | |
| rows | Element i of the integer array rows contains the number of the row in A that contained the value in values(i). | |
| colIndex | Element j of the integer array colIndex gives the index into the values array that contains the first non-zero element in a column j of A. | |
| nz | the number of non zero elements in A. | |
| type | the gDataType to be used for representation of elements. |
creates a sparse matrix, with input in Compressed Sparse Row (CSR) format.
| values | A array that contains the non-zero entries of A. | |
| columns | Element i of the integer array columns contains the number of the column in A that contained the value in values(i). | |
| rowIndex | Element j of the integer array rowIndex gives the index into the values array that contains the first non-zero element in a row j of A. | |
| nz | the number of non zero elements in A. | |
| type | the gDataType to be used for representation of elements. |
creates a sparse matrix, with input in Compressed Sparse Row (CSR) format.
| values | A array that contains the non-zero entries of A. | |
| columns | Element i of the integer array columns contains the number of the column in A that contained the value in values(i). | |
| rowIndex | Element j of the integer array rowIndex gives the index into the values array that contains the first non-zero element in a row j of A. | |
| nz | the number of non zero elements in A. | |
| type | the gDataType to be used for representation of elements. |
creates a vector which elements are in a sequence
| from | the number which the sequence starts with. | |
| to | the number which the sequence ends with | |
| stride | the difference between any two elements in the sequence next to each other | |
| type | the gDataType to be used for representation of elements. |
return the the solution of a upper triangular equation system.
| var1 | handle to the matrix operand. | |
| var2 | handle to the vector operand. |
creates a scalar with value 0.
| type | the gDataType to be used for representation of elements. |
creates a matrix whose elements are all 0.
| count | the number of rows and columns to be created. | |
| type | the gDataType to be used for representation of elements. |
Depending on rowCount and columnCount, the returned gVarHandle can also represent a scalar.
creates a matrix whose elements are all 0.
| rowCount | the number of rows to be created. | |
| columnCount | the number of columns to be created. | |
| type | the gDataType to be used for representation of elements. |
Depending on rowCount and columnCount, the returned gVarHandle can also represent a vector or a scalar.
1.5.2