Feeds:
Posts
Comments

Archive for November, 2011

GotoBLAS2

MinGW should be installed first. Next… GotoBLAS2 GotoBLAS2 is an implementation of Basic Linear Algebra Subprograms (BLAS). LAPACK uses BLAS. GotoBLAS2 has configurations for a variety of hardware platforms. It builds a library that is optimized for the given PC’s CPU. Make a folder called: c:\LAPACK Download GotoBLAS2. Filename = GotoBLAS2-1.13_bsd.tar.gz http://www.tacc.utexas.edu/tacc-projects/gotoblas2/downloads/ Save File to: [...]

Read Full Post »

Here is a Fortran program which performs matrix inversion using the LU decomposition method:  INVERSE_MATRIX.F It is compiled via: gfortran -o INVERSE_MATRIX INVERSE_MATRIX.F -llapack The program uses the subroutines: DGETRF & DGETRI It compiles & runs under both Ubuntu & Cygwin. See also: http://www.nag.com/numeric/fl/nagdoc_fl23/examples/source/f07ajfe.f90 * * * Here is a similar C++ program:  matrix_inverse.cpp  It [...]

Read Full Post »

C/C++ Tips

Dynamic Memory Allocation for 1D Array int* a = NULL; // Pointer to int, initialize to nothing. int n; // Size needed for array cin >> n; // Read in the size a = new int[n]; // Allocate n ints and save ptr in a. for (int i=0; i a[i] = 0; // Initialize all [...]

Read Full Post »

This is another matrix multiplication project using the BLAS function dgemm. It is complied and run in an Ubuntu system. The set consists of two programs:  (right mouse click.  save target or link as) matrix_mult_cf.cpp fort_matmul_main.f The set calculates: C = A*B The C++ program matrix_mult_cf reads in two matrices, A & B. The input [...]

Read Full Post »

Ubuntu Plotting Programs

I am evaluating plotting programs for Ubuntu.  I already have plotting capability via Matlab and Python/matplotlib running under Ubuntu. The Matlab export plot quality is ok but not great. So far my Python knowledge only extends to making static plots.  Identifying interactive, dynamic plotting methods in Python is still on my “to do” list. In [...]

Read Full Post »

MinGW stands for Minimalist GNU for Windows. MinGW is a native software port of the GNU Compiler Collection (GCC) and GNU Binutils for use in the development of native Microsoft Windows applications. MinGW can be downloaded with Code::Blocks. Or it can be downloaded via  soureforge. * * * Next add:     C:\MinGW\bin to the PATH environment variable [...]

Read Full Post »

C/C++ Read 2D Array

The following program reads a 2D array of numbers.  The array may have an arbitrary or unknown number of rows and columns up to a certain cell limit. The program counts the number of columns and rows as it reads the data. The program souce code is: matrix_read.cpp     (right mouse click & save target or [...]

Read Full Post »

Cygwin

Cygwin is a collection of tools which provide a Linux look and feel environment for Windows. It is also a DLL (cygwin1.dll) which acts as a Linux Application Programming Interface (API) layer providing substantial Linux API functionality. Cygwin is not a way to run native Linux apps on Windows. You must rebuild your application from [...]

Read Full Post »

Linux Ubuntu Tips

The make install command is necessary to build certain software package. This may result in an error such as: /usr/local/lib: Permission denied The problem can be fixed by typing: su -c “make install” Then enter root password when prompted * * * The Update Manager may hang. An alternate method is to use the following [...]

Read Full Post »

Cython

Cython is a compiler which compiles Python-like code files to C code. The resulting functions can then be imported into other Python scripts. This method can be used to increase the execution speed of a Python script, particularly if the script uses for-loops. I have added a Cython page to:  Vibrationdata Python Wiki The page [...]

Read Full Post »

Older Posts »

Follow

Get every new post delivered to your Inbox.