********************************************************
LORM -- LIBRARY FOR OPTIMIZATION ON RIEMANNIAN MANIFOLDS
********************************************************

*******
License
*******

This software is licensed under the MPL2, see the COPYING file and the links
  http://www.mozilla.org/MPL/2.0/
  http://www.mozilla.org/MPL/2.0/FAQ.html

************
Dependencies
************

- The EIGEN3 header files are required!!  (http://eigen.tuxfamily.org)

- Optionally the NFFT3 header and library files are required!! 
  
The header and library files can be copied into the prepared directories
       3rdparty/include/eigen3
       3rdparty/include/nfft3
       3rdparty/lib
In case of the Eigen3 library files you can simply extract the compressed 
archives into the directory 3rdparty/include/eigen3

***********
Build Steps
***********

- It is recommended to create a build directory:

    mkdir build
    cd build

  Configuration
  *************

  - configure the default build process by invoking
    (for double precision and without NFFT support)

      cmake ..
  
  - Optionally you can enable NFFT library support by defining the variables

    ENABLE_NFFT_SUPPORT=1
    NFFT3_INCLUDE_DIR = directory including the header file 'nfft3.h'
    NFFT3_LIB         = path to the shared library file 'libnfft3.so'
    
    for example by invoking  
 
      cmake .. -DENABLE_NFFT_SUPPORT=1 -DNFFT3_INCLUDE_DIR="/home/include/nfft3" -DNFFT3_LIB="/home/lib/libnfft3.so"

    or more simple by invoking 
    ( if the corresponding files can be found in the precreated directories 
      of the 3rdparty directory )
   
      cmake .. -DENABLE_NFFT_SUPPORT=1
    	     	 
  - Optionally you can set the precisions by setting the variable

    USER_SCALAR_TYPE to the corresponding type, e.g. by invoking

      cmake .. -DUSER_SCALAR_TYPE=float
    
    ( note, if this variable is set to something different than double precision 
      the NFFT support will be disabled )

  Generation of the Libraries and the Documentation
  *************************************************

  - The LORM library will be build by invoking
    
     make
 
  - The documentation found in the 'doc' directory can be build by 
  
     make doc

    The main file of the HTML documentation can be found in doc/html/index.html
    The doc/latex/refman.pdf documentation file can be build from the latex sources by
    
     cd doc/latex 
     make 

  - Various test examples can be found in the 'bin' directory of the build directory.