SourceForge logo
SourceForge logo
Menu

pysparse-developers — pysparse developer talk

You can subscribe to this list here.

2004 Jan
Feb
Mar
(1)
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2005 Jan
Feb
Mar
Apr
(2)
May
Jun
(2)
Jul
Aug
Sep
(1)
Oct
Nov
Dec
2006 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
(1)
2007 Jan
(4)
Feb
(7)
Mar
(1)
Apr
May
(5)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2008 Jan
(3)
Feb
Mar
(6)
Apr
(3)
May
Jun
Jul
(1)
Aug
Sep
(1)
Oct
Nov
Dec
2009 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
(11)
Sep
Oct
(1)
Nov
(1)
Dec
2010 Jan
(4)
Feb
(7)
Mar
(4)
Apr
(6)
May
Jun
(5)
Jul
Aug
(2)
Sep
Oct
Nov
Dec
2011 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(2)
Nov
Dec
2012 Jan
Feb
(2)
Mar
Apr
May
(3)
Jun
Jul
Aug
Sep
(2)
Oct
(1)
Nov
Dec
2014 Jan
Feb
Mar
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
Oct
Nov
(3)
Dec
2015 Jan
Feb
Mar
Apr
May
Jun
(1)
Jul
Aug
Sep
Oct
(1)
Nov
Dec
(1)
2016 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
(3)
Sep
Oct
(1)
Nov
(1)
Dec
(1)
2017 Jan
(1)
Feb
(1)
Mar
(1)
Apr
(1)
May
(1)
Jun
Jul
(1)
Aug
Sep
Oct
Nov
Dec
S M T W T F S



1
2
3
4
5
6
7
8
9
10
11
(2)
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29



Showing 2 results of 2

From: Dominique O. <dom...@gm...> - 2012年02月11日 17:57:55
On Sat, Feb 11, 2012 at 04:30, Oz Nahum Tiram <na...@gm...> wrote:
> Hi,
>
> First, thanks for the great work on this peace of software. I have
> been using it for more than 3 years now and I very happy.
> I have a few question and I hope this is not
> I am still very new to C programming and I was wondering what does the
> following statement for expamle do:
>
> n2b = F77(dnrm2)(&n, b, &ONE);/* Norm of rhs vector, b */
>
> Is this some kind of type casting ?
This is a macro that adjusts the call to various types of Fortran
compilers (this particular call is a call to the BLAS library, which
is written in Fortran). Some Fortran compilers add a trailing
underscore to symbols, some add two, some add none, etc.
> The second question is, now that I have a working application with
> pysparse that I'd like to accelerate,
> I am thinking of rewriting my code in C. I know there are C solvers
> for bicgstab, but I was wondering how
> much work is it just to convert the bicgstab.c from pysparse to plain
> C without the python dependencies.
> Are there any hints here?
I wouldn't recommend coding bicgstab all over again. The only costly
operations in Bi-CGSTAB (and other Krylov-type methods) are vector
operations (most often, addition of vectors) and operator-vector
products (e.g., A*x or A.T*x). I would say that to speed things up,
you'll want to speed up your operator-vector operations; they are the
dominant cost.
You can take a look at PyKrylov (https://github.com/dpo/pykrylov)
which contains a pure Python implementation of Bi-CGSTAB and allows
you to input your operator in different ways (a Pysparse matrix being
one of them). For instance, you could implement your operator in C or
in Cython and that should speed things up. I believe that is the way
to go.
Of course, vector operations in PyKrylov could also be speeded up with
Cython. That's been on my list for a while.
I hope this helps.
-- 
Dominique
From: Oz N. T. <na...@gm...> - 2012年02月11日 09:31:23
Hi,
First, thanks for the great work on this peace of software. I have
been using it for more than 3 years now and I very happy.
I have a few question and I hope this is not
I am still very new to C programming and I was wondering what does the
following statement for expamle do:
n2b = F77(dnrm2)(&n, b, &ONE);/* Norm of rhs vector, b */
Is this some kind of type casting ?
The second question is, now that I have a working application with
pysparse that I'd like to accelerate,
I am thinking of rewriting my code in C. I know there are C solvers
for bicgstab, but I was wondering how
much work is it just to convert the bicgstab.c from pysparse to plain
C without the python dependencies.
Are there any hints here?
Thanks in advance,
Oz

Showing 2 results of 2

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /