Commit 819aab5a authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

proceeding with LAPACK solution to system of linear equations

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 1476
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 15459df2
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.1 2004-02-07 22:13:10 tforb Exp $
# $Id: Makefile,v 1.2 2004-02-08 15:35:42 tforb Exp $
#
# Copyright (c) 2004 by Thomas Forbriger (BFO Schiltach)
#
......@@ -12,10 +12,10 @@
# ============================================================================
#
HEADERS=$(shell find . -name \*.h)
HEADERS=$(wildcard *.h lapack/*.h)
#SRC=misc/fortranio.cc misc/commandline.cc misc/ioswap.cc misc/error.cc \
# misc/blitzfortranio.cc hacks/hack_blitztogrepg.cc
LIBSRC=linearxx.cc
LIBSRC=$(wildcard *.cc lapack/*.cc)
INCINSTALLPATH=$(LOCINCLUDEDIR)/linearxx
LIBINSTALLPATH=$(LOCLIBDIR)
......@@ -47,7 +47,7 @@ CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS)
all: liblinearxx.a doxybrief doxyfull
flist: Makefile $(wildcard *.h *.cc *.cfg)
flist: Makefile $(wildcard *.cfg contrib/*.h) $(HEADERS) $(LIBSRC)
echo $^ | tr ' ' '\n' | sort > $@
.PHONY: edit
......@@ -74,7 +74,7 @@ clean: ;
-include $(patsubst %.cc,%.d,$(LIBSRC))
libtsxx.a: $(patsubst %.cc,%.o,$(LIBSRC))
liblinearxx.a: $(patsubst %.cc,%.o,$(LIBSRC))
ar rcv $@ $^
ranlib $@
newlib $@
......
......@@ -50,8 +50,8 @@ INPUT = ./
FILE_PATTERNS = README \
*.h \
*.cc
RECURSIVE = NO
EXCLUDE =
RECURSIVE = YES
EXCLUDE = contrib
EXCLUDE_PATTERNS =
EXAMPLE_PATH =
EXAMPLE_PATTERNS =
......
# ---------------------------------------
#
# $Id: Makefile,v 1.16 2004-01-28 14:54:16 tforb Exp $
# $Id: Makefile,v 1.17 2004-02-08 15:35:44 tforb Exp $
#
# Makefile fuer tools /src/ts/wf
#
......@@ -58,7 +58,8 @@ hamres siggen smoos dise: %: %.o
newprog $@
sigfit: sigfit.o
$(CXX) -o $@ $^ -I$(LOCINCLUDEDIR) -lsffxx -lgsexx -laff \
-ltfxx -ltime++ -L$(LOCLIBDIR) $(CXXFLAGS) $(FLAGS)
$(CXX) -o $@ $^ -I$(LOCINCLUDEDIR) -lsffxx -llinearxx -lgsexx -laff \
-ltfxx -ltime++ -llapack -lblas -lg2c -lm\
-L$(LOCLIBDIR) $(CXXFLAGS) $(FLAGS)
newprog $@
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: sigfit.cc,v 1.4 2004-02-07 22:13:13 tforb Exp $
* $Id: sigfit.cc,v 1.5 2004-02-08 15:35:44 tforb Exp $
* \author Thomas Forbriger
* \date 28/01/2004
*
......@@ -19,7 +19,7 @@
#define SIGFIT_VERSION \
"SIGFIT V1.0 fit signal by trial-signals"
#define SIGFIT_CVSID \
"$Id: sigfit.cc,v 1.4 2004-02-07 22:13:13 tforb Exp $"
"$Id: sigfit.cc,v 1.5 2004-02-08 15:35:44 tforb Exp $"
#include <fstream>
#include <iostream>
......@@ -32,6 +32,7 @@
#include <tsxx/innerproduct.h>
#include <aff/array.h>
#include <aff/dump.h>
#include <linearxx/lapackxx.h>
typedef std::list<std::string> Tnamelist;
typedef ts::TDsffbundle Tbundle;
......@@ -272,6 +273,8 @@ int main(int iargc, char* argv[])
}
rhs(i)=ts::innerproduct(bundlevec[i-1].series, signal.series);
}
coeff=linear::lapack::dposv(Matrix,rhs);
}
/* ----- END OF sigfit.cc ----- */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment