Questions tagged [blas]

The Basic Linear Algebra Subprograms are a standard set of interfaces for low-level vector and matrix operations commonly used in scientific computing.

A reference implementation is available at NetLib; optimized implementations are also available for all high-performance computing architectures, for example:

The BLAS routines are divided into three levels:

  • Level 1: vector operations e.g. vector addition, dot product
  • Level 2: matrix-vector operations e.g. matrix-vector multiplication
  • Level 3: matrix-matrix operations e.g. matrix multiplication
906 questions
7
votes
4 answers

numpy.disutils.system_info.NotFoundError: no lapack/blas resources found

Problem: Linking numpy to correct Linear Algebra libraries. Process is so complicated that I might be looking for the solution 6th time and I have no idea whats going wrong. I am on Ubuntu 12.04.5. I reinstalled blas and lapack and then reinstalled…
pg2455
  • 5,039
  • 14
  • 51
  • 78
7
votes
1 answer

Does MKL optimize cblas for *major order?

I am using mkl cblas_dgemm and currently have it with CblasRowMajor, CblasNoTrans, CblasNotrans, for my matrices. I know that c is a row major language, whereas dgemm is a column major algorithm. I am interested to know if switching the ordering of…
drjrm3
  • 4,474
  • 10
  • 53
  • 91
7
votes
2 answers

Are the LAPACK routines thread safe?

I am a novice using the LAPACK routines, so I don't deeply know them, and I want to use them in parallelized loops (openmp). I use Ubuntu 14.04LTS and have LAPACK installed using my package manager. The version installed is: liblapack3 …
Antonio Serrano
  • 385
  • 2
  • 15
7
votes
3 answers

BLAS and CUBLAS

I'm wondering about NVIDIA's cuBLAS Library. Does anybody have experience with it? For example if I write a C program using BLAS will I be able to replace the calls to BLAS with calls to cuBLAS? Or even better implement a mechanism which let's the…
Nils
  • 13,319
  • 19
  • 86
  • 108
7
votes
4 answers

What is the easiest way to install numpy with LAPACK/BLAS?

I'm on an Ubuntu 14.04. I would have expected doing: sudo apt-get install python-numpy would've worked but it isn't the case... The way I tried to check is by doing locate blas and found nothing that seemed relevant. I would like a solution that…
evan54
  • 3,585
  • 5
  • 34
  • 61
7
votes
1 answer

Correct way to point to ATLAS/BLAS/LAPACK libraries for numpy build?

I'm building numpy from source on CentOS 6.5 with no root access (python -V=2.7.6). I have the latest numpy source from git. I cannot for the life of me get numpy to acknowledge atlas libs. I have: ls -1…
Matt Hancock
  • 3,870
  • 4
  • 30
  • 44
7
votes
5 answers

R: locpoly is incorrectly returning NaN

Running the following code gives me a NaN: library(KernSmooth) x <- c(5.84155992364115, 1.55292112974119, 0.0349665318792623, 3.93053647398094, 3.42790577684633, 2.9715553006801, 0.837108410045353, 2.872476865277, 3.89232548092257,…
Xu Wang
  • 10,199
  • 6
  • 44
  • 78
7
votes
2 answers

Cross-Compiling Armadillo Linear Algebra Library

I enjoy using the Armadillo Linear Algebra Library. It becomes extremely nice when porting octave .m files over to C++, especially when you have to use the eigen methods. However I ran into issues when I had to take my program from my native…
Matt
  • 653
  • 1
  • 8
  • 20
7
votes
3 answers

MKL or BLAS routine to multiply vector by a scalar out-of-place

I work in simulation software and one of the many operations done on arrays is scaling a vector by a number. I have code like this: //Just some initialization code, don't bother about this part int n = 10000; std::vector input(n,…
Gustavo Muenz
  • 9,278
  • 7
  • 40
  • 42
7
votes
1 answer

NumPy and SciPy. Static vs Dynamic loading

TLDR: Can I use static ATLAS/LAPACK libraries with NumPy & SciPy? Background: After building ATLAS with LAPACK with the following: wget http://sourceforge.net/projects/math-atlas/files/Stable/3.10.1/atlas3.10.1.tar.bz2/download wget…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
6
votes
1 answer

Multiplying real matrix with a complex vector using BLAS

How can I use Blas to multiply a real matrix with a complex vector ? When I use functions like ccsrgemv() I get type mismatch errors? error: argument of type "float *" is incompatible with parameter of type "std::complex *"
Tarek
  • 1,060
  • 4
  • 17
  • 38
6
votes
1 answer

Statically linking against LAPACK

I'm attempting to do a release of some software and am currently working through a script for the build process. I'm stuck on something I never thought I would be, statically linking LAPACK on x86_64 linux. During configuration…
nlucaroni
  • 47,556
  • 6
  • 64
  • 86
6
votes
1 answer

BLAS/LAPACK routine for doing Gaussian elimination

I'm a new user of BLAS/Lapack, and I'm just wondering is there a routine which does Gaussian elimination or even Gaussian-Jordan elimination? I googled and looked at their documentations, but still couldn't find them. Thanks a lot for helping me…
Kelvin Lee
  • 385
  • 3
  • 15
6
votes
2 answers

efficient bitwise sum calculation

Is there an efficient way to calculate a bitwise sum of uint8_t buffers (assume number of buffers are <= 255, so that we can make the sum uint8)? Basically I want to know how many bits are set at the i'th position of each buffer. Ex: For 2…
n1r44
  • 581
  • 1
  • 4
  • 12
6
votes
1 answer

Detect BLAS/LAPACK vendors using CMake

So my code wants to include different header files when occurs to different BLAS/LAPACK vendors. Are there any predefined macros or something like that make me check it?
xis
  • 24,330
  • 9
  • 43
  • 59