2eaf92fc91
Contributed by Kamel Derouiche via PR pkg/43741 Changes in this version: It works with Borland Builder version 6, 8; Microsoft Visual C++ 6,7,8; Open Watcom 1.7a; Gnu version 3, 4 and Intel for Windows & Linux compilers 9, 10. Options and work-arounds for older compilers are being removed. You can enter values from an integer array with statements like Matrix A(3,2); int a[] = { 11,12,21,22,31,33 }; A << a; There is a new matrix type SquareMatrix. You can use this where you know a matrix is square. The only place where the information that a matrix is used is in the Kronecker product KP(A,B). If A is band and B is any square matrix type (i.e. type SquareMatrix or band, triangular, symmetric or diagonal) the result is band. If B is type Matrix then the result is of type Matrix. Apart from this it may be worth using the SquareMatrix type to improve readability of a program and to make sure that a matrix that is intended to be square really is square. There is a new routine for carrying out cross products of ColumnVectors or RowVectors of length 3 and new routines for updating a triangular matrix derived from a Cholesky decomposition. Interfacing with old C functions involving one and two dimensional arrays is simplified. Additional QR functions, extend_orthogonal function. Lower-case versions of functions. You can use the manipulators scientific and fixed in the matrix output expressions.
33 lines
923 B
Makefile
33 lines
923 B
Makefile
# $NetBSD: Makefile,v 1.14 2010/08/11 20:06:25 asau Exp $
|
|
#
|
|
|
|
DISTNAME= newmat11
|
|
PKGNAME= ${DISTNAME:C/([0-9]+)$/-\1/}
|
|
CATEGORIES= math devel
|
|
MASTER_SITES= http://www.robertnz.net/ftp/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.robertnz.net/ol_doc.htm
|
|
COMMENT= Newmat C++ Matrix Library
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
MAKE_FILE= nm_cc.mak
|
|
BUILD_TARGET= garch
|
|
USE_LANGUAGES= c++
|
|
|
|
HEADERS= controlw.h include.h myexcept.h newmat.h \
|
|
newmatap.h newmatio.h newmatnl.h newmatrc.h precisio.h \
|
|
solution.h tmt.h newmatrm.h
|
|
|
|
INSTALLATION_DIRS= lib include/newmat share/doc/newmat
|
|
|
|
do-install:
|
|
.for header in ${HEADERS}
|
|
${INSTALL_DATA} ${WRKSRC}/${header} ${DESTDIR}${PREFIX}/include/newmat
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/libnewmat.a ${DESTDIR}${PREFIX}/lib
|
|
${INSTALL_DATA} ${WRKSRC}/nm11.htm ${DESTDIR}${PREFIX}/share/doc/newmat/index.html
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|