Jump to content

9 Screenshots

About This File

Eigen4AutoIt Features:

  • free, fast matrix computing environment for Windows (runs under Wine on Linux and Mac)
  • built upon the robust Eigen code base (open-source), with many enhancements
  • simple, intuitive functions, with extensive online documentation
  • supports integer, single, and double precision, in real and complex matrices
  • Tutorials with scripts, plus Test scripts for each function section
  • easily exchange data between native binary files (.mat) and ASCII, Excel, and Xbase files, or AutoIt arrays
  • 32-bit (x86-mode) and 64-bit (x64-mode) support
  • in x64-mode, matrices can be any size that fits into available virtual memory (>4GB), and can be shared between processes
  • over one thousand alias wrappers for flexibility and ease-of-use


The Eigen4AutoIt thread is here:

This computing environment allows you to do matrix I/O (memory & files), matrix arithmetic, transformation, reduction, and decomposition, solve systems of linear equations, and perform statistics. Most functions can act on integer, real, or complex matrices (or the latter's real/imaginary parts separately). Much of the actual complexity of using Eigen in its native C++ environment has been hidden for AutoIt users, through extensive bounds and error checks, an intuitive function-naming convention, a large help file, and detailed tutorials and test examples.

What's New in Version 4.7


  • Added: _Eigen_SplitMatrix_FromAcell, quartering a source matrix into four destination matrices; the specified cell marks the top-left corner of the bottom-right destination matrix.
  • Added: _Eigen_CreateVector_FromAcell_Mask, for producing a column vector of values from the masked cells of an input matrix; this complements _Eigen_ConditMask, with which to create bitmasks, _Eigen_CwiseLogicalOps, for manipulating bitmasks, and _Eigen_FindAll, which yields a list of cell locations (offset, row, col) that match a given value (unity in bitmasks).
  • Added: all _Eigen_CwiseLogicalOp functions now support additional logical operation xcl, which returns the bits of input matrix A unless the corresponding bit in input matrix B is 1; in other words, matrix B is used as an exclusion bitmask.
  • Added: all CwiseLogicalOp functions can now return either full bit width results (32 bits) or least significant bit only (bit 0; useful for processing bitmasks), depending on whether new global environment variable $EIGEN_CLO_BIT0_ONLY is set (default: True); the latter's default is controlled by work environment functions _Eigen_Re/SetLogicalBit0only, and can also be overridden in individual CwiseLogicalOp calls with an optional parameter.
  • Added: _InPlace variants for all _Eigen_ConditMask functions.
  • Added: _Eigen_CreateArray_FromMatrix_Col/Row, producing a 1D array.
  • Added: work environment functions: _Eigen_AppendCols/Rows/_InPlace.
  • Added: work environment functions: _Eigen_IsComplex, _Eigen_IsDouble, _Eigen_IsFloat, _Eigen_IsInteger, and _Eigen_IsReal, to quickly determine a matrix's (variable) type (returns a boolean). Note that _Eigen_IsDouble and _Eigen_IsFloat ignore the state of _Eigen_IsComplex and vice versa, that is, a single- c.q. double precision matrix can still be either real- or complex-valued, and a real c.q. complex matrix can still be either single- or double precision.
  • Added: work environment functions: _Eigen_IsVector, _Eigen_IsRowVector, and _Eigen_IsColVector.
  • Added: boolean matrix property functions (in section: Matrix Reduction): _Eigen_HasNan, _Eigen_Haslnfinity, _Eigen_IsDiagonal, _Eigen_IsIdentity, _Eigen_IsLowerTriangular, _Eigen_IsOnes, _Eigen_IsSquare, _Eigen_IsSymmetric, _Eigen_IsUnitary, _Eigen_IsUpperTriangular, and _Eigen_IsZero.
  • Added:  real matrix property functions (in section: Matrix Reduction): _Eigen_GetDeterminant, _Eigen_GetMean, _Eigen_GetNorm, _Eigen_GetProduct, _Eigen_GetSquaredNorm, _Eigen_GetSum, and _Eigen_GetTrace.
  • Added: min/max-related matrix property functions (in section: Matrix Reduction): _Eigen_GetCol_MaxVal, _Eigen_GetCol_MinVal, _Eigen_GetMaxVal, _Eigen_GetMinVal, _Eigen_GetRow_MaxVal, _Eigen_GetRow_MinVal, _Eigen_GetOffset_MaxVal, and _Eigen_GetOffset_MinVal.
  • Added: truth tables for all CwiseLogicalOp functions, on its main topic page.
  • Added: default header text for _Eigen_Show_Matrix, if not provided by user.
  • Changed: _Eigen_FindAll (and subsiduaries) and _Eigen_Sort_Unique (and subsiduaries) return the number of results in macro @extended (i.e., the number of rows of the output matrix c.q. colvector).
  • Changed: the following functions now return the changed dimension of the output matrix (with respect to the input matrix) in macro @extended: _Eigen_CreateMatrix_FromAdiag, _Eigen_CreateMatrix_FromAcols/rows, _Eigen_CreateMatrix_FromAcols/rows_Mask, _Eigen_CreateMatrix_FromAcols_Index, _Eigen_CreateMatrix_FromABcols/rows, and _Eigen_CreateMatrix_FromABcols/rows_Transposed.
  • Changed: _Eigen_MatrixSpecs_Colwise/Rowwise_Single output matrix dimensions check relaxed to any correctly-sized vector.
  • Changed: _Eigen_FindAll (but not its subsidiaries) can be provided with a predefined (3-column) output matrix, whose number of rows then imposes an upper bound on the number of results to be returned (early-out). Note that retrieving a single result (the first one found) is more efficiently achieved by calling _Eigen_Find instead.
  • Changed: all CwiseLogicalOp functions now support new logical operator nor instead of flip, as the latter has become redundant. This is a script-breaking change.
  • Changed: all Cwise*Op and all Cwise Condit*Op functions have been standardised in output dimensions where possible, in that all non-InPlace variants acting on a single row, col, or block now produce a row vector, col vector, c.q. block-sized matrix as output (rather than filling the targeted part of an output matrix that has to match the full input matrix in dimensions). The result of double row/col interactions depends on the Cwise function type. This is a script-breaking change.
  • Changed: matrix spec #17 renamed from "nonZero" to "nonEmpty" for clarity, as it returns the number of cells that ever held any value.
  • Changed: multiplication function _Eigen_OuterProduct now accepts any two vectors as input, including the same vector parsed twice.
  • Changed: matrix management function _Eigen_AddExistingMatrix size check relaxed from exact to sufficiently large.
  • Changed: when enabled, statistics function _Eigen_LDA's optional damping parameter $lambda is applied to both the within-class data scatter inverse and the eigensolver input.
  • Changed: compiler environment upgraded to MSVC 2017 release version 15.9.5.
  • Changed: Windows Platform Toolset upgraded to release version 141.
  • Changed: Windows SDK upgraded to release version 10.0.17763.0.
  • Fixed: potential memory leak in various _Eigen_CreateMatrix_FromA* functions.
  • Fixed: operator lookup in _Eigen_CwiseLogicalOp_RowRow_InPlace and _Eigen_CwiseBinaryOp_Block/_InPlace used the wrong reference table.
  • Fixed: _Eigen_ConditMask_Diag internally parsed wrong output matrix activation string.
  • Fixed: _Eigen_ConditMask_Row applied wrong dimensional checks.

User Feedback

You may only provide a review once you have downloaded the file.

There are no reviews to display.

  • Similar Content

    • By RTFC
      The Eigen C++ template library is a great environment for matrix computing; it is fast, reliable, extensive, and well-documented. It is also completely free, and does not rely on any external dependencies. Unfortunately for AutoIt users, the term “template library” implies that any functions you call are only instantiated upon compilation (in C++). That means there's nothing to hook into.
      To make Eigen ’s most important functionality directly accessible from within AutoIt scripts (version 3.3.12+, download it here), I developed the Eigen4AutoIt environment. It runs on Windows and under Wine also on Linux and Mac (Ubuntu, Debian, Fedora, and MacOS supported by WineHQ), and SUSE, Slackware, and FreeBSD supported by the distros).
      >Download the latest version

      It consists of:
      1) Eigen4AutoIt.au3
      an AutoIt library of wrapper functions that contain extensive bounds checks, matrix management, file I/O, type conversion, and precision control, and two-way data exchange with files and native AutoIt arrays;
      2) Eigen-wrapper dlls (EigenDense.dll, EigenDense_x64.dll)
      re-maps matrices created in AutoIt as Eigen Matrix objects, then calls Eigen’s powerful core functions; in the spirit of open-source, the full C++ source code I wrote is included in the bundle (see subdirectory "source"). The basic functions consist of a single Eigen call; decompositions and statistics are more involved. 3) Additional materials:
      the user-interactive, animated Function Selector and MatrixViewer tools the MatrixFileConverter to read/write E4A matrices from/to .csv ASCII, Excel, and Xbase files. three libraries of scientific and mathematical constants online Help, with example code for every function Large (.chm) Help file (for offline access) Quickstart Manual (11-page pdf, updated) Test suite Tutorials from Basics to Advanced Please note:
      none of this is part of Eigen's own distribution you only need this bundle; you do not need to install Eigen. How it works:
      No matrix content is ever transferred, only memory pointers, meaning computations in AutoIt are virtually as fast as in Eigen’s native environment, with the added advantage of not having to be compiled first. The drawback is that Eigen's native ad-hoc expression templates (and their internal optimisations) cannot be exploited here; you have to construct your operations with the basic building blocks. These provide matrix creation, I/O, cellwise operations, reduction, multiplication, transformation, decomposition (LU, Householder, Choleski, and Jacobi SVD; these include general linear solvers) and a small statistics module by yours truly.

      IMPORTANT: Posting Rules for this thread:
      1) Do not post or PM me any matrix-, maths-, or Eigen-related questions. Eigen has its own User Forum for that (or try math.stackExchange.com). I am not your maths guru! If you post such questions, I will either ignore your post or remind you of this rule.

      2) Do not post or PM me your data sets and/or non-working Eigen4AutoIt scripts; I will not analyse your data or fix your scripts for you! There are many reasons why a linear algebra procedure might fail to produce the answer you expect. You are wielding great mathematical power here, so exploit the fantastic internet resources at your fingertips and learn how to use it. To get you started, I've listed a few video tutorials and other helpful materials in the header remarks of Eigen4AutoIt.au3. Also check out the test scripts, the Tutorials, and the Help file.

      3) I do warmly welcome all of the following:
      remarks, advice, suggestions for improvements, encouragement, cash; bug reports re. the Eigen4AutoIt interface (individual functions that don't work the way they should) and/or the associated dll code (ditto); your own working Eigen4AutoIt templates of general use that you'd like to see implemented in a future release. Regarding that last item, have a look at my PCA tutorial. After the step-by-step stage, I summarise the entire procedure in a "mini script" of Eigen4AutoIt calls. Then I introduce the two internal PCA functions I developed, which replace that script with two simple calls. You can do the same thing, and submit your own functional Eigen4AutoIt script in this thread. If I consider it of general use and can implement it, it may become a new Eigen4AutoIt function in the next release (with source acknowledgement, of course). This means that you'd get a precompiled dll version of your script that will likely run faster and be simpler to call. Thereby this thread would become an Eigen4AutoIt Example Scripts mini forum. It's just a thought.
      >Download the latest version (uncompressed size: 36.2 MB)
      How to Install
      You need AutoIt version 3.3.12 or later. Extraction (with 7-zip) creates subdirectory Eigen4AutoIt, where you'll find Eigen4AutoIt.ini. Open it in a text editor, find global variable $EIGEN_DLLPATH, and copy/paste the full absolute path (without trailing backslash) where the Eigen4AutoIt dlls are located on your machine (that is, wherever you extracted the files). Save the ini file, open the first tutorial ("intro") in Scite, and start it. This shows basic matrix I/O and mode switching (single versus double precision). If that runs, you're in business.
      NB to leverage the full power of x64 features, you'll also need to have the full Scite4AutoIt3 package installed. For more info, see sections "Bitness" and "Shared Memory" in the Help, main topic: "Work Environment" page.
    • By Ascer
      1. Description
      Anti-bot system to avoid spam. Vector graphic style generates 4 random numbers from 0-9 and create a picture. 2. Requirements
      .NET Framework 1.1 - 4.5 (on this version Microsoft destroy old rules) 3. Possibilities.

      Source package Capatcha.rar
    • By Ascer
      Do you have any idea to resize Vector graphic using some maths trick?
      It's example to create Vector image 10x10px and write A
      Local $a10x10 = [ _ 1,1,1,1,1,1,1,1,1,1, _ 1,1,1,0,0,0,0,1,1,1, _ 1,1,0,0,1,1,0,0,1,1, _ 1,1,0,1,1,1,1,0,1,1, _ 1,1,0,1,1,1,1,0,1,1, _ 1,1,0,0,0,0,0,0,1,1, _ 1,1,0,1,1,1,1,0,1,1, _ 1,1,0,1,1,1,1,0,1,1, _ 1,0,0,0,1,1,0,0,0,1, _ 1,1,1,1,1,1,1,1,1,1 _ ] Local $oVector = ObjCreate("WIA.Vector.1") If Not IsObj($oVector) Then ConsoleWrite("+++ Error " & @error & " durning create a Vector.object." & @CRLF) Exit EndIf Local $iBlue = 0xFF0000FF ; ARGB color Local $iWhite = 0xFFFFFFFF ; adding pixels to vector For $i = 0 To UBound($a10x10) - 1 Local $iPixel = $a10x10[$i] Local $iColor = $iBlue If $iPixel = 0 Then $iColor = $iWhite $oVector.Add($iColor) Next ; create a img 10x10 px Local $oImg = $oVector.ImageFile(10, 10) ; path to file Local $sPath = @ScriptDir & "\Vector.bmp" ; delete previous file if exits. FileDelete($sPath) ; save img to script direction. $oImg.SaveFile($sPath) ; show result, you have to use 800% size to see effects. ShellExecute("Vector.bmp")  
    • By AlecSadler
      Hello friends! I have been working on an encryption algorithm in autoit as a proof of concept for some time now. Basically the algorithm uses a progressive recursion to encode data inside a matrix using a key that changes according to the date-time of the system, which is extracted from a larger key array. Recently after a drive failure, I lost the source and had to start from scratch, now I can't quite get it working the way it was before, and I can't see what I'm doing wrong, if anyone who understands matrix math or encryption could help I would much appreciate it. The problem is that the values returned by the decryption (extraction) process are way too big.
      I have figured out the solution to my problem, it was a typo, please disregard this thread.
      I will post my project into example scripts when it's ready.
  • Create New...