IMSL C Numerical Library

Similar documents
JMSL Library for Java Applications

Parallel Functionality and Automatic Thread Control in PV-WAVE 10.0

for ColdFire Architectures V7.2 Quick Start

User Manual Arabic Name Romanizer Name Geolocation System

SmartList Builder for Microsoft Dynamics GP 10.0

x10data Application Platform v7.1 Installation Guide

Core Services SSL Installation Guide. Service Pack 9, July 2007

SK hynix Drive Manager Easy Kit. Installation Guide

Installing Act! for New Users

Microcat Authorisation Server (MAS ) User Guide

NSIGHT ECLIPSE PLUGINS INSTALLATION GUIDE

Upgrading to Act! v20 from ACT! 3.x, 4.x, 5.x (2000), or 6.x (2004)

ONVIF Device Test Tool v12.06 Installation Guide

Symantec Control Compliance Suite Express Security Content Update for Microsoft Windows Server 2008 R2 (CIS Benchmark 2.1.

SpellCheck for Dynamics GP

Upgrading BankLink Books

Database Connectors Net Express/Server Express 5.1 Update 14. Release Notes

MICROS e7 Version 3.3 Maintenance Release 2 ReadMe First

Upgrading to Sage ACT! 2013 from ACT! 3.x, 4.x, 5.x (2000), or 6.x (2004)

Symantec Control Compliance Suite Express Security Content Update for JBoss Enterprise Application Platform 6.3. Release Notes

PGP NetShare FlexResponse Plug-In for Data Loss Prevention

Installation Guide for Windows

DMS Integration Guide

Experion MX CD Controls R700.1 Software Change Notice

Gift, Loyalty, and Tracking Program Web Portal Operating Manual

Dell Statistica. Statistica Enterprise Server Installation Instructions

V10. Setup-Instructions (Single Users & Networking Environments) Mobipro.

Progression version Crystal Report Functionality Changes

Global Central (CaMAPP) Credit Card Driver for 3700 POS

Migrating BlackBerry-enabled mailboxes from Microsoft Exchange 5.5 to Microsoft Exchange 2000

Partner Information. Integration Overview. Remote Access Integration Architecture

hp digital home networking phoneline USB network adapter hn210p quick start guide

[NALENND WIRELESS BLOCK IDENTIFIER SOFTWARE USER S GUIDE] NALENND data scrubber utility reference manual. Quentin Sager Consulting, Inc.

Quest Collaboration Services 3.6. Installation Guide

Configuring and Integrating Oracle

Symantec Desktop and Laptop Option 8.0 SP2. Symantec Desktop Agent for Mac. Getting Started Guide

CORBA Tutorial C++ Version 6.3, December 2005

Cisco TEO Adapter Guide for SAP Java

Zynq-7000 Platform Software Development Using the ARM DS-5 Toolchain Author: Simon George and Prushothaman Palanichamy

Hands-On Lab: HORM. Lab Manual Expediting Power Up with HORM

Tofino CMP Installation & Upgrade Guide Tofino CMP Version Tofino Firmware Version 1.7.0

Configuring Adobe Premier Pro CS6 for iofx

Partner Information. Integration Overview Authentication Methods Supported

Setting up Java environment for Project Capuchin development with Sony Ericsson phones

Records Manager Installation Guide

Symantec Validation & ID Protection Service. Integration Guide for Microsoft Outlook Web App

Document Manager. Balance Point Technologies, Inc. Document Manager. User Guide. Certified MAX Integrator

KingStar Motion 2.1 SDK and Runtime Installation Guide

IronKey EMS Cloud. Quick Start Guide

RTX SDK INSTALL GUIDE

Version 1.2. ReadMe First

Steel-Belted Radius Installation Instructions for EAP-FAST Security Patch

Veritas Desktop and Laptop Option Mobile Application Getting Started Guide

Paycode Mass Update 2013

SAS Forecast Server 3.1. Administrator s Guide to Installation and Configuration

Symantec Ghost Solution Suite Web Console - Getting Started Guide

Inmagic DB/TextWorks v14.5 Installation and Upgrade Notes

Software Installation with Microsoft SQL 2008

Veritas Desktop and Laptop Option Mac Getting Started Guide

Artix Orchestration Installation Guide. Version 4.2, March 2007

McAfee EMM Best Practices Document Upgrading your High Availability EMM installation

AN 834: Developing for the Intel HLS Compiler with an IDE

Veritas Desktop Agent for Mac Getting Started Guide

CodeWarrior Development Studio for Freescale 68HC12/HCS12/HCS12X/XGATE Microcontrollers Quick Start SYSTEM REQUIREMENTS Hardware Operating System 200

Quest Unified Communications Diagnostics Data Recorder User Guide

Trace Debug Tools Version 1.2 Installation Guide

Parallel Performance of the IMSL C Numerical Library

Upgrade Guide 6.0. Version 6.0 Software Installation and Upgrade Guide

LogiCORE IP 3GPP LTE Turbo Encoder v1.0 Bit-Accurate C Model. 3GPP LTE Turbo. [optional] UG490 (v1.0) April 25, 2008 [optional]

TREX Set-Up Guide: Creating a TREX Executable File for Windows

Copyright NeoAccel Inc. SSL VPN-Plus TM. NeoAccel Management Console: Firewall version 2.3

Symantec Enterprise Security Manager Baseline Policy Manual for Security Essentials. Solaris 10

Symantec Backup Exec System Recovery Granular Restore Option User's Guide

Running TIBCO Spotfire 4.0 on Citrix XenApp. Installation Manual

Cisco Unified Communications Self Care Portal User Guide, Release

KnapSac Windows Server User's Guide

Digi document reference number: _A

SUPPORT MATRIX. HYCU OMi Management Pack for Citrix

Symantec Enterprise Security Manager Agent, Manager, Console Update for Windows Server 2008

MAX Workbench. Balance Point Technologies, Inc. MAX Workbench. User Guide. Certified MAX Integrator

TIE1.80InstallationGuideUK

epaystub 2016 Build Notes ENCORE BUSINESS SOLUTIONS twitter.com/encorebusiness.com

Symantec ediscovery Platform

Veritas Cluster Server Library Management Pack Guide for Microsoft System Center Operations Manager 2007

Enterprise Vault.cloud CloudLink Google Account Synchronization Guide. CloudLink to 4.0.3

Mobile On the Go (OTG) Server

GPU LIBRARY ADVISOR. DA _v8.0 September Application Note

User Guide for LAN Client Configuration Utility

Installation Guide. NSi AutoStore TM 6.0

MobiControl v12: Migration to Profiles Guide. December 2014

IntelliTrack DMS (Data Management System) v8.1 Quick Start Guide Preliminary Copy (July 2011) Copyright 2011 IntelliTrack, Inc.

UC for Enterprise (UCE) Application Platform (UNIVERGE OW5000) Nurse Call Integration Service

Symantec Enterprise Security Manager Baseline Policy Manual for CIS Benchmark. For Red Hat Enterprise Linux 5

Addendum to Cisco Physical Security Operations Manager Documentation, Release 6.1

Check the Desktop development with C++ in the install options. You may want to take 15 minutes to try the Hello World C++ tutorial:

Cisco Prime Home Device Driver Mapping Tool July 2013

RTX 8.0 Installation Guide

Local deployment consists of locally storing the IT Policy file on each user s workstation.

Veritas Desktop and Laptop Option 9.2

IPNexus Server Secure Instant Messaging & Integrated Collaboration

Transcription:

IMSL C Numerical Library Getting Started Guide for Windows A Technical Guide by Rogue Wave Software. Rogue Wave Software 5500 Flatiron Parkway, Suite 200 Boulder, CO 80301, USA www.roguewave.com

IMSL C Numerical Library for Windows by Rogue Wave Software 2014 by Rogue Wave Software. All Rights Reserved Printed in the United States of America Trademark Information The Rogue Wave Software name, logo, and IMSL are registered trademarks of Rogue Wave Software, Inc. or its subsidiaries in the US and other countries. All other company, product or brand names are the property of their respective owners. IMPORTANT NOTICE: The information contained in this document is subject to change without notice. Rogue Wave Software, Inc. makes no warranty of any kind with regards to this material, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. Rogue Wave Software, Inc. shall not be liable for errors contained herein or for incidental, consequential, or other indirect damages in connection with the furnishing, performance, or use of this material.

Installing the IMSL C Library v8.5 for Windows 1. Executing the install program After you have downloaded the product from the FTP site, unzip the file into a temporary folder, then run setup.exe from that folder. If you are running Windows 7 or 8, you may have to run the Setup program with administrator privileges, depending on your User Account Control settings. To do this, right-click on setup.exe and choose, Run as administrator. 2. Welcome The first window introduces the installation program for the IMSL C Library. 4 www.roguewave.com

3. Product Selection This screen allows to you to select from the 32-bit or 64-bit versions of the C Numerical Libraries. Select the appropriate version for your Operating System / Compiler configuration. Press Next> to continue. Additionally, two enhanced performance versions of the IMSL C Numerical Library are included with the installation. These are the MKL-enabled and NVIDIA CUDA-enabled versions of the C Numerical Library. After acknowledging the choice to install them, the user can select to install only the IMSL versions or the two performance versions as well. 5 www.roguewave.com

4. Environment variable registration You will be prompted to automatically update environment variables required to use the IMSL C Library. It is recommended that you perform this update. 6 www.roguewave.com

5. License Agreement This screen presents the end user license agreement. When you have read the contents and agreed, press Yes to continue the installation. 7 www.roguewave.com

6. License Number If you have a License Number, enter it at this point. If you do not yet have a license number, or are evaluating the product, input 999999. Press Next> to continue. 8 www.roguewave.com

7. Install directory Set the directory where the IMSL C Library will be installed. The default is C:\Program Files\VNI. Use the Browse button to select an alternate location. You may be prompted to create a directory if it does not exist. Press Next> when you are satisfied with the selection. 9 www.roguewave.com

8. Installation progress You will be updated as the installation proceeds. 10 www.roguewave.com

9. Installation complete When the setup is complete, you will be prompted to click the Finish button. 10. Restart Depending on your system, you may be prompted to restart your computer to properly configure the environment variables. Select the appropriate selection to restart now or later. 11 www.roguewave.com

Using IMSL Using the IMSL C Library for Windows 1. Creating a program This simple example program will solve the following system of linear equations: 33x + 16y + 72z = 129-24x - 10y - 57z = -96 18x - 11y + 7z = 8.5 2. Start a new project Start Visual Studio and create a new Visual C++ Win32 Console Project named CNL Test. 12 www.roguewave.com

3. Add the code Copy the following text into the cnl.cpp source file and save it. /* Program start */ /* The header file for Mathematics of the IMSL C Library. */ /* For Statistics, use <imsl.h>. */ #include "stdafx.h" #include <imsl.h> int _tmain(int argc, _TCHAR* argv[]) { /* variable declaration */ int n = 3; float *x; static float a[] = {33.0, 16.0, 72.0, -24.0, -10.0, -57.0, 18.0, -11.0, 7.0}; static float b[] = {129.0, -96.0, 8.5}; float *p_inva; /* The main IMSL function call to solve for x in Ax=B. * This is the floating point version, to use * double-precision arguments, call * imsl_d_lin_sol_gen */ x = imsl_f_lin_sol_gen(n, a, b, 0); /* Optional arguments are included after required * arguments. These are usually preceded by a constant * named IMSL_* indicating which optional argument is * being passed.in this example, we request the inverse * of the a matrix */ x = imsl_f_lin_sol_gen (n, a, b, IMSL_INVERSE, &p_inva, 0); /* Print the solution x and the inverse of a using * write_matrix, a printing utility */ imsl_f_write_matrix ("Solution x", 1, n, x, 0); imsl_f_write_matrix ("Inverse of A", n, n, p_inva, 0); return 0; } /* Program end */ 13 www.roguewave.com

Compiling and running the program Compiling and executing a program calling the IMSL C Library for Windows 1. Setting the environment variables The various environment variables may be set automatically at installation time. If you choose not to setup the environment automatically, you must run the cnlenv.bat batch file from the \bin folder in the IMSL C Library install location. 2a. Compile the program from the command line To use the cl command line compiler, start the Visual Studio 2010.NET Command Prompt from the Start Menu: Start -> All Programs -> Microsoft Visual Studio 2010 -> Visual Studio Tools -> Visual Studio 2010 Command Prompt. Dynamic Library > cl cnl.cpp %LINK_CNL_SHARED% Static Library > cl cnl.cpp %LINK_CNL_STATIC% 2b. Compile the program using Visual Studio With the source code entered and saved from the previous document, the properties of the project must be configured to find the IMSL C Library. First, under Project -> CNL Test Properties, open C/C++ -> General. Add the path C:\Program Files\VNI\cnl850\<env>\include to the Additional Include Directories. You can use the ellipsis to browse to that folder. 14 www.roguewave.com

Next, add the Export library for the DLL to the project by choosing Project -> Add Existing Item and browse to: C:\Program Files\VNI\imsl\cnl850\<env>\imslcmath_imsl.lib. 15 www.roguewave.com

Finally, compile the project by selecting Build -> Build Solution from the menu bar. 16 www.roguewave.com

3a. Execute the program from the command line > cnl.exe Solution x 1 2 3 1.0 1.5 1.0 Inverse of A 1 2 3 1 0.1464 0.1899 0.0403 2 0.1802 0.2237-0.0321 3-0.0933-0.1367-0.0113 3b. Execute the program from Visual Studio 2010 From the main menu, select Debug -> Start. Solution x 1 2 3 1.0 1.5 1.0 Inverse of A 1 2 3 1 0.1464 0.1899 0.0403 2 0.1802 0.2237-0.0321 3-0.0933-0.1367-0.0113 Press any key to continue. For more information, refer to the C:\Program Files\VNI\cnl850\<env>\notes\README text files for reference. 17 www.roguewave.com