This file contains 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 <stdio.h> | |
#include <stdlib.h> | |
#include <gmp.h> | |
int main(void) | |
{ | |
mpz_t x; | |
mpz_t y; | |
mpz_t result; | |
This file contains 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 "mex.h" | |
/* Input Arguments */ | |
#define X1 prhs[0] | |
#define X2 prhs[1] | |
/* Output Arguments */ | |
#define Y plhs[0] | |
void mexAdder( int nlhs, mxArray *plhs[], |
This file contains 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 "mex.h" | |
#include <string.h> | |
void mexAdder( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ); | |
void mexMult( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ); | |
void mexFunction( int nlhs, mxArray *plhs[], | |
int nrhs, const mxArray *prhs[] ) | |
{ | |
char *functionName; |
This file contains 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 "mex.h" | |
/* Input Arguments */ | |
#define X1 prhs[0] | |
#define X2 prhs[1] | |
/* Output Arguments */ | |
#define Y plhs[0] | |
void mexFunction( int nlhs, mxArray *plhs[], |