FreeMat now supports function handles, or function pointers where a function handle is an alias for a function or script that is stored in a variable. 3D volume rendering capability (via VTK)įreeMat is an environment for rapid engineering and scientific processing which is similar to commercial systems such as MATLAB from Mathworks and IDL from Research Systems, but is Open Source.įreeMat offers features such as a codeless interface to external C/C /FORTRAN code, parallel/distributed algorithm development (via MPI), and advanced volume and 3D visualization capabilities.3D Plotting and visualization via OpenGL.Function pointers (eval and feval are fully supported).Native support for Mac OS X (no X11 server required).Codeless interface to external C/C /FORTRAN code.Pass-by-reference support (an IDL feature).Full support for dynamic structure arrays.Heterogeneous array types (called "cell arrays" in MATLAB-speak) fully supported.Full control structure support (including, for, while, break, continue, etc.).Eigenvalue and singular value decompositions.Support for solving linear systems of equations via the divide operators.Built in arithmetic for manipulation of all supported data types.Support for 8,16, and 32 bit integer types (signed and unsigned), 32 and 64 bit floating point types, and 64 and 128 bit complex types.N-dimensional array manipulation (by default, N is limited to 6).This, however, will cause c to become an int32 type, as opposed to a logical type. The other way to do this is simply force c(d) = 0, which uses the logical indexing mode of FreeMat (see the chapter on indexing for more details). To isolate this case, we can AND the two vectors, to find exactly those entries that appear as true in both a and b:Īt this point, we can modify the contents of c in two ways - the Boolean way is to AND \sim d with c, like so However, the XOR and OR operations differ on the fifth entry - the XOR would be false, since it is true if and only if exactly one of the two inputs is true. First, we create a pair of vectors to perform the XOR operation on: Suppose we want to calculate the exclusive-or (XOR) of two vectors of logical variables. Some simple examples of logical operators. Note that shortcut evaluation only works with scalar The first test returns false, and an attempt to evaluate the second expression Is not valid without shortcut evaluation (if p is an integer, for example, Not valid unless the prior test is successful. Shortcut evaluation is useful for doing a sequence of tests, each of which is Then if expr1 evaluates to true, then expr2 is not evaluated at all. Then if expr1 evaluates to false, then expr2 is not evaluated at all. The binary operators AND and OR can take scalar arguments as well as vector arguments, in which case, the scalar is operated on with each element of the vector.Īs of version 1.10, FreeMat supports shortcut evaluation. AND ( \
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |