This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://qiita.com/yukiB/items/5ac2e9ccbfa5634d405c | |
setenv INSTALL /usr/local | |
curl "http://netlib.sandia.gov/cgi-bin/netlib/netlibfiles.tar?filename=netlib/f2c" -o "f2c.tar" | |
tar -xvf f2c.tar | |
gunzip -rf f2c/* | |
cd f2c | |
mkdir libf2c | |
mv libf2c.zip libf2c | |
cd libf2c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cblas.h> | |
#include <math.h> | |
#include <memory.h> | |
typedef enum {GMRES_SUCCESS, GMRES_NOT_CONVERGENCE} GMRES_RESULT; | |
typedef void (*axfunc)(double*, double*); | |
/* Compute the Givens rotation matrix parameters for a and b. */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cblas.h> | |
#include <math.h> | |
#include <memory.h> | |
#include <stdio.h> | |
typedef enum {GMRES_SUCCESS, GMRES_NOT_CONVERGENCE} GMRES_RESULT; | |
typedef void (*axfunc)(double*, double*); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import falcon | |
from falcon_multipart.middleware import MultipartMiddleware | |
# http --from localhost:8888 [email protected] | |
class SampleResource: | |
def on_post(self, req, resp, **kwargs): | |
f = req.get_param('file') | |
raw = f.file.read() | |
with open('file.txt', 'wb') as f: |
OlderNewer