update to freemat 3.4

looks ok to martynas@
This commit is contained in:
steven 2007-09-07 15:55:25 +00:00
parent 51763a6a5b
commit 98dcefc137
8 changed files with 230 additions and 665 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.11 2007/05/22 09:10:22 espie Exp $
# $OpenBSD: Makefile,v 1.12 2007/09/07 15:55:25 steven Exp $
COMMENT= "environment for rapid engineering and scientific processing"
V= 3.2
V= 3.4
DISTNAME= FreeMat-${V}
PKGNAME= freemat-${V}p0
PKGNAME= freemat-${V}
CATEGORIES= graphics math

View File

@ -1,5 +1,5 @@
MD5 (FreeMat-3.2.tar.gz) = Ycmc5W/MJEpBCLJrPsttmw==
RMD160 (FreeMat-3.2.tar.gz) = XHAxrYpOpJwPXxtujLKuWAlOTB4=
SHA1 (FreeMat-3.2.tar.gz) = abrhoIA00GJNL7C/92o2RP0lYyg=
SHA256 (FreeMat-3.2.tar.gz) = WUlscnXXBBSfLxlYTGPwq/ONSLGhQ7NmXkVT0b2B5UU=
SIZE (FreeMat-3.2.tar.gz) = 5265284
MD5 (FreeMat-3.4.tar.gz) = t4HaxuSw3ShGMbrNu/sA2A==
RMD160 (FreeMat-3.4.tar.gz) = lPx3nMW9I3IWad/24FqtJIG5P6g=
SHA1 (FreeMat-3.4.tar.gz) = NS8QD8KxCDNF+NPqMjCyQp6HrLM=
SHA256 (FreeMat-3.4.tar.gz) = Je+E6bj2Kx8wGjXy5hd5emigp7T2ZTwUAOp8f2cpNBE=
SIZE (FreeMat-3.4.tar.gz) = 5613257

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-libs_libCore_IO_cpp,v 1.3 2007/04/22 14:43:41 martynas Exp $
--- libs/libCore/IO.cpp.orig Fri Apr 13 23:07:45 2007
+++ libs/libCore/IO.cpp Mon Apr 16 11:06:00 2007
@@ -509,7 +509,7 @@ ArrayVector FreadFunction(int nargout, const ArrayVect
fseek(fptr->fp,0L,SEEK_END);
fsize = ftell(fptr->fp) - fcpos;
fseek(fptr->fp,fcpos,SEEK_SET);
- dp[infiniteDim] = ceil((float)(fsize/elementSize/elementCount));
+ dp[infiniteDim] = ceil((double)(fsize/elementSize/elementCount));
elementCount *= (int) dp[infiniteDim];
}
// Next, we allocate space for the result

View File

@ -1,13 +0,0 @@
$OpenBSD: patch-libs_libCore_helpwidget_cpp,v 1.1 2007/05/22 09:10:22 espie Exp $
--- libs/libCore/helpwidget.cpp.orig Mon May 21 19:56:15 2007
+++ libs/libCore/helpwidget.cpp Mon May 21 19:56:24 2007
@@ -203,8 +203,8 @@ void HelpWindow::createMenus() {
void HelpWindow::createToolBars() {
goToolBar = addToolBar("Go");
goToolBar->setObjectName("GoToolBar");
- goToolBar->addAction(forwardAct);
goToolBar->addAction(backAct);
+ goToolBar->addAction(forwardAct);
goToolBar->addAction(homeAct);
editToolBar = addToolBar("Edit");
editToolBar->setObjectName("EditToolBar");

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-libs_libFreeMat_LAPACK_hpp,v 1.1 2007/09/07 15:55:25 steven Exp $
--- libs/libFreeMat/LAPACK.hpp.orig Fri Sep 7 13:06:05 2007
+++ libs/libFreeMat/LAPACK.hpp Fri Sep 7 13:06:23 2007
@@ -210,11 +210,11 @@ extern "C" {
float snrm2_(int *N, float *X, int *INCX);
- float dnrm2_(int *N, double *X, int *INCX);
+ double dnrm2_(int *N, double *X, int *INCX);
float scnrm2_(int *N, float *X, int *INCX);
- float dznrm2_(int *N, double *X, int *INCX);
+ double dznrm2_(int *N, double *X, int *INCX);
void dgecon_(char *norm, int *N, double *A, int *LDA, double *Anorm,
double *rcond, double *work, int *iwork, int *info);

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-libs_libFreeMat_Print_cpp,v 1.4 2007/09/07 15:55:25 steven Exp $
--- libs/libFreeMat/Print.cpp.orig Fri Sep 7 11:09:49 2007
+++ libs/libFreeMat/Print.cpp Fri Sep 7 11:10:16 2007
@@ -180,13 +180,13 @@ void ComputeScaleFactor(const T* array, int count, Arr
}
if (!finiteElementFound) return;
if (max_amplitude >= 100)
- format.scalefact = pow(10.0,floor(log10(max_amplitude)));
+ format.scalefact = pow(10.0,floor(log10((double)max_amplitude)));
else if (max_amplitude <= -100)
- format.scalefact = pow(10.0,floor(log10(-max_amplitude)));
+ format.scalefact = pow(10.0,floor(log10((double)-max_amplitude)));
else if ((max_amplitude <= .1) && (max_amplitude>0))
- format.scalefact = pow(10.0,floor(log10(max_amplitude)));
+ format.scalefact = pow(10.0,floor(log10((double)max_amplitude)));
else if ((max_amplitude >= -.1) && (max_amplitude<0))
- format.scalefact = pow(10.0,floor(log10(-max_amplitude)));
+ format.scalefact = pow(10.0,floor(log10((double)-max_amplitude)));
else
format.scalefact = 1.0;
}

View File

@ -1,19 +0,0 @@
$OpenBSD: patch-libs_libXP_QTTerm_cpp,v 1.2 2007/04/20 19:11:51 martynas Exp $
--- libs/libXP/QTTerm.cpp.orig Mon Feb 5 01:19:52 2007
+++ libs/libXP/QTTerm.cpp Mon Apr 16 11:05:47 2007
@@ -213,11 +213,11 @@ void QTTerm::PaintRectangle(QPainter *paint, QRect rec
paint->eraseRect(rect);
int col_start, col_stop;
int row_start, row_stop;
- col_start = (int)floor(rect.left()/((float)m_char_w));
- col_stop = (int)ceil(rect.right()/((float)m_char_w));
+ col_start = (int)floor(rect.left()/((double)m_char_w));
+ col_stop = (int)ceil(rect.right()/((double)m_char_w));
col_stop = qMin(col_stop,m_width-1);
- row_start = (int)ceil(rect.top()/((float)m_char_h));
- row_stop = (int)floor(rect.bottom()/((float)m_char_h));
+ row_start = (int)ceil(rect.top()/((double)m_char_h));
+ row_stop = (int)floor(rect.bottom()/((double)m_char_h));
row_stop = qMin(row_stop,m_height-1);

File diff suppressed because it is too large Load Diff