Questions tagged [zkcm]

ZKCM library is a C++ library for multi-precision complex-number matrix calculations.

Zkcm library is a C++ library for multi-precision complex-number matrix calculations. It provides several functionalities including singular value decomposition, tensor product calculation, and tracing-out operations.

It is based on the GNU MP (GMP) and MPFR libraries, which are usually found as standard packages in recent Linux distributions.

5 questions
3
votes
2 answers

Multiprecision library zkcm and sizeof()

I am using the multiprecision complex number library (zkcm) and want to compare some results using complex. At one point I try to double check the memory of the variables using sizeof() but I get the same answer (32) no matter how big a…
jorgen
  • 3,425
  • 4
  • 31
  • 53
1
vote
1 answer

zkcm-library not finding the mpfr-library

I just installed the zkcm library on my kubuntu machine and I'm having trouble compiling c++ code. I have installed the gmp and mpfr libraries and checked that they work; the code mpfr_t m1, m2, m3; mpfr_init(m1); mpfr_init(m2); mpfr_init(m3);…
jorgen
  • 3,425
  • 4
  • 31
  • 53
1
vote
0 answers

c++ program behaving different when profiling

I would like to profile some c++ code using gprof. I compile the program exactly like normal but with -pg added at the end; i.e. something like g++ prog.cpp $(OBJECTS) -lgmp -lgmpxx -lmpfr -lmpc -msse2 -std=c++11 -O2 -o prog_P -pg However when I…
jorgen
  • 3,425
  • 4
  • 31
  • 53
1
vote
0 answers

makefile not working with c++ zkcm-library - can't find mpfr-functions

I have a makefile for use with some programs using the zkcm-library, including the following object line: zkcm_c.o: zkcm_c.cpp zkcm_c.h config.h g++ -c zkcm_c.cpp -lgmp -lgmpxx -lmpfr The compiler complains that there is an "undefined…
jorgen
  • 3,425
  • 4
  • 31
  • 53
0
votes
0 answers

zkcm configuration fails, can't find gmpxx.h

I'm trying to get zkcm up and running on my system (Mac OS X 10.11.3). I've installed gmp just fine (using ./configure --prefix=/usr/local --enable-cxx), and mpfr installed easily once I told it where to find gmp (/usr/local/include). However, zkcm…
Stuart Barth
  • 301
  • 2
  • 10