diff options
Diffstat (limited to 'src/statisticsFunctions/prod')
18 files changed, 0 insertions, 2692 deletions
diff --git a/src/statisticsFunctions/prod/Makefile.am b/src/statisticsFunctions/prod/Makefile.am deleted file mode 100644 index 2f334ad3..00000000 --- a/src/statisticsFunctions/prod/Makefile.am +++ /dev/null @@ -1,65 +0,0 @@ -## -## Scilab ( http://www.scilab.org/ ) - This file is part of Scilab -## Copyright (C) 2006-2008 - INRIA - Bruno JOFRET -## -## This file must be used under the terms of the CeCILL. -## This source file is licensed as described in the file COPYING, which -## you should have received as part of this distribution. The terms -## are also available at -## http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt -## -## - -libProd_la_CFLAGS = -I $(top_builddir)/type \ - -I $(top_builddir)/operations/includes \ - -I ../includes - -instdir = $(top_builddir)/lib - -pkglib_LTLIBRARIES = libProd.la - -libProd_la_SOURCES = $(HEAD) $(SRC) - -SRC = sproda.c \ - srowproda.c \ - scolumnproda.c \ - dproda.c \ - drowproda.c \ - dcolumnproda.c \ - cproda.c \ - crowproda.c \ - ccolumnproda.c \ - zproda.c \ - zrowproda.c \ - zcolumnproda.c - -HEAD = ../includes/prod.h - -#### -# Checking Part -#### - -check_INCLUDES = -I $(top_builddir)/statisticsFunctions/includes \ - -I $(top_builddir)/operations/includes \ - -I $(top_builddir)/type - -check_LDADD = $(top_builddir)/type/libDoubleComplex.la \ - $(top_builddir)/type/libFloatComplex.la \ - $(top_builddir)/operations/multiplication/libMultiplication.la \ - $(top_builddir)/statisticsFunctions/prod/libProd.la \ - @LIBMATH@ - -check_PROGRAMS = testFloatProd testDoubleProd - -TESTS = testFloatProd testDoubleProd - -# -# -*- Prod Tests -*- -# -testFloatProd_SOURCES = testFloatProd.c -testFloatProd_CFLAGS = $(check_INCLUDES) -testFloatProd_LDADD = $(check_LDADD) - -testDoubleProd_SOURCES =testDoubleProd.c -testDoubleProd_CFLAGS = $(check_INCLUDES) -testDoubleProd_LDADD = $(check_LDADD) diff --git a/src/statisticsFunctions/prod/Makefile.in b/src/statisticsFunctions/prod/Makefile.in deleted file mode 100644 index 6eefeb9e..00000000 --- a/src/statisticsFunctions/prod/Makefile.in +++ /dev/null @@ -1,751 +0,0 @@ -# Makefile.in generated by automake 1.10.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -check_PROGRAMS = testFloatProd$(EXEEXT) testDoubleProd$(EXEEXT) -TESTS = testFloatProd$(EXEEXT) testDoubleProd$(EXEEXT) -subdir = statisticsFunctions/prod -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/includes/machine.h -CONFIG_CLEAN_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -am__installdirs = "$(DESTDIR)$(pkglibdir)" -pkglibLTLIBRARIES_INSTALL = $(INSTALL) -LTLIBRARIES = $(pkglib_LTLIBRARIES) -libProd_la_LIBADD = -am__objects_1 = -am__objects_2 = libProd_la-sproda.lo libProd_la-srowproda.lo \ - libProd_la-scolumnproda.lo libProd_la-dproda.lo \ - libProd_la-drowproda.lo libProd_la-dcolumnproda.lo \ - libProd_la-cproda.lo libProd_la-crowproda.lo \ - libProd_la-ccolumnproda.lo libProd_la-zproda.lo \ - libProd_la-zrowproda.lo libProd_la-zcolumnproda.lo -am_libProd_la_OBJECTS = $(am__objects_1) $(am__objects_2) -libProd_la_OBJECTS = $(am_libProd_la_OBJECTS) -libProd_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libProd_la_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -am_testDoubleProd_OBJECTS = testDoubleProd-testDoubleProd.$(OBJEXT) -testDoubleProd_OBJECTS = $(am_testDoubleProd_OBJECTS) -am__DEPENDENCIES_1 = $(top_builddir)/type/libDoubleComplex.la \ - $(top_builddir)/type/libFloatComplex.la \ - $(top_builddir)/operations/multiplication/libMultiplication.la \ - $(top_builddir)/statisticsFunctions/prod/libProd.la -testDoubleProd_DEPENDENCIES = $(am__DEPENDENCIES_1) -testDoubleProd_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(testDoubleProd_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -am_testFloatProd_OBJECTS = testFloatProd-testFloatProd.$(OBJEXT) -testFloatProd_OBJECTS = $(am_testFloatProd_OBJECTS) -testFloatProd_DEPENDENCIES = $(am__DEPENDENCIES_1) -testFloatProd_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(testFloatProd_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/includes -depcomp = $(SHELL) $(top_srcdir)/config/depcomp -am__depfiles_maybe = depfiles -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ -SOURCES = $(libProd_la_SOURCES) $(testDoubleProd_SOURCES) \ - $(testFloatProd_SOURCES) -DIST_SOURCES = $(libProd_la_SOURCES) $(testDoubleProd_SOURCES) \ - $(testFloatProd_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DSYMUTIL = @DSYMUTIL@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -GREP = @GREP@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBMATH = @LIBMATH@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -NMEDIT = @NMEDIT@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -libProd_la_CFLAGS = -I $(top_builddir)/type \ - -I $(top_builddir)/operations/includes \ - -I ../includes - -instdir = $(top_builddir)/lib -pkglib_LTLIBRARIES = libProd.la -libProd_la_SOURCES = $(HEAD) $(SRC) -SRC = sproda.c \ - srowproda.c \ - scolumnproda.c \ - dproda.c \ - drowproda.c \ - dcolumnproda.c \ - cproda.c \ - crowproda.c \ - ccolumnproda.c \ - zproda.c \ - zrowproda.c \ - zcolumnproda.c - -HEAD = ../includes/prod.h - -#### -# Checking Part -#### -check_INCLUDES = -I $(top_builddir)/statisticsFunctions/includes \ - -I $(top_builddir)/operations/includes \ - -I $(top_builddir)/type - -check_LDADD = $(top_builddir)/type/libDoubleComplex.la \ - $(top_builddir)/type/libFloatComplex.la \ - $(top_builddir)/operations/multiplication/libMultiplication.la \ - $(top_builddir)/statisticsFunctions/prod/libProd.la \ - @LIBMATH@ - - -# -# -*- Prod Tests -*- -# -testFloatProd_SOURCES = testFloatProd.c -testFloatProd_CFLAGS = $(check_INCLUDES) -testFloatProd_LDADD = $(check_LDADD) -testDoubleProd_SOURCES = testDoubleProd.c -testDoubleProd_CFLAGS = $(check_INCLUDES) -testDoubleProd_LDADD = $(check_LDADD) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign statisticsFunctions/prod/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign statisticsFunctions/prod/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) - @$(NORMAL_INSTALL) - test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" - @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ - if test -f $$p; then \ - f=$(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pkglibdir)/$$f"; \ - else :; fi; \ - done - -uninstall-pkglibLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ - p=$(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$p'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$p"; \ - done - -clean-pkglibLTLIBRARIES: - -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) - @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" != "$$p" || dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -libProd.la: $(libProd_la_OBJECTS) $(libProd_la_DEPENDENCIES) - $(libProd_la_LINK) -rpath $(pkglibdir) $(libProd_la_OBJECTS) $(libProd_la_LIBADD) $(LIBS) - -clean-checkPROGRAMS: - @list='$(check_PROGRAMS)'; for p in $$list; do \ - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f $$p $$f"; \ - rm -f $$p $$f ; \ - done -testDoubleProd$(EXEEXT): $(testDoubleProd_OBJECTS) $(testDoubleProd_DEPENDENCIES) - @rm -f testDoubleProd$(EXEEXT) - $(testDoubleProd_LINK) $(testDoubleProd_OBJECTS) $(testDoubleProd_LDADD) $(LIBS) -testFloatProd$(EXEEXT): $(testFloatProd_OBJECTS) $(testFloatProd_DEPENDENCIES) - @rm -f testFloatProd$(EXEEXT) - $(testFloatProd_LINK) $(testFloatProd_OBJECTS) $(testFloatProd_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libProd_la-ccolumnproda.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libProd_la-cproda.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libProd_la-crowproda.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libProd_la-dcolumnproda.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libProd_la-dproda.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libProd_la-drowproda.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libProd_la-scolumnproda.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libProd_la-sproda.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libProd_la-srowproda.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libProd_la-zcolumnproda.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libProd_la-zproda.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libProd_la-zrowproda.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testDoubleProd-testDoubleProd.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testFloatProd-testFloatProd.Po@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< - -.c.obj: -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< - -libProd_la-sproda.lo: sproda.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -MT libProd_la-sproda.lo -MD -MP -MF $(DEPDIR)/libProd_la-sproda.Tpo -c -o libProd_la-sproda.lo `test -f 'sproda.c' || echo '$(srcdir)/'`sproda.c -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libProd_la-sproda.Tpo $(DEPDIR)/libProd_la-sproda.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sproda.c' object='libProd_la-sproda.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -c -o libProd_la-sproda.lo `test -f 'sproda.c' || echo '$(srcdir)/'`sproda.c - -libProd_la-srowproda.lo: srowproda.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -MT libProd_la-srowproda.lo -MD -MP -MF $(DEPDIR)/libProd_la-srowproda.Tpo -c -o libProd_la-srowproda.lo `test -f 'srowproda.c' || echo '$(srcdir)/'`srowproda.c -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libProd_la-srowproda.Tpo $(DEPDIR)/libProd_la-srowproda.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='srowproda.c' object='libProd_la-srowproda.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -c -o libProd_la-srowproda.lo `test -f 'srowproda.c' || echo '$(srcdir)/'`srowproda.c - -libProd_la-scolumnproda.lo: scolumnproda.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -MT libProd_la-scolumnproda.lo -MD -MP -MF $(DEPDIR)/libProd_la-scolumnproda.Tpo -c -o libProd_la-scolumnproda.lo `test -f 'scolumnproda.c' || echo '$(srcdir)/'`scolumnproda.c -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libProd_la-scolumnproda.Tpo $(DEPDIR)/libProd_la-scolumnproda.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='scolumnproda.c' object='libProd_la-scolumnproda.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -c -o libProd_la-scolumnproda.lo `test -f 'scolumnproda.c' || echo '$(srcdir)/'`scolumnproda.c - -libProd_la-dproda.lo: dproda.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -MT libProd_la-dproda.lo -MD -MP -MF $(DEPDIR)/libProd_la-dproda.Tpo -c -o libProd_la-dproda.lo `test -f 'dproda.c' || echo '$(srcdir)/'`dproda.c -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libProd_la-dproda.Tpo $(DEPDIR)/libProd_la-dproda.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dproda.c' object='libProd_la-dproda.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -c -o libProd_la-dproda.lo `test -f 'dproda.c' || echo '$(srcdir)/'`dproda.c - -libProd_la-drowproda.lo: drowproda.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -MT libProd_la-drowproda.lo -MD -MP -MF $(DEPDIR)/libProd_la-drowproda.Tpo -c -o libProd_la-drowproda.lo `test -f 'drowproda.c' || echo '$(srcdir)/'`drowproda.c -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libProd_la-drowproda.Tpo $(DEPDIR)/libProd_la-drowproda.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='drowproda.c' object='libProd_la-drowproda.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -c -o libProd_la-drowproda.lo `test -f 'drowproda.c' || echo '$(srcdir)/'`drowproda.c - -libProd_la-dcolumnproda.lo: dcolumnproda.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -MT libProd_la-dcolumnproda.lo -MD -MP -MF $(DEPDIR)/libProd_la-dcolumnproda.Tpo -c -o libProd_la-dcolumnproda.lo `test -f 'dcolumnproda.c' || echo '$(srcdir)/'`dcolumnproda.c -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libProd_la-dcolumnproda.Tpo $(DEPDIR)/libProd_la-dcolumnproda.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dcolumnproda.c' object='libProd_la-dcolumnproda.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -c -o libProd_la-dcolumnproda.lo `test -f 'dcolumnproda.c' || echo '$(srcdir)/'`dcolumnproda.c - -libProd_la-cproda.lo: cproda.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -MT libProd_la-cproda.lo -MD -MP -MF $(DEPDIR)/libProd_la-cproda.Tpo -c -o libProd_la-cproda.lo `test -f 'cproda.c' || echo '$(srcdir)/'`cproda.c -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libProd_la-cproda.Tpo $(DEPDIR)/libProd_la-cproda.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cproda.c' object='libProd_la-cproda.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -c -o libProd_la-cproda.lo `test -f 'cproda.c' || echo '$(srcdir)/'`cproda.c - -libProd_la-crowproda.lo: crowproda.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -MT libProd_la-crowproda.lo -MD -MP -MF $(DEPDIR)/libProd_la-crowproda.Tpo -c -o libProd_la-crowproda.lo `test -f 'crowproda.c' || echo '$(srcdir)/'`crowproda.c -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libProd_la-crowproda.Tpo $(DEPDIR)/libProd_la-crowproda.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='crowproda.c' object='libProd_la-crowproda.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -c -o libProd_la-crowproda.lo `test -f 'crowproda.c' || echo '$(srcdir)/'`crowproda.c - -libProd_la-ccolumnproda.lo: ccolumnproda.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -MT libProd_la-ccolumnproda.lo -MD -MP -MF $(DEPDIR)/libProd_la-ccolumnproda.Tpo -c -o libProd_la-ccolumnproda.lo `test -f 'ccolumnproda.c' || echo '$(srcdir)/'`ccolumnproda.c -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libProd_la-ccolumnproda.Tpo $(DEPDIR)/libProd_la-ccolumnproda.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ccolumnproda.c' object='libProd_la-ccolumnproda.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -c -o libProd_la-ccolumnproda.lo `test -f 'ccolumnproda.c' || echo '$(srcdir)/'`ccolumnproda.c - -libProd_la-zproda.lo: zproda.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -MT libProd_la-zproda.lo -MD -MP -MF $(DEPDIR)/libProd_la-zproda.Tpo -c -o libProd_la-zproda.lo `test -f 'zproda.c' || echo '$(srcdir)/'`zproda.c -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libProd_la-zproda.Tpo $(DEPDIR)/libProd_la-zproda.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='zproda.c' object='libProd_la-zproda.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -c -o libProd_la-zproda.lo `test -f 'zproda.c' || echo '$(srcdir)/'`zproda.c - -libProd_la-zrowproda.lo: zrowproda.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -MT libProd_la-zrowproda.lo -MD -MP -MF $(DEPDIR)/libProd_la-zrowproda.Tpo -c -o libProd_la-zrowproda.lo `test -f 'zrowproda.c' || echo '$(srcdir)/'`zrowproda.c -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libProd_la-zrowproda.Tpo $(DEPDIR)/libProd_la-zrowproda.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='zrowproda.c' object='libProd_la-zrowproda.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -c -o libProd_la-zrowproda.lo `test -f 'zrowproda.c' || echo '$(srcdir)/'`zrowproda.c - -libProd_la-zcolumnproda.lo: zcolumnproda.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -MT libProd_la-zcolumnproda.lo -MD -MP -MF $(DEPDIR)/libProd_la-zcolumnproda.Tpo -c -o libProd_la-zcolumnproda.lo `test -f 'zcolumnproda.c' || echo '$(srcdir)/'`zcolumnproda.c -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libProd_la-zcolumnproda.Tpo $(DEPDIR)/libProd_la-zcolumnproda.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='zcolumnproda.c' object='libProd_la-zcolumnproda.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libProd_la_CFLAGS) $(CFLAGS) -c -o libProd_la-zcolumnproda.lo `test -f 'zcolumnproda.c' || echo '$(srcdir)/'`zcolumnproda.c - -testDoubleProd-testDoubleProd.o: testDoubleProd.c -@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testDoubleProd_CFLAGS) $(CFLAGS) -MT testDoubleProd-testDoubleProd.o -MD -MP -MF $(DEPDIR)/testDoubleProd-testDoubleProd.Tpo -c -o testDoubleProd-testDoubleProd.o `test -f 'testDoubleProd.c' || echo '$(srcdir)/'`testDoubleProd.c -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/testDoubleProd-testDoubleProd.Tpo $(DEPDIR)/testDoubleProd-testDoubleProd.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testDoubleProd.c' object='testDoubleProd-testDoubleProd.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testDoubleProd_CFLAGS) $(CFLAGS) -c -o testDoubleProd-testDoubleProd.o `test -f 'testDoubleProd.c' || echo '$(srcdir)/'`testDoubleProd.c - -testDoubleProd-testDoubleProd.obj: testDoubleProd.c -@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testDoubleProd_CFLAGS) $(CFLAGS) -MT testDoubleProd-testDoubleProd.obj -MD -MP -MF $(DEPDIR)/testDoubleProd-testDoubleProd.Tpo -c -o testDoubleProd-testDoubleProd.obj `if test -f 'testDoubleProd.c'; then $(CYGPATH_W) 'testDoubleProd.c'; else $(CYGPATH_W) '$(srcdir)/testDoubleProd.c'; fi` -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/testDoubleProd-testDoubleProd.Tpo $(DEPDIR)/testDoubleProd-testDoubleProd.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testDoubleProd.c' object='testDoubleProd-testDoubleProd.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testDoubleProd_CFLAGS) $(CFLAGS) -c -o testDoubleProd-testDoubleProd.obj `if test -f 'testDoubleProd.c'; then $(CYGPATH_W) 'testDoubleProd.c'; else $(CYGPATH_W) '$(srcdir)/testDoubleProd.c'; fi` - -testFloatProd-testFloatProd.o: testFloatProd.c -@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testFloatProd_CFLAGS) $(CFLAGS) -MT testFloatProd-testFloatProd.o -MD -MP -MF $(DEPDIR)/testFloatProd-testFloatProd.Tpo -c -o testFloatProd-testFloatProd.o `test -f 'testFloatProd.c' || echo '$(srcdir)/'`testFloatProd.c -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/testFloatProd-testFloatProd.Tpo $(DEPDIR)/testFloatProd-testFloatProd.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testFloatProd.c' object='testFloatProd-testFloatProd.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testFloatProd_CFLAGS) $(CFLAGS) -c -o testFloatProd-testFloatProd.o `test -f 'testFloatProd.c' || echo '$(srcdir)/'`testFloatProd.c - -testFloatProd-testFloatProd.obj: testFloatProd.c -@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testFloatProd_CFLAGS) $(CFLAGS) -MT testFloatProd-testFloatProd.obj -MD -MP -MF $(DEPDIR)/testFloatProd-testFloatProd.Tpo -c -o testFloatProd-testFloatProd.obj `if test -f 'testFloatProd.c'; then $(CYGPATH_W) 'testFloatProd.c'; else $(CYGPATH_W) '$(srcdir)/testFloatProd.c'; fi` -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/testFloatProd-testFloatProd.Tpo $(DEPDIR)/testFloatProd-testFloatProd.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testFloatProd.c' object='testFloatProd-testFloatProd.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testFloatProd_CFLAGS) $(CFLAGS) -c -o testFloatProd-testFloatProd.obj `if test -f 'testFloatProd.c'; then $(CYGPATH_W) 'testFloatProd.c'; else $(CYGPATH_W) '$(srcdir)/testFloatProd.c'; fi` - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -check-TESTS: $(TESTS) - @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \ - srcdir=$(srcdir); export srcdir; \ - list=' $(TESTS) '; \ - if test -n "$$list"; then \ - for tst in $$list; do \ - if test -f ./$$tst; then dir=./; \ - elif test -f $$tst; then dir=; \ - else dir="$(srcdir)/"; fi; \ - if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ - all=`expr $$all + 1`; \ - case " $(XFAIL_TESTS) " in \ - *$$ws$$tst$$ws*) \ - xpass=`expr $$xpass + 1`; \ - failed=`expr $$failed + 1`; \ - echo "XPASS: $$tst"; \ - ;; \ - *) \ - echo "PASS: $$tst"; \ - ;; \ - esac; \ - elif test $$? -ne 77; then \ - all=`expr $$all + 1`; \ - case " $(XFAIL_TESTS) " in \ - *$$ws$$tst$$ws*) \ - xfail=`expr $$xfail + 1`; \ - echo "XFAIL: $$tst"; \ - ;; \ - *) \ - failed=`expr $$failed + 1`; \ - echo "FAIL: $$tst"; \ - ;; \ - esac; \ - else \ - skip=`expr $$skip + 1`; \ - echo "SKIP: $$tst"; \ - fi; \ - done; \ - if test "$$failed" -eq 0; then \ - if test "$$xfail" -eq 0; then \ - banner="All $$all tests passed"; \ - else \ - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ - fi; \ - else \ - if test "$$xpass" -eq 0; then \ - banner="$$failed of $$all tests failed"; \ - else \ - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ - fi; \ - fi; \ - dashes="$$banner"; \ - skipped=""; \ - if test "$$skip" -ne 0; then \ - skipped="($$skip tests were not run)"; \ - test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ - dashes="$$skipped"; \ - fi; \ - report=""; \ - if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ - report="Please report to $(PACKAGE_BUGREPORT)"; \ - test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ - dashes="$$report"; \ - fi; \ - dashes=`echo "$$dashes" | sed s/./=/g`; \ - echo "$$dashes"; \ - echo "$$banner"; \ - test -z "$$skipped" || echo "$$skipped"; \ - test -z "$$report" || echo "$$report"; \ - echo "$$dashes"; \ - test "$$failed" -eq 0; \ - else :; fi - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am - $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) - $(MAKE) $(AM_MAKEFLAGS) check-TESTS -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: - for dir in "$(DESTDIR)$(pkglibdir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ - clean-pkglibLTLIBRARIES mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-exec-am: install-pkglibLTLIBRARIES - -install-html: install-html-am - -install-info: install-info-am - -install-man: - -install-pdf: install-pdf-am - -install-ps: install-ps-am - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-pkglibLTLIBRARIES - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ - clean-checkPROGRAMS clean-generic clean-libtool \ - clean-pkglibLTLIBRARIES ctags distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-pkglibLTLIBRARIES install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \ - uninstall-am uninstall-pkglibLTLIBRARIES - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/statisticsFunctions/prod/ccolumnproda.c b/src/statisticsFunctions/prod/ccolumnproda.c deleted file mode 100644 index 8ea35e21..00000000 --- a/src/statisticsFunctions/prod/ccolumnproda.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008-2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -/* This is a copy/paste with adaptation from sum */ - -#include "prod.h" -#include "multiplication.h" - -void ccolumnproda(floatComplex *in, int lines, int columns, floatComplex * out) { - int i = 0; - - /* - ** First assign first row, just in case - ** out contains non-zero's elements. - */ - for (i = 0 ; i < lines; ++i) - { - out[i] = in[i]; - } - /* - ** Then accumulate in each row. - */ - for (i = lines ; i < lines * columns ; ++i) - { - out[i % lines] = cmuls(out[i % lines] , in[i]); - } -} diff --git a/src/statisticsFunctions/prod/cproda.c b/src/statisticsFunctions/prod/cproda.c deleted file mode 100644 index fe0c65db..00000000 --- a/src/statisticsFunctions/prod/cproda.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008-2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#include "prod.h" -#include "multiplication.h" - - -floatComplex cproda(floatComplex *in, int size) { - floatComplex accumulate = in[0]; - int i = 0; - - - for (i = 1; i < size; ++i) - { - accumulate = cmuls(accumulate,in[i]); - } - return accumulate; - -} - - diff --git a/src/statisticsFunctions/prod/crowproda.c b/src/statisticsFunctions/prod/crowproda.c deleted file mode 100644 index 463895da..00000000 --- a/src/statisticsFunctions/prod/crowproda.c +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008-2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -/* This is a copy/paste with adaptation from sum */ - -#include "prod.h" -#include "multiplication.h" - -void crowproda(floatComplex *in, int lines, int columns, floatComplex * out) { - int i = 0; - - /* - ** First assign first row, just in case - ** out contains non-zero's elements. - */ - for (i = 0 ; i < columns; ++i) - { - out[i] = in[i * lines]; - } - /* - ** Then accumulate in each column. - */ - for (i = 1 ; i <= (lines - 1) * columns ; ++i) - { - out[(i - 1) % columns] = cmuls( out[(i - 1) % columns] , - in[((i - 1) % columns) * lines + 1 + (i - 1) / columns]); - } -} diff --git a/src/statisticsFunctions/prod/dcolumnproda.c b/src/statisticsFunctions/prod/dcolumnproda.c deleted file mode 100644 index 6ecdcdcb..00000000 --- a/src/statisticsFunctions/prod/dcolumnproda.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008-2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -/* This is a copy/paste with adaptation from sum */ - -#include "prod.h" - -void dcolumnproda(double *in, int lines, int columns, double * out) { - int i = 0; - - /* - ** First assign first row, just in case - ** out contains non-zero's elements. - */ - for (i = 0 ; i < lines; ++i) - { - out[i] = in[i]; - } - /* - ** Then accumulate in each row. - */ - for (i = lines ; i < lines * columns ; ++i) - { - out[i % lines] *= in[i]; - } -} diff --git a/src/statisticsFunctions/prod/dproda.c b/src/statisticsFunctions/prod/dproda.c deleted file mode 100644 index cc05890d..00000000 --- a/src/statisticsFunctions/prod/dproda.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008-2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#include "prod.h" - - -double dproda(double *in, int size) { - double accumulate = in[0]; - int i = 0; - - - for (i = 1; i < size; ++i) - { - accumulate *= in[i]; - } - return accumulate; - -} - - diff --git a/src/statisticsFunctions/prod/drowproda.c b/src/statisticsFunctions/prod/drowproda.c deleted file mode 100644 index 14f713c7..00000000 --- a/src/statisticsFunctions/prod/drowproda.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008-2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -/* This is a copy/paste with adaptation from sum */ - -#include "prod.h" - -void drowproda(double *in, int lines, int columns, double * out) { - int i = 0; - - /* - ** First assign first row, just in case - ** out contains non-zero's elements. - */ - for (i = 0 ; i < columns; ++i) - { - out[i] = in[i * lines]; - } - /* - ** Then accumulate in each column. - */ - for (i = 1 ; i <= (lines - 1) * columns ; ++i) - { - out[(i - 1) % columns] *= in[((i - 1) % columns) * lines + 1 + (i - 1) / columns]; - } -} diff --git a/src/statisticsFunctions/prod/scolumnproda.c b/src/statisticsFunctions/prod/scolumnproda.c deleted file mode 100644 index 842d3d18..00000000 --- a/src/statisticsFunctions/prod/scolumnproda.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008-2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -/* This is a copy/paste with adaptation from sum */ - -#include "prod.h" - -void scolumnproda(float *in, int lines, int columns, float * out) { - int i = 0; - - /* - ** First assign first row, just in case - ** out contains non-zero's elements. - */ - for (i = 0 ; i < lines; ++i) - { - out[i] = in[i]; - } - /* - ** Then accumulate in each row. - */ - for (i = lines ; i < lines * columns ; ++i) - { - out[i % lines] *= in[i]; - } -} diff --git a/src/statisticsFunctions/prod/sproda.c b/src/statisticsFunctions/prod/sproda.c deleted file mode 100644 index 9c5bfc24..00000000 --- a/src/statisticsFunctions/prod/sproda.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008-2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#include "prod.h" - - -float sproda(float *in, int size) { - float accumulate = in[0]; - int i = 0; - - - for (i = 1; i < size; ++i) - { - accumulate *= in[i]; - } - return accumulate; - -} - - diff --git a/src/statisticsFunctions/prod/srowproda.c b/src/statisticsFunctions/prod/srowproda.c deleted file mode 100644 index 197072ad..00000000 --- a/src/statisticsFunctions/prod/srowproda.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008-2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -/* This is a copy/paste with adaptation from sum */ - -#include "prod.h" - -void srowproda(float *in, int lines, int columns, float * out) { - int i = 0; - - /* - ** First assign first row, just in case - ** out contains non-zero's elements. - */ - for (i = 0 ; i < columns; ++i) - { - out[i] = in[i * lines]; - } - /* - ** Then accumulate in each column. - */ - for (i = 1 ; i <= (lines - 1) * columns ; ++i) - { - out[(i - 1) % columns] *= in[((i - 1) % columns) * lines + 1 + (i - 1) / columns]; - } -} diff --git a/src/statisticsFunctions/prod/testDoubleProd.c b/src/statisticsFunctions/prod/testDoubleProd.c deleted file mode 100644 index b18ca148..00000000 --- a/src/statisticsFunctions/prod/testDoubleProd.c +++ /dev/null @@ -1,519 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008-2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#include <assert.h> -#include <stdio.h> -#include <math.h> -#include "prod.h" - -/* #define LOCAL_DEBUG */ - -#define ERROR(x) printf("diff = %e\n", x) - -static int dprodsTest(void) { - double value1 = 3.0; - double value2 = 1.123456789; - - printf("\n>>>> prod Double Scalar Test\n"); - assert(dprods(value1) == 3.0); - assert(dprods(value2) == 1.123456789); - - return 0; -} - -static int dprodaTest(void) { - double table1[3] = {3.0, 3.0, 3.0}; - double table2[5] = {9.186784563, - 9.186784563, - 9.186784563, - 9.186784563, - 9.186784563}; - - printf("\n>>>> prod Double Array Test\n"); - printf("%f\n", dproda(table1, 3)); - assert(dproda(table1, 3) == 27.0); - assert((dproda(table2, 5) - (9.186784 * 9.186784 * 9.186784 * 9.186784 * 9.186784)) / dproda(table2, 5) < 3e-16); - return 0; -} - -static int dcolumnprodaTest(void) { - int i = 0; - double table1[9] = {1.0, 4.0, 7.0, 2.0 , 5.0, 8.0, 3.0, 6.0, 9.0}; - double table2[10] = {1.0, 2.0, 3.0, 4.0 , 5.0, 6.0, 7.0, 8.0, 9.0, 10.0}; - double columnProductedTable1_3_3[3] = {0}; - double columnProductedTable1_1_9[1] = {0}; - double columnProductedTable1_9_1[9] = {0}; - double columnProductedTable2_2_5[2] = {0}; - double columnProductedTable2_5_2[5] = {0}; - - printf("\n>>>> Column prod Double Array Test\n"); - /* - [ 1 2 3 ] [ 1*2*3=6 ] - [ 4 5 6 ] => [ 4*5*6=120 ] - [ 7 8 9 ] [ 7*8*9=504 ] - */ - dcolumnproda(table1, 3, 3,columnProductedTable1_3_3); - assert(columnProductedTable1_3_3[0] == 6.0); - assert(columnProductedTable1_3_3[1] == 120.0); - assert(columnProductedTable1_3_3[2] == 504.0); - - /* - [ 1 2 3 4 5 6 7 8 9 ] => [ 362880 ] - */ - dcolumnproda(table1, 1, 9,columnProductedTable1_1_9); - assert(columnProductedTable1_1_9[0] == 362880.0); - - /* - [ 1 ] [ 1 ] - [ 2 ] [ 2 ] - [ 3 ] [ 3 ] - [ 4 ] [ 4 ] - [ 5 ] => [ 5 ] - [ 6 ] [ 6 ] - [ 7 ] [ 7 ] - [ 8 ] [ 8 ] - [ 9 ] [ 9 ] - */ - dcolumnproda(table1, 9, 1,columnProductedTable1_9_1); - for ( i = 0 ; i < 9 ; ++i) { - printf("columnProductedTable1_9_1[%d] = %e\n", i, columnProductedTable1_9_1[i]); - assert(columnProductedTable1_9_1[i] == table1[i]); - } - - /* - [ 1 3 5 7 9 ] [ 945 ] - [ 2 4 6 8 10 ] => [ 3840 ] - */ - dcolumnproda(table2, 2, 5,columnProductedTable2_2_5); - assert(columnProductedTable2_2_5[0] == 945.0); - assert(columnProductedTable2_2_5[1] == 3840.0); - for ( i = 0 ; i < 2 ; ++i) { - printf("columnProductedTable2_2_5[%d] = %e\n", i, columnProductedTable2_2_5[i]); - } - - /* - [ 1 6 ] [ 6 ] - [ 2 7 ] => [ 14 ] - [ 3 8 ] [ 24 ] - [ 4 9 ] [ 36 ] - [ 5 10 ] [ 50 ] - */ - dcolumnproda(table2, 5, 2,columnProductedTable2_5_2); - assert(columnProductedTable2_5_2[0] == 6.0); - assert(columnProductedTable2_5_2[1] == 14.0); - assert(columnProductedTable2_5_2[2] == 24.0); - assert(columnProductedTable2_5_2[3] == 36.0); - assert(columnProductedTable2_5_2[4] == 50.0); - for ( i = 0 ; i < 5 ; ++i) { - printf("columnProductedTable2_5_2[%d] = %e\n", i, columnProductedTable2_5_2[i]); - } - - return 0; -} - -static int drowprodaTest(void) { - int i = 0; - double table1[9] = {1.0, 4.0, 7.0, 2.0 , 5.0, 8.0, 3.0, 6.0, 9.0}; - double table2[10] = {1.0, 2.0, 3.0, 4.0 , 5.0, 6.0, 7.0, 8.0, 9.0, 10.0}; - double rowProductedTable1_3_3[3] = {0}; - double rowProductedTable1_1_9[9] = {0}; - double rowProductedTable1_9_1[1] = {0}; - double rowProductedTable2_2_5[5] = {0}; - double rowProductedTable2_5_2[2] = {0}; - - printf("\n>>>> Row prod Double Array Test\n"); - /* - [ 1 2 3 ] - [ 4 5 6 ] => [ 28 80 162 ] - [ 7 8 9 ] - */ - drowproda(table1, 3, 3,rowProductedTable1_3_3); - for ( i = 0 ; i < 3 ; ++i) { - printf("rowProductedTable1_3_3[%d] = %e\n", i, rowProductedTable1_3_3[i]); - } - assert(rowProductedTable1_3_3[0] == 28.0); - assert(rowProductedTable1_3_3[1] == 80.0); - assert(rowProductedTable1_3_3[2] == 162.0); - - /* - [ 1 2 3 4 5 6 7 8 9 ] => [ 1 2 3 4 5 6 7 8 9 ] - */ - drowproda(table1, 1, 9,rowProductedTable1_1_9); - for ( i = 0 ; i < 9 ; ++i) { - printf("rowProductedTable1_1_9[%d] = %e\n", i, rowProductedTable1_1_9[i]); - assert(rowProductedTable1_1_9[i] == table1[i]); - } - - /* - [ 1 ] - [ 2 ] - [ 3 ] - [ 4 ] - [ 5 ] => [ 362880 ] - [ 6 ] - [ 7 ] - [ 8 ] - [ 9 ] - */ - drowproda(table1, 9, 1,rowProductedTable1_9_1); - assert(rowProductedTable1_9_1[0] == 362880.0); - - /* - [ 1 3 5 7 9 ] - [ 2 4 6 8 10 ] => [ 2 12 30 56 90 ] - */ - drowproda(table2, 2, 5,rowProductedTable2_2_5); - assert(rowProductedTable2_2_5[0] == 2.0); - assert(rowProductedTable2_2_5[1] == 12.0); - assert(rowProductedTable2_2_5[2] == 30.0); - assert(rowProductedTable2_2_5[3] == 56.0); - assert(rowProductedTable2_2_5[4] == 90.0); - for ( i = 0 ; i < 5 ; ++i) { - printf("rowProductedTable2_2_5[%d] = %e\n", i, rowProductedTable2_2_5[i]); - } - - /* - [ 1 6 ] - [ 2 7 ] => [ 120 30240 ] - [ 3 8 ] - [ 4 9 ] - [ 5 10 ] - */ - drowproda(table2, 5, 2,rowProductedTable2_5_2); - assert(rowProductedTable2_5_2[0] == 120.0); - assert(rowProductedTable2_5_2[1] == 30240.0); - for ( i = 0 ; i < 2 ; ++i) { - printf("rowProductedTable2_5_2[%d] = %e\n", i, rowProductedTable2_5_2[i]); - } - - return 0; -} - -static int zprodsTest(void) { - doubleComplex value1 = DoubleComplex(3.0, 3.0); - doubleComplex value2 = DoubleComplex(1.123456789, 1.123456789); - - printf("\n>>>> prod Double Complex Scalar Test\n"); - assert(zreals(zprods(value1)) == 3.0); - assert(zimags(zprods(value1)) == 3.0); - assert(zreals(zprods(value2)) == 1.123456789); - assert(zimags(zprods(value2)) == 1.123456789); - return 0; -} - -static int zprodaTest(void) { - doubleComplex value1 = DoubleComplex(3.0, 3.0); - doubleComplex table1[3]; - doubleComplex value2 = DoubleComplex(9.186784563,9.186784563); - doubleComplex table2[5]; - - printf("\n>>>> prod Double Complex Array Test\n"); - table1[0] = value1; - table1[1] = value1; - table1[2] = value1; - - table2[0] = value2; - table2[1] = value2; - table2[2] = value2; - table2[3] = value2; - table2[4] = value2; - -#ifdef LOCAL_DEBUG - printf("--------\n"); - printf("%e\n", zreals(zproda(table1, 3))); - printf("%e\n", zimags(zproda(table1, 3))); - printf("%1.20f\n", zreals(zproda(table2, 5))); - printf("%1.20f\n", zimags(zproda(table2, 5))); - printf("%1.20f\n", zreals(zproda(table2, 5)) + 261744.55211053110542707); - printf("--------\n"); -#endif - assert(zreals(zproda(table1, 3)) == -54.0); - assert(zimags(zproda(table1, 3)) == 54.0); - assert(fabs(zreals(zproda(table2, 5)) + 261744.55211053110542707) < 3e-16); - assert(fabs(zimags(zproda(table2, 5)) + 261744.55211053110542707) < 3e-16); - - return 0; -} - -static int zrowprodaTest(void) { - int i = 0; - doubleComplex in[12]; - doubleComplex rowProductedIn_4_3[3]; - doubleComplex rowProductedIn_3_4[4]; - doubleComplex rowProductedIn_6_2[2]; - doubleComplex rowProductedIn_2_6[6]; - doubleComplex rowProductedIn_1_12[12]; - doubleComplex rowProductedIn_12_1[1]; - - printf("\n>>>> Row prod Double Complex Array Test\n"); - /* Init input var */ - for (i = 0 ; i < 12 ; ++i) - { - in[i] = DoubleComplex((double) i / 10.0, (11.0 - (double) i) / 10.0); - } - - /* - [ 1.1i 0.4+0.7i 0.8+0.3i ] - [ 0.1+i 0.5+0.6i 0.9+0.2i ] => [ 0.6787000000000000810019 - 0.5456i - [ 0.2+0.9i 0.6+0.5i 1+0.1i ] - 0.3964999999999999635847, - [ 0.3+0.8i 0.7+0.4i 1.1 ] 0.678700000000000192024 + 0.5456i] - */ - zrowproda(in, 4, 3, rowProductedIn_4_3); - for (i = 0 ; i < 3 ; ++i) { - printf("rowProductedIn_4_3[%d] = %e + %ei\n", i, zreals(rowProductedIn_4_3[i]), zimags(rowProductedIn_4_3[i])); - } - assert(fabs(zreals(rowProductedIn_4_3[0]) - 0.6787000000000000810019) < 3e-16); - assert(fabs(zimags(rowProductedIn_4_3[0]) + 0.5456) < 3e-16); - assert(fabs(zreals(rowProductedIn_4_3[1]) + 0.3964999999999999635847) < 3e-16); - assert(fabs(zimags(rowProductedIn_4_3[1]) - 0.0) < 3e-16); - assert(fabs(zreals(rowProductedIn_4_3[2]) - 0.6787000000000000810019) < 3e-16); - assert(fabs(zimags(rowProductedIn_4_3[2]) - 0.5456) < 3e-16); - - /* - [ 1.1i 0.3+0.8i 0.6+0.5i 0.9+0.2i ] - [ 0.1+i 0.4+0.7i 0.7+0.4i 1+0.1i ] => [ - 0.3190000000000000612843 - 0.9680000000000000826006i, - [ 0.2+0.9i 0.5+0.6i 0.8+0.3i 1.1 ] - 0.5380000000000000337508 + 0.0010000000000000563993i, - - 0.0010000000000000008882 + 0.5379999999999999227285i, - 0.9680000000000000826006 + 0.3190000000000000612843i ] - */ - zrowproda(in, 3, 4, rowProductedIn_3_4); - for (i = 0 ; i < 4 ; ++i) { - printf("rowProductedIn_3_4[%d] = %e + %ei\n", i, zreals(rowProductedIn_3_4[i]), zimags(rowProductedIn_3_4[i])); - } - assert(fabs(zreals(rowProductedIn_3_4[0]) + 0.3190000000000000612843) < 3e-16); - assert(fabs(zimags(rowProductedIn_3_4[0]) + 0.9680000000000000826006) < 3e-16); - assert(fabs(zreals(rowProductedIn_3_4[1]) + 0.5380000000000000337508) < 3e-16); - assert(fabs(zimags(rowProductedIn_3_4[1]) - 0.0010000000000000563993 ) < 3e-16); - assert(fabs(zreals(rowProductedIn_3_4[2]) + 0.0010000000000000008882) < 3e-16); - assert(fabs(zimags(rowProductedIn_3_4[2]) - 0.5379999999999999227285) < 3e-16); - assert(fabs(zreals(rowProductedIn_3_4[3]) - 0.9680000000000000826006) < 3e-16); - assert(fabs(zimags(rowProductedIn_3_4[3]) - 0.3190000000000000612843) < 3e-16); - - /* - [ 1.1i 0.6+0.5i ] - [ 0.1+i 0.7+0.4i ] - [ 0.2+0.9i 0.8+0.3i ] => [ 0.1725900000000000766853 + 0.5204650000000000664713i, - [ 0.3+0.8i 0.9+0.2i ] - 0.1725899999999999934186 + 0.5204649999999999554490i ] - [ 0.4+0.7i 1+0.1i ] - [ 0.5+0.6i 1.1 ] - */ - zrowproda(in, 6, 2, rowProductedIn_6_2); - for (i = 0 ; i < 2 ; ++i) { - printf("rowProductedIn_6_2[%d] = %e + %ei\n", i, zreals(rowProductedIn_6_2[i]), zimags(rowProductedIn_6_2[i])); - } - assert(fabs(zreals(rowProductedIn_6_2[0]) - 0.1725900000000000766853) < 3e-16); - assert(fabs(zimags(rowProductedIn_6_2[0]) - 0.5204650000000000664713) < 3e-16); - assert(fabs(zreals(rowProductedIn_6_2[1]) + 0.1725899999999999934186) < 3e-16); - assert(fabs(zimags(rowProductedIn_6_2[1]) - 0.5204649999999999554490 ) < 3e-16); - - /* - [ 1.1i 0.2+0.9i 0.4+0.7i 0.6+0.5i 0.8+0.3i 1+0.1i ] - [ 0.1+i 0.3+0.8i 0.5+0.6i 0.7+0.4i 0.9+0.2i 1.1 ] => [ - 1.1000000000000000888178 + 0.11i, - - 0.6600000000000001421086 + 0.4300000000000000488498i, - - 0.2199999999999999733547 + 0.5899999999999999689138i, - 0.2199999999999999733547 + 0.5899999999999999689138i, - 0.6600000000000001421086 + 0.4300000000000000488498i, - 1.1000000000000000888178 + 0.11i ] - */ - zrowproda(in, 2, 6, rowProductedIn_2_6); - for (i = 0 ; i < 6 ; ++i) { - printf("rowProductedIn_2_6[%d] = %e + %ei\n", i, zreals(rowProductedIn_2_6[i]), zimags(rowProductedIn_2_6[i])); - } - assert(fabs(zreals(rowProductedIn_2_6[0]) + 1.1000000000000000888178) < 3e-16); - assert(fabs(zimags(rowProductedIn_2_6[0]) - 0.11) < 3e-16); - assert(fabs(zreals(rowProductedIn_2_6[1]) + 0.6600000000000001421086) < 3e-16); - assert(fabs(zimags(rowProductedIn_2_6[1]) - 0.4300000000000000488498 ) < 3e-16); - assert(fabs(zreals(rowProductedIn_2_6[2]) + 0.2199999999999999733547) < 3e-16); - assert(fabs(zimags(rowProductedIn_2_6[2]) - 0.5899999999999999689138) < 3e-16); - assert(fabs(zreals(rowProductedIn_2_6[3]) - 0.2199999999999999733547) < 3e-16); - assert(fabs(zimags(rowProductedIn_2_6[3]) - 0.5899999999999999689138 ) < 3e-16); - assert(fabs(zreals(rowProductedIn_2_6[4]) - 0.6600000000000001421086) < 3e-16); - assert(fabs(zimags(rowProductedIn_2_6[4]) - 0.4300000000000000488498) < 3e-16); - assert(fabs(zreals(rowProductedIn_2_6[5]) - 1.1000000000000000888178) < 3e-16); - assert(fabs(zimags(rowProductedIn_2_6[5]) - 0.11 ) < 3e-16); - - /* - [ 1.1i 0.1+i 0.2+0.9i 0.3+0.8i 0.4+0.7i 0.5+0.6i 0.6+0.5i 0.7+0.4i 0.8+0.3i 0.9+0.2i 1+0.1i 1.1 ] - => - [ 1.1i 0.1+i 0.2+0.9i 0.3+0.8i 0.4+0.7i 0.5+0.6i 0.6+0.5i 0.7+0.4i 0.8+0.3i 0.9+0.2i 1+0.1i 1.1 ] - */ - zrowproda(in, 1, 12, rowProductedIn_1_12); - for (i = 0 ; i < 12 ; ++i) { - printf("rowProductedIn_1_12[%d] = %e + %ei\n", i, zreals(rowProductedIn_1_12[i]), zimags(rowProductedIn_1_12[i])); - assert(zreals(rowProductedIn_1_12[i]) == zreals(in[i]) && zimags(rowProductedIn_1_12[i]) == zimags(in[i])); - } - - /* - [ 1.1i ] - [ 0.1+i ] - [ 0.2+0.9i ] - [ 0.3+0.8i ] - [ 0.4+0.7i ] - [ 0.5+0.6i ] - [ 0.6+0.5i ] => [- 0.3006711243250001497351 + 0.0000000000000000038164i ] - [ 0.7+0.4i ] - [ 0.8+0.3i ] - [ 0.9+0.2i ] - [ 1+0.1i ] - [ 1.1 ] - - */ - zrowproda(in, 12, 1, rowProductedIn_12_1); - printf("rowProductedIn_12_1[%d] = %e + %ei\n", 0, zreals(rowProductedIn_12_1[0]), zimags(rowProductedIn_12_1[0])); - assert(fabs(zreals(rowProductedIn_12_1[0]) + 0.3006711243250001497351) < 3e-16); - assert(fabs(zimags(rowProductedIn_12_1[0]) - 0.0000000000000000038164) < 3e-16); - - return 0; -} - -static int zcolumnprodaTest(void) { - int i = 0; - doubleComplex in[12]; - doubleComplex columnProductedIn_4_3[4]; - doubleComplex columnProductedIn_3_4[3]; - doubleComplex columnProductedIn_6_2[6]; - doubleComplex columnProductedIn_2_6[2]; - doubleComplex columnProductedIn_1_12[1]; - doubleComplex columnProductedIn_12_1[12]; - - printf("\n>>>> Columnprod Double Complex Array Test\n"); - /* Init input var */ - for (i = 0 ; i < 12 ; ++i) - { - in[i] = DoubleComplex((double) i / 10.0, (11.0 - (double) i) / 10.0); - } - - /* - [ 1.1i 0.4+0.7i 0.8+0.3i ] [ - 0.7480000000000001092460 + 0.1210000000000001074696i ] - [ 0.1+i 0.5+0.6i 0.9+0.2i ] => [ - 0.6069999999999999840128 + 0.3940000000000001278977i ] - [ 0.2+0.9i 0.6+0.5i 1+0.1i ] [ - 0.3940000000000000168754 + 0.6069999999999999840128i ] - [ 0.3+0.8i 0.7+0.4i 1.1 ] [ - 0.1210000000000000935918 + 0.7479999999999999982236i ] - */ - zcolumnproda(in, 4, 3, columnProductedIn_4_3); - for (i = 0 ; i < 4 ; ++i) { - printf("columnProductedIn_4_3[%d] = %e + %ei\n", i, zreals(columnProductedIn_4_3[i]), zimags(columnProductedIn_4_3[i])); - } - assert(fabs(zreals(columnProductedIn_4_3[0]) + 0.7480000000000001092460) < 3e-16); - assert(fabs(zimags(columnProductedIn_4_3[0]) - 0.1210000000000001074696) < 3e-16); - assert(fabs(zreals(columnProductedIn_4_3[1]) + 0.6069999999999999840128) < 3e-16); - assert(fabs(zimags(columnProductedIn_4_3[1]) - 0.394000000000000127897) < 3e-16); - assert(fabs(zreals(columnProductedIn_4_3[2]) + 0.3940000000000000168754) < 3e-16); - assert(fabs(zimags(columnProductedIn_4_3[2]) - 0.606999999999999984012) < 3e-16); - assert(fabs(zreals(columnProductedIn_4_3[3]) + 0.1210000000000000935918) < 3e-16); - assert(fabs(zimags(columnProductedIn_4_3[3]) - 0.7479999999999999982236) < 3e-16); - - /* - [ 1.1i 0.3+0.8i 0.6+0.5i 0.9+0.2i ] [ - 0.5753000000000000335731 - 0.3564000000000000500933i ] - [ 0.1+i 0.4+0.7i 0.7+0.4i 1+0.1i ] => [ - 0.6564999999999998614442 + 0.0000000000000000693889i ] - [ 0.2+0.9i 0.5+0.6i 0.8+0.3i 1.1 ] [ - 0.5753000000000001445955 + 0.3564000000000001056044i ] - */ - zcolumnproda(in, 3, 4, columnProductedIn_3_4); - for (i = 0 ; i < 3 ; ++i) { - printf("columnProductedIn_3_4[%d] = %e + %ei\n", i, zreals(columnProductedIn_3_4[i]), zimags(columnProductedIn_3_4[i])); - } - assert(fabs(zreals(columnProductedIn_3_4[0]) + 0.5753000000000000335731) < 3e-16); - assert(fabs(zimags(columnProductedIn_3_4[0]) + 0.3564000000000000500933) < 3e-16); - assert(fabs(zreals(columnProductedIn_3_4[1]) + 0.6564999999999998614442) < 3e-16); - assert(fabs(zimags(columnProductedIn_3_4[1]) - 0.0000000000000000693889) < 3e-16); - assert(fabs(zreals(columnProductedIn_3_4[2]) + 0.5753000000000001445955) < 3e-16); - assert(fabs(zimags(columnProductedIn_3_4[2]) - 0.3564000000000001056044) < 3e-16); - - /* - [ 1.1i 0.6+0.5i ] [ - 0.5500000000000000444089 + 0.6600000000000000310862i ] - [ 0.1+i 0.7+0.4i ] [ - 0.3300000000000000155431 + 0.7399999999999999911182i ] - [ 0.2+0.9i 0.8+0.3i ] => [ - 0.1099999999999999866773 + 0.7800000000000000266454i ] - [ 0.3+0.8i 0.9+0.2i ] [ 0.1099999999999999866773 + 0.7800000000000000266454i ] - [ 0.4+0.7i 1+0.1i ] [ 0.3300000000000000155431 + 0.7399999999999999911182i ] - [ 0.5+0.6i 1.1 ] [ 0.5500000000000000444089 + 0.6600000000000000310862i ] - */ - zcolumnproda(in, 6, 2, columnProductedIn_6_2); - for (i = 0 ; i < 6 ; ++i) { - printf("columnProductedIn_6_2[%d] = %e + %ei\n", i, zreals(columnProductedIn_6_2[i]), zimags(columnProductedIn_6_2[i])); - } - assert(fabs(zreals(columnProductedIn_6_2[0]) + 0.5500000000000000444089) < 3e-16); - assert(fabs(zimags(columnProductedIn_6_2[0]) - 0.6600000000000000310862) < 3e-16); - assert(fabs(zreals(columnProductedIn_6_2[1]) + 0.3300000000000000155431) < 3e-16); - assert(fabs(zimags(columnProductedIn_6_2[1]) - 0.7399999999999999911182) < 3e-16); - assert(fabs(zreals(columnProductedIn_6_2[2]) + 0.1099999999999999866773) < 3e-16); - assert(fabs(zimags(columnProductedIn_6_2[2]) - 0.7800000000000000266454) < 3e-16); - assert(fabs(zreals(columnProductedIn_6_2[3]) - 0.1099999999999999866773) < 3e-16); - assert(fabs(zimags(columnProductedIn_6_2[3]) - 0.7800000000000000266454) < 3e-16); - assert(fabs(zreals(columnProductedIn_6_2[4]) - 0.3300000000000000155431) < 3e-16); - assert(fabs(zimags(columnProductedIn_6_2[4]) - 0.7399999999999999911182) < 3e-16); - assert(fabs(zreals(columnProductedIn_6_2[5]) - 0.5500000000000000444089) < 3e-16); - assert(fabs(zimags(columnProductedIn_6_2[5]) - 0.6600000000000000310862) < 3e-16); - - /* - [ 1.1i 0.2+0.9i 0.4+0.7i 0.6+0.5i 0.8+0.3i 1+0.1i ] [ 0.2212649999999999894662 - 0.5017100000000001003286i ] - [ 0.1+i 0.3+0.8i 0.5+0.6i 0.7+0.4i 0.9+0.2i 1.1 ] => [ - 0.2212649999999999894662 - 0.5017100000000001003286i ] - */ - zcolumnproda(in, 2, 6, columnProductedIn_2_6); - for (i = 0 ; i < 2 ; ++i) { - printf("columnProductedIn_2_6[%d] = %e + %ei\n", i, zreals(columnProductedIn_2_6[i]), zimags(columnProductedIn_2_6[i])); - } - assert(fabs(zreals(columnProductedIn_2_6[0]) - 0.2212649999999999894662) < 3e-16); - assert(fabs(zimags(columnProductedIn_2_6[0]) + 0.5017100000000001003286) < 3e-16); - assert(fabs(zreals(columnProductedIn_2_6[1]) + 0.2212649999999999894662) < 3e-16); - assert(fabs(zimags(columnProductedIn_2_6[1]) + 0.5017100000000001003286) < 3e-16); - - /* - [ 1.1i 0.1+i 0.2+0.9i 0.3+0.8i 0.4+0.7i 0.5+0.6i 0.6+0.5i 0.7+0.4i 0.8+0.3i 0.9+0.2i 1+0.1i 1.1 ] - => - [ - 0.3006711243250001497351 + 0.0000000000000000038164i ] - */ - zcolumnproda(in, 1, 12, columnProductedIn_1_12); - printf("columnProductedIn_1_12[%d] = %e + %ei\n", 0, zreals(columnProductedIn_1_12[0]), zimags(columnProductedIn_1_12[0])); - assert(fabs(zreals(columnProductedIn_1_12[0]) + 0.3006711243250001497351) < 3e-16); - assert(fabs(zimags(columnProductedIn_1_12[0]) - 0.0000000000000000038164) < 3e-16); - - - /* - [ 1.1i ] => [ 1.1i ] - [ 0.1+i ] => [ 0.1+i ] - [ 0.2+0.9i ] => [ 0.2+0.9i ] - [ 0.3+0.8i ] => [ 0.3+0.8i ] - [ 0.4+0.7i ] => [ 0.4+0.7i ] - [ 0.5+0.6i ] => [ 0.5+0.6i ] - [ 0.6+0.5i ] => [ 0.6+0.5i ] - [ 0.7+0.4i ] => [ 0.7+0.4i ] - [ 0.8+0.3i ] => [ 0.8+0.3i ] - [ 0.9+0.2i ] => [ 0.9+0.2i ] - [ 1+0.1i ] => [ 1+0.1i ] - [ 1.1 ] => [ 1.1 ] - */ - zcolumnproda(in, 12, 1, columnProductedIn_12_1); - for (i = 0 ; i < 12 ; ++i) { - printf("columnProductedIn_12_1[%d] = %e + %ei\n", i, zreals(columnProductedIn_12_1[i]), zimags(columnProductedIn_12_1[i])); - assert(zreals(columnProductedIn_12_1[i]) == zreals(in[i]) && zimags(columnProductedIn_12_1[i]) == zimags(in[i])); - } - - return 0; -} - -static int testprod(void) { - - dprodsTest(); - dprodaTest(); - drowprodaTest(); - dcolumnprodaTest(); - zprodsTest(); - zprodaTest(); - zrowprodaTest(); - zcolumnprodaTest(); - - return 0; -} - -int main(void) { - assert(testprod() == 0); - return 0; -} diff --git a/src/statisticsFunctions/prod/testFloatProd.c b/src/statisticsFunctions/prod/testFloatProd.c deleted file mode 100644 index b5fe20c4..00000000 --- a/src/statisticsFunctions/prod/testFloatProd.c +++ /dev/null @@ -1,527 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008-2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#include <assert.h> -#include <stdio.h> -#include <math.h> -#include "prod.h" - - #define LOCAL_DEBUG - -static int sprodsTest(void) { - float value1 = 3.0f; - float value2 = 1.123456789f; - - printf("\n>>>> Prod Float Scalar Test\n"); - assert(sprods(value1) == 3.0f); - assert(sprods(value2) == 1.123456789f); - - return 0; -} - -static int sprodaTest(void) { - float table1[3] = {3.0f, 3.0f, 3.0f}; - float table2[5] = {9.186784563f, - 9.186784563f, - 9.186784563f, - 9.186784563f, - 9.186784563f}; - - printf("\n>>>> Prod Float Array Test\n"); - printf("%f\n", sproda(table1, 3)); - assert(sproda(table1, 3) == 27.0f); - assert((sproda(table2, 5) - (9.186784f * 9.186784f * 9.186784f * 9.186784f * 9.186784f)) / sproda(table2, 5) < 1e-6); - return 0; -} - -static int scolumnprodaTest(void) { - int i = 0; - float table1[9] = {1.0f, 4.0f, 7.0f, 2.0f , 5.0f, 8.0f, 3.0f, 6.0f, 9.0f}; - float table2[10] = {1.0f, 2.0f, 3.0f, 4.0f , 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f}; - float columnProductedTable1_3_3[3] = {0}; - float columnProductedTable1_1_9[1] = {0}; - float columnProductedTable1_9_1[9] = {0}; - float columnProductedTable2_2_5[2] = {0}; - float columnProductedTable2_5_2[5] = {0}; - - printf("\n>>>> Column Prod Float Array Test\n"); - /* - [ 1 2 3 ] [ 1*2*3=6 ] - [ 4 5 6 ] => [ 4*5*6=120 ] - [ 7 8 9 ] [ 7*8*9=504 ] - */ - scolumnproda(table1, 3, 3,columnProductedTable1_3_3); - assert(columnProductedTable1_3_3[0] == 6.0f); - assert(columnProductedTable1_3_3[1] == 120.0f); - assert(columnProductedTable1_3_3[2] == 504.0f); - - /* - [ 1 2 3 4 5 6 7 8 9 ] => [ 362880 ] - */ - scolumnproda(table1, 1, 9,columnProductedTable1_1_9); - assert(columnProductedTable1_1_9[0] == 362880.0f); - - /* - [ 1 ] [ 1 ] - [ 2 ] [ 2 ] - [ 3 ] [ 3 ] - [ 4 ] [ 4 ] - [ 5 ] => [ 5 ] - [ 6 ] [ 6 ] - [ 7 ] [ 7 ] - [ 8 ] [ 8 ] - [ 9 ] [ 9 ] - */ - scolumnproda(table1, 9, 1,columnProductedTable1_9_1); - for ( i = 0 ; i < 9 ; ++i) { - printf("columnProductedTable1_9_1[%d] = %e\n", i, columnProductedTable1_9_1[i]); - assert(columnProductedTable1_9_1[i] == table1[i]); - } - - /* - [ 1 3 5 7 9 ] [ 945 ] - [ 2 4 6 8 10 ] => [ 3840 ] - */ - scolumnproda(table2, 2, 5,columnProductedTable2_2_5); - assert(columnProductedTable2_2_5[0] == 945.0f); - assert(columnProductedTable2_2_5[1] == 3840.0f); - for ( i = 0 ; i < 2 ; ++i) { - printf("columnProductedTable2_2_5[%d] = %e\n", i, columnProductedTable2_2_5[i]); - } - - /* - [ 1 6 ] [ 6 ] - [ 2 7 ] => [ 14 ] - [ 3 8 ] [ 24 ] - [ 4 9 ] [ 36 ] - [ 5 10 ] [ 50 ] - */ - scolumnproda(table2, 5, 2,columnProductedTable2_5_2); - assert(columnProductedTable2_5_2[0] == 6.0f); - assert(columnProductedTable2_5_2[1] == 14.0f); - assert(columnProductedTable2_5_2[2] == 24.0f); - assert(columnProductedTable2_5_2[3] == 36.0f); - assert(columnProductedTable2_5_2[4] == 50.0f); - for ( i = 0 ; i < 5 ; ++i) { - printf("columnProductedTable2_5_2[%d] = %e\n", i, columnProductedTable2_5_2[i]); - } - - return 0; -} - -static int srowprodaTest(void) { - int i = 0; - float table1[9] = {1.0f, 4.0f, 7.0f, 2.0f , 5.0f, 8.0f, 3.0f, 6.0f, 9.0f}; - float table2[10] = {1.0f, 2.0f, 3.0f, 4.0f , 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f}; - float rowProductedTable1_3_3[3] = {0}; - float rowProductedTable1_1_9[9] = {0}; - float rowProductedTable1_9_1[1] = {0}; - float rowProductedTable2_2_5[5] = {0}; - float rowProductedTable2_5_2[2] = {0}; - - printf("\n>>>> Row Prod Float Array Test\n"); - /* - [ 1 2 3 ] - [ 4 5 6 ] => [ 28 80 162 ] - [ 7 8 9 ] - */ - srowproda(table1, 3, 3,rowProductedTable1_3_3); - for ( i = 0 ; i < 3 ; ++i) { - printf("rowProductedTable1_3_3[%d] = %e\n", i, rowProductedTable1_3_3[i]); - } - assert(rowProductedTable1_3_3[0] == 28.0f); - assert(rowProductedTable1_3_3[1] == 80.0f); - assert(rowProductedTable1_3_3[2] == 162.0f); - - /* - [ 1 2 3 4 5 6 7 8 9 ] => [ 1 2 3 4 5 6 7 8 9 ] - */ - srowproda(table1, 1, 9,rowProductedTable1_1_9); - for ( i = 0 ; i < 9 ; ++i) { - printf("rowProductedTable1_1_9[%d] = %e\n", i, rowProductedTable1_1_9[i]); - assert(rowProductedTable1_1_9[i] == table1[i]); - } - - /* - [ 1 ] - [ 2 ] - [ 3 ] - [ 4 ] - [ 5 ] => [ 362880 ] - [ 6 ] - [ 7 ] - [ 8 ] - [ 9 ] - */ - srowproda(table1, 9, 1,rowProductedTable1_9_1); - assert(rowProductedTable1_9_1[0] == 362880.0f); - - /* - [ 1 3 5 7 9 ] - [ 2 4 6 8 10 ] => [ 2 12 30 56 90 ] - */ - srowproda(table2, 2, 5,rowProductedTable2_2_5); - assert(rowProductedTable2_2_5[0] == 2.0f); - assert(rowProductedTable2_2_5[1] == 12.0f); - assert(rowProductedTable2_2_5[2] == 30.0f); - assert(rowProductedTable2_2_5[3] == 56.0f); - assert(rowProductedTable2_2_5[4] == 90.0f); - for ( i = 0 ; i < 5 ; ++i) { - printf("rowProductedTable2_2_5[%d] = %e\n", i, rowProductedTable2_2_5[i]); - } - - /* - [ 1 6 ] - [ 2 7 ] => [ 120 30240 ] - [ 3 8 ] - [ 4 9 ] - [ 5 10 ] - */ - srowproda(table2, 5, 2,rowProductedTable2_5_2); - assert(rowProductedTable2_5_2[0] == 120.0f); - assert(rowProductedTable2_5_2[1] == 30240.0f); - for ( i = 0 ; i < 2 ; ++i) { - printf("rowProductedTable2_5_2[%d] = %e\n", i, rowProductedTable2_5_2[i]); - } - - return 0; -} - -static int cprodsTest(void) { - floatComplex value1 = FloatComplex(3.0f, 3.0f); - floatComplex value2 = FloatComplex(1.123456789f, 1.123456789f); - - printf("\n>>>> Prod Float Complex Scalar Test\n"); - assert(creals(cprods(value1)) == 3.0f); - assert(cimags(cprods(value1)) == 3.0f); - assert(creals(cprods(value2)) == 1.123456789f); - assert(cimags(cprods(value2)) == 1.123456789f); - return 0; -} - -static int cprodaTest(void) { - floatComplex value1 = FloatComplex(3.0f, 3.0f); - floatComplex table1[3]; - floatComplex value2 = FloatComplex(9.186784563f,9.186784563f); - floatComplex table2[5]; - - printf("\n>>>> Prod Float Complex Array Test\n"); - table1[0] = value1; - table1[1] = value1; - table1[2] = value1; - - table2[0] = value2; - table2[1] = value2; - table2[2] = value2; - table2[3] = value2; - table2[4] = value2; - -#ifdef LOCAL_DEBUG - printf("--------\n"); - printf("%e\n", creals(cproda(table1, 3))); - printf("%e\n", cimags(cproda(table1, 3))); - printf("%1.20f\n", creals(cproda(table2, 5))); - printf("%1.20f\n", cimags(cproda(table2, 5))); - printf("%1.20f\n", creals(cproda(table2, 5)) + 261744.55211053110542707f); - printf("--------\n"); -#endif - - assert(creals(cproda(table1, 3)) == -54.0f); - assert(cimags(cproda(table1, 3)) == 54.0f); - assert(fabs(creals(cproda(table2, 5)) + 261744.55211053110542707f)/creals(cproda(table2, 5)) < 1e-06); - assert(fabs(cimags(cproda(table2, 5)) + 261744.55211053110542707f)/cimags(cproda(table2, 5)) < 1e-06); - - return 0; -} - -static int crowprodaTest(void) { - int i = 0; - floatComplex in[12]; - floatComplex rowProductedIn_4_3[3]; - floatComplex rowProductedIn_3_4[4]; - floatComplex rowProductedIn_6_2[2]; - floatComplex rowProductedIn_2_6[6]; - floatComplex rowProductedIn_1_12[12]; - floatComplex rowProductedIn_12_1[1]; - - printf("\n>>>> Row Prod Float Complex Array Test\n"); - /* Init input var */ - for (i = 0 ; i < 12 ; ++i) - { - in[i] = FloatComplex((float) i / 10.0f, (11.0f - (float) i) / 10.0f); - } - - /* - [ 1.1i 0.4+0.7i 0.8+0.3i ] - [ 0.1+i 0.5+0.6i 0.9+0.2i ] => [ 0.6787000000000000810019 - 0.5456i - [ 0.2+0.9i 0.6+0.5i 1+0.1i ] - 0.3964999999999999635847, - [ 0.3+0.8i 0.7+0.4i 1.1 ] 0.678700000000000192024 + 0.5456i] - */ - crowproda(in, 4, 3, rowProductedIn_4_3); - for (i = 0 ; i < 3 ; ++i) { - printf("rowProductedIn_4_3[%d] = %e + %ei\n", i, creals(rowProductedIn_4_3[i]), cimags(rowProductedIn_4_3[i])); - } - assert(fabs(creals(rowProductedIn_4_3[0]) - 0.6787000000000000810019f) < 1e-06); - assert(fabs(cimags(rowProductedIn_4_3[0]) + 0.5456f) < 1e-06); - assert(fabs(creals(rowProductedIn_4_3[1]) + 0.3964999999999999635847f) < 1e-06); - assert(fabs(cimags(rowProductedIn_4_3[1]) - 0.0f) < 1e-06); - assert(fabs(creals(rowProductedIn_4_3[2]) - 0.6787000000000000810019f) < 1e-06); - assert(fabs(cimags(rowProductedIn_4_3[2]) - 0.5456f) < 1e-06); - - - /* - [ 1.1i 0.3+0.8i 0.6+0.5i 0.9+0.2i ] - [ 0.1+i 0.4+0.7i 0.7+0.4i 1+0.1i ] => [ - 0.3190000000000000612843 - 0.9680000000000000826006i, - [ 0.2+0.9i 0.5+0.6i 0.8+0.3i 1.1 ] - 0.5380000000000000337508 + 0.0010000000000000563993i, - - 0.0010000000000000008882 + 0.5379999999999999227285i, - 0.9680000000000000826006 + 0.3190000000000000612843i ] - */ - crowproda(in, 3, 4, rowProductedIn_3_4); - for (i = 0 ; i < 4 ; ++i) { - printf("rowProductedIn_3_4[%d] = %e + %ei\n", i, creals(rowProductedIn_3_4[i]), cimags(rowProductedIn_3_4[i])); - } - assert(fabs(creals(rowProductedIn_3_4[0]) + 0.3190000000000000612843f) < 1e-06); - assert(fabs(cimags(rowProductedIn_3_4[0]) + 0.9680000000000000826006f) < 1e-06); - assert(fabs(creals(rowProductedIn_3_4[1]) + 0.5380000000000000337508f) < 1e-06); - assert(fabs(cimags(rowProductedIn_3_4[1]) - 0.0010000000000000563993 ) < 1e-06); - assert(fabs(creals(rowProductedIn_3_4[2]) + 0.0010000000000000008882f) < 1e-06); - assert(fabs(cimags(rowProductedIn_3_4[2]) - 0.5379999999999999227285f) < 1e-06); - assert(fabs(creals(rowProductedIn_3_4[3]) - 0.9680000000000000826006f) < 1e-06); - assert(fabs(cimags(rowProductedIn_3_4[3]) - 0.3190000000000000612843f) < 1e-06); - - - /* - [ 1.1i 0.6+0.5i ] - [ 0.1+i 0.7+0.4i ] - [ 0.2+0.9i 0.8+0.3i ] => [ 0.1725900000000000766853 + 0.5204650000000000664713i, - [ 0.3+0.8i 0.9+0.2i ] - 0.1725899999999999934186 + 0.5204649999999999554490i ] - [ 0.4+0.7i 1+0.1i ] - [ 0.5+0.6i 1.1 ] - */ - crowproda(in, 6, 2, rowProductedIn_6_2); - for (i = 0 ; i < 2 ; ++i) { - printf("rowProductedIn_6_2[%d] = %e + %ei\n", i, creals(rowProductedIn_6_2[i]), cimags(rowProductedIn_6_2[i])); - } - - assert(fabs(creals(rowProductedIn_6_2[0]) - 0.1725900000000000766853f) < 1e-06); - assert(fabs(cimags(rowProductedIn_6_2[0]) - 0.5204650000000000664713f) < 1e-06); - assert(fabs(creals(rowProductedIn_6_2[1]) + 0.1725899999999999934186f) < 1e-06); - assert(fabs(cimags(rowProductedIn_6_2[1]) - 0.5204649999999999554490 ) < 1e-06); - - - /* - [ 1.1i 0.2+0.9i 0.4+0.7i 0.6+0.5i 0.8+0.3i 1+0.1i ] - [ 0.1+i 0.3+0.8i 0.5+0.6i 0.7+0.4i 0.9+0.2i 1.1 ] => [ - 1.1000000000000000888178 + 0.11i, - - 0.6600000000000001421086 + 0.4300000000000000488498i, - - 0.2199999999999999733547 + 0.5899999999999999689138i, - 0.2199999999999999733547 + 0.5899999999999999689138i, - 0.6600000000000001421086 + 0.4300000000000000488498i, - 1.1000000000000000888178 + 0.11i ] - - */ - crowproda(in, 2, 6, rowProductedIn_2_6); - for (i = 0 ; i < 6 ; ++i) { - printf("rowProductedIn_2_6[%d] = %e + %ei\n", i, creals(rowProductedIn_2_6[i]), cimags(rowProductedIn_2_6[i])); - } - - assert(fabs(creals(rowProductedIn_2_6[0]) + 1.1000000000000000888178f) < 1e-06); - assert(fabs(cimags(rowProductedIn_2_6[0]) - 0.11f) < 1e-06); - assert(fabs(creals(rowProductedIn_2_6[1]) + 0.6600000000000001421086f) < 1e-06); - assert(fabs(cimags(rowProductedIn_2_6[1]) - 0.4300000000000000488498 ) < 1e-06); - assert(fabs(creals(rowProductedIn_2_6[2]) + 0.2199999999999999733547f) < 1e-06); - assert(fabs(cimags(rowProductedIn_2_6[2]) - 0.5899999999999999689138f) < 1e-06); - assert(fabs(creals(rowProductedIn_2_6[3]) - 0.2199999999999999733547f) < 1e-06); - assert(fabs(cimags(rowProductedIn_2_6[3]) - 0.5899999999999999689138 ) < 1e-06); - assert(fabs(creals(rowProductedIn_2_6[4]) - 0.6600000000000001421086f) < 1e-06); - assert(fabs(cimags(rowProductedIn_2_6[4]) - 0.4300000000000000488498f) < 1e-06); - assert(fabs(creals(rowProductedIn_2_6[5]) - 1.1000000000000000888178f) < 1e-06); - assert(fabs(cimags(rowProductedIn_2_6[5]) - 0.11 ) < 1e-06); - - - /* - [ 1.1i 0.1+i 0.2+0.9i 0.3+0.8i 0.4+0.7i 0.5+0.6i 0.6+0.5i 0.7+0.4i 0.8+0.3i 0.9+0.2i 1+0.1i 1.1 ] - => [ 1.1i 0.1+i 0.2+0.9i 0.3+0.8i 0.4+0.7i 0.5+0.6i 0.6+0.5i 0.7+0.4i 0.8+0.3i 0.9+0.2i 1+0.1i 1.1 ] - */ - crowproda(in, 1, 12, rowProductedIn_1_12); - for (i = 0 ; i < 12 ; ++i) { - printf("rowProductedIn_1_12[%d] = %e + %ei\n", i, creals(rowProductedIn_1_12[i]), cimags(rowProductedIn_1_12[i])); - assert(creals(rowProductedIn_1_12[i]) == creals(in[i]) && cimags(rowProductedIn_1_12[i]) == cimags(in[i])); - } - - - /* - [ 1.1i ] - [ 0.1+i ] - [ 0.2+0.9i ] - [ 0.3+0.8i ] - [ 0.4+0.7i ] - [ 0.5+0.6i ] - [ 0.6+0.5i ] => [- 0.3006711243250001497351 + 0.0000000000000000038164i ] - [ 0.7+0.4i ] - [ 0.8+0.3i ] - [ 0.9+0.2i ] - [ 1+0.1i ] - [ 1.1 ] - - - */ - crowproda(in, 12, 1, rowProductedIn_12_1); - printf("rowProductedIn_12_1[%d] = %e + %ei\n", 0, creals(rowProductedIn_12_1[0]), cimags(rowProductedIn_12_1[0])); - assert(fabs(creals(rowProductedIn_12_1[0]) + 0.3006711243250001497351f) < 1e-06); - assert(fabs(cimags(rowProductedIn_12_1[0]) - 0.0000000000000000038164f) < 1e-06); - - return 0; -} - -static int ccolumnprodaTest(void) { - int i = 0; - floatComplex in[12]; - floatComplex columnProductedIn_4_3[4]; - floatComplex columnProductedIn_3_4[3]; - floatComplex columnProductedIn_6_2[6]; - floatComplex columnProductedIn_2_6[2]; - floatComplex columnProductedIn_1_12[1]; - floatComplex columnProductedIn_12_1[12]; - - printf("\n>>>> ColumnProd Float Complex Array Test\n"); - /* Init input var */ - for (i = 0 ; i < 12 ; ++i) - { - in[i] = FloatComplex((float) i / 10.0f, (11.0f - (float) i) / 10.0f); - } - - /* - [ 1.1i 0.4+0.7i 0.8+0.3i ] [ - 0.7480000000000001092460 + 0.1210000000000001074696i ] - [ 0.1+i 0.5+0.6i 0.9+0.2i ] => [ - 0.6069999999999999840128 + 0.3940000000000001278977i ] - [ 0.2+0.9i 0.6+0.5i 1+0.1i ] [ - 0.3940000000000000168754 + 0.6069999999999999840128i ] - [ 0.3+0.8i 0.7+0.4i 1.1 ] [ - 0.1210000000000000935918 + 0.7479999999999999982236i ] - */ - ccolumnproda(in, 4, 3, columnProductedIn_4_3); - for (i = 0 ; i < 4 ; ++i) { - printf("columnProductedIn_4_3[%d] = %e + %ei\n", i, creals(columnProductedIn_4_3[i]), cimags(columnProductedIn_4_3[i])); - } - assert(fabs(creals(columnProductedIn_4_3[0]) + 0.7480000000000001092460f) < 1e-06); - assert(fabs(cimags(columnProductedIn_4_3[0]) - 0.1210000000000001074696f) < 1e-06); - assert(fabs(creals(columnProductedIn_4_3[1]) + 0.6069999999999999840128f) < 1e-06); - assert(fabs(cimags(columnProductedIn_4_3[1]) - 0.394000000000000127897f) < 1e-06); - assert(fabs(creals(columnProductedIn_4_3[2]) + 0.3940000000000000168754f) < 1e-06); - assert(fabs(cimags(columnProductedIn_4_3[2]) - 0.606999999999999984012f) < 1e-06); - assert(fabs(creals(columnProductedIn_4_3[3]) + 0.1210000000000000935918f) < 1e-06); - assert(fabs(cimags(columnProductedIn_4_3[3]) - 0.7479999999999999982236f) < 1e-06); - - /* - [ 1.1i 0.3+0.8i 0.6+0.5i 0.9+0.2i ] [ - 0.5753000000000000335731 - 0.3564000000000000500933i ] - [ 0.1+i 0.4+0.7i 0.7+0.4i 1+0.1i ] => [ - 0.6564999999999998614442 + 0.0000000000000000693889i ] - [ 0.2+0.9i 0.5+0.6i 0.8+0.3i 1.1 ] [ - 0.5753000000000001445955 + 0.3564000000000001056044i ] - */ - ccolumnproda(in, 3, 4, columnProductedIn_3_4); - for (i = 0 ; i < 3 ; ++i) { - printf("columnProductedIn_3_4[%d] = %e + %ei\n", i, creals(columnProductedIn_3_4[i]), cimags(columnProductedIn_3_4[i])); - } - assert(fabs(creals(columnProductedIn_3_4[0]) + 0.5753000000000000335731f) < 1e-06); - assert(fabs(cimags(columnProductedIn_3_4[0]) + 0.3564000000000000500933f) < 1e-06); - assert(fabs(creals(columnProductedIn_3_4[1]) + 0.6564999999999998614442f) < 1e-06); - assert(fabs(cimags(columnProductedIn_3_4[1]) - 0.0000000000000000693889f) < 1e-06); - assert(fabs(creals(columnProductedIn_3_4[2]) + 0.5753000000000001445955f) < 1e-06); - assert(fabs(cimags(columnProductedIn_3_4[2]) - 0.3564000000000001056044f) < 1e-06); - - /* - [ 1.1i 0.6+0.5i ] [ - 0.5500000000000000444089 + 0.6600000000000000310862i ] - [ 0.1+i 0.7+0.4i ] [ - 0.3300000000000000155431 + 0.7399999999999999911182i ] - [ 0.2+0.9i 0.8+0.3i ] => [ - 0.1099999999999999866773 + 0.7800000000000000266454i ] - [ 0.3+0.8i 0.9+0.2i ] [ 0.1099999999999999866773 + 0.7800000000000000266454i ] - [ 0.4+0.7i 1+0.1i ] [ 0.3300000000000000155431 + 0.7399999999999999911182i ] - [ 0.5+0.6i 1.1 ] [ 0.5500000000000000444089 + 0.6600000000000000310862i ] - */ - ccolumnproda(in, 6, 2, columnProductedIn_6_2); - for (i = 0 ; i < 6 ; ++i) { - printf("columnProductedIn_6_2[%d] = %e + %ei\n", i, creals(columnProductedIn_6_2[i]), cimags(columnProductedIn_6_2[i])); - } - assert(fabs(creals(columnProductedIn_6_2[0]) + 0.5500000000000000444089f) < 1e-06); - assert(fabs(cimags(columnProductedIn_6_2[0]) - 0.6600000000000000310862f) < 1e-06); - assert(fabs(creals(columnProductedIn_6_2[1]) + 0.3300000000000000155431f) < 1e-06); - assert(fabs(cimags(columnProductedIn_6_2[1]) - 0.7399999999999999911182f) < 1e-06); - assert(fabs(creals(columnProductedIn_6_2[2]) + 0.1099999999999999866773f) < 1e-06); - assert(fabs(cimags(columnProductedIn_6_2[2]) - 0.7800000000000000266454f) < 1e-06); - assert(fabs(creals(columnProductedIn_6_2[3]) - 0.1099999999999999866773f) < 1e-06); - assert(fabs(cimags(columnProductedIn_6_2[3]) - 0.7800000000000000266454f) < 1e-06); - assert(fabs(creals(columnProductedIn_6_2[4]) - 0.3300000000000000155431f) < 1e-06); - assert(fabs(cimags(columnProductedIn_6_2[4]) - 0.7399999999999999911182f) < 1e-06); - assert(fabs(creals(columnProductedIn_6_2[5]) - 0.5500000000000000444089f) < 1e-06); - assert(fabs(cimags(columnProductedIn_6_2[5]) - 0.6600000000000000310862f) < 1e-06); - - /* - [ 1.1i 0.2+0.9i 0.4+0.7i 0.6+0.5i 0.8+0.3i 1+0.1i ] [ 0.2212649999999999894662 - 0.5017100000000001003286i ] - [ 0.1+i 0.3+0.8i 0.5+0.6i 0.7+0.4i 0.9+0.2i 1.1 ] => [ - 0.2212649999999999894662 - 0.5017100000000001003286i ] - */ - ccolumnproda(in, 2, 6, columnProductedIn_2_6); - for (i = 0 ; i < 2 ; ++i) { - printf("columnProductedIn_2_6[%d] = %e + %ei\n", i, creals(columnProductedIn_2_6[i]), cimags(columnProductedIn_2_6[i])); - } - assert(fabs(creals(columnProductedIn_2_6[0]) - 0.2212649999999999894662f) < 1e-06); - assert(fabs(cimags(columnProductedIn_2_6[0]) + 0.5017100000000001003286f) < 1e-06); - assert(fabs(creals(columnProductedIn_2_6[1]) + 0.2212649999999999894662f) < 1e-06); - assert(fabs(cimags(columnProductedIn_2_6[1]) + 0.5017100000000001003286f) < 1e-06); - - /* - [ 1.1i 0.1+i 0.2+0.9i 0.3+0.8i 0.4+0.7i 0.5+0.6i 0.6+0.5i 0.7+0.4i 0.8+0.3i 0.9+0.2i 1+0.1i 1.1 ] - => - [ - 0.3006711243250001497351 + 0.0000000000000000038164i ] - - */ - ccolumnproda(in, 1, 12, columnProductedIn_1_12); - printf("columnProductedIn_1_12[%d] = %e + %ei\n", 0, creals(columnProductedIn_1_12[0]), cimags(columnProductedIn_1_12[0])); - assert(fabs(creals(columnProductedIn_1_12[0]) + 0.3006711243250001497351f) < 1e-06); - assert(fabs(cimags(columnProductedIn_1_12[0]) - 0.0000000000000000038164f) < 1e-06); - - - /* - [ 1.1i ] => [ 1.1i ] - [ 0.1+i ] => [ 0.1+i ] - [ 0.2+0.9i ] => [ 0.2+0.9i ] - [ 0.3+0.8i ] => [ 0.3+0.8i ] - [ 0.4+0.7i ] => [ 0.4+0.7i ] - [ 0.5+0.6i ] => [ 0.5+0.6i ] - [ 0.6+0.5i ] => [ 0.6+0.5i ] - [ 0.7+0.4i ] => [ 0.7+0.4i ] - [ 0.8+0.3i ] => [ 0.8+0.3i ] - [ 0.9+0.2i ] => [ 0.9+0.2i ] - [ 1+0.1i ] => [ 1+0.1i ] - [ 1.1 ] => [ 1.1 ] - */ - ccolumnproda(in, 12, 1, columnProductedIn_12_1); - for (i = 0 ; i < 12 ; ++i) { - printf("columnProductedIn_12_1[%d] = %e + %ei\n", i, creals(columnProductedIn_12_1[i]), cimags(columnProductedIn_12_1[i])); - assert(creals(columnProductedIn_12_1[i]) == creals(in[i]) && cimags(columnProductedIn_12_1[i]) == cimags(in[i])); - } - - return 0; -} - -static int testProd(void) { - - sprodsTest(); - sprodaTest(); - srowprodaTest(); - scolumnprodaTest(); - cprodsTest(); - cprodaTest(); - crowprodaTest(); - ccolumnprodaTest(); - - return 0; -} - -int main(void) { - assert(testProd() == 0); - return 0; -} diff --git a/src/statisticsFunctions/prod/test_DoubleProd/testDoubleProd.vcproj b/src/statisticsFunctions/prod/test_DoubleProd/testDoubleProd.vcproj deleted file mode 100644 index a784deba..00000000 --- a/src/statisticsFunctions/prod/test_DoubleProd/testDoubleProd.vcproj +++ /dev/null @@ -1,213 +0,0 @@ -<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9,00"
- Name="testDoubleProd"
- ProjectGUID="{322F871E-3349-4993-BC87-CAFAA6B6F72C}"
- RootNamespace="testDoubleProd"
- Keyword="Win32Proj"
- TargetFrameworkVersion="196613"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="../../../includes;../../../operations/includes;../../../type;../../includes"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="4"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- OutputFile="$(SolutionDir)bin\$(ProjectName).exe"
- LinkIncremental="2"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- EnableIntrinsicFunctions="true"
- AdditionalIncludeDirectories="../../../includes;../../../operations/includes;../../../type;../../includes"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- OutputFile="$(SolutionDir)bin\$(ProjectName).exe"
- LinkIncremental="1"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
- >
- <File
- RelativePath="..\testDoubleProd.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="2"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="2"
- />
- </FileConfiguration>
- </File>
- </Filter>
- <Filter
- Name="Header Files"
- Filter="h;hpp;hxx;hm;inl;inc;xsd"
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
- >
- </Filter>
- <Filter
- Name="Resource Files"
- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
- >
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/src/statisticsFunctions/prod/test_FloatProd/testFloatProd.vcproj b/src/statisticsFunctions/prod/test_FloatProd/testFloatProd.vcproj deleted file mode 100644 index 16705103..00000000 --- a/src/statisticsFunctions/prod/test_FloatProd/testFloatProd.vcproj +++ /dev/null @@ -1,213 +0,0 @@ -<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9,00"
- Name="testFloatProd"
- ProjectGUID="{B80645FE-03D0-4BC8-8DAE-032A58CF4E57}"
- RootNamespace="testFloatProd"
- Keyword="Win32Proj"
- TargetFrameworkVersion="196613"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="../../../includes;../../../operations/includes;../../../type;../../includes"
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
- MinimalRebuild="true"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="4"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- OutputFile="$(SolutionDir)bin\$(ProjectName).exe"
- LinkIncremental="2"
- GenerateDebugInformation="true"
- SubSystem="1"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
- IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- EnableIntrinsicFunctions="true"
- AdditionalIncludeDirectories="../../../includes;../../../operations/includes;../../../type;../../includes"
- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- DebugInformationFormat="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- OutputFile="$(SolutionDir)bin\$(ProjectName).exe"
- LinkIncremental="1"
- GenerateDebugInformation="true"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="Source Files"
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
- >
- <File
- RelativePath="..\testFloatProd.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="2"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="2"
- />
- </FileConfiguration>
- </File>
- </Filter>
- <Filter
- Name="Header Files"
- Filter="h;hpp;hxx;hm;inl;inc;xsd"
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
- >
- </Filter>
- <Filter
- Name="Resource Files"
- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
- >
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/src/statisticsFunctions/prod/zcolumnproda.c b/src/statisticsFunctions/prod/zcolumnproda.c deleted file mode 100644 index 277afd5a..00000000 --- a/src/statisticsFunctions/prod/zcolumnproda.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008-2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -/* This is a copy/paste with adaptation from sum */ - -#include "prod.h" -#include "multiplication.h" - -void zcolumnproda(doubleComplex *in, int lines, int columns, doubleComplex * out) { - int i = 0; - - /* - ** First assign first row, just in case - ** out contains non-zero's elements. - */ - for (i = 0 ; i < lines; ++i) - { - out[i] = in[i]; - } - /* - ** Then accumulate in each row. - */ - for (i = lines ; i < lines * columns ; ++i) - { - out[i % lines] = zmuls(out[i % lines] , in[i]); - } -} diff --git a/src/statisticsFunctions/prod/zproda.c b/src/statisticsFunctions/prod/zproda.c deleted file mode 100644 index a017d979..00000000 --- a/src/statisticsFunctions/prod/zproda.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008-2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#include "prod.h" -#include "multiplication.h" - - -doubleComplex zproda(doubleComplex *in, int size) { - doubleComplex accumulate = in[0]; - int i = 0; - - - for (i = 1; i < size; ++i) - { - accumulate = zmuls(accumulate,in[i]); - } - return accumulate; - -} - - diff --git a/src/statisticsFunctions/prod/zrowproda.c b/src/statisticsFunctions/prod/zrowproda.c deleted file mode 100644 index 84a16903..00000000 --- a/src/statisticsFunctions/prod/zrowproda.c +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008-2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -/* This is a copy/paste with adaptation from sum */ - -#include "prod.h" -#include "multiplication.h" - -void zrowproda(doubleComplex *in, int lines, int columns, doubleComplex * out) { - int i = 0; - - /* - ** First assign first row, just in case - ** out contains non-zero's elements. - */ - for (i = 0 ; i < columns; ++i) - { - out[i] = in[i * lines]; - } - /* - ** Then accumulate in each column. - */ - for (i = 1 ; i <= (lines - 1) * columns ; ++i) - { - out[(i - 1) % columns] = zmuls( out[(i - 1) % columns] , - in[((i - 1) % columns) * lines + 1 + (i - 1) / columns]); - } -} |