Skip to content

Commit

Permalink
fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
mateogianolio committed Sep 7, 2016
1 parent 5213f40 commit e9f63e4
Show file tree
Hide file tree
Showing 37 changed files with 175 additions and 156 deletions.
3 changes: 3 additions & 0 deletions lib/routines.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

#include <node.h>

#define GET_CONTENTS(view) \
(static_cast<unsigned char*>(view->Buffer()->GetContents().Data()) + view->ByteOffset())

void dasum(const v8::FunctionCallbackInfo<v8::Value>& info);
void sasum(const v8::FunctionCallbackInfo<v8::Value>& info);
void daxpy(const v8::FunctionCallbackInfo<v8::Value>& info);
Expand Down
4 changes: 2 additions & 2 deletions routines/level1/asum.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

void dasum(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
const double *x = reinterpret_cast<double*>(info[1].As<v8::Float64Array>()->Buffer()->GetContents().Data());
const double *x = reinterpret_cast<double*>(GET_CONTENTS(info[1].As<v8::Float64Array>()));
const int inc_x = info[2]->Uint32Value();
info.GetReturnValue().Set(
v8::Number::New(info.GetIsolate(), cblas_dasum(n, x, inc_x))
Expand All @@ -12,7 +12,7 @@ void dasum(const v8::FunctionCallbackInfo<v8::Value>& info) {

void sasum(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
const float *x = reinterpret_cast<float*>(info[1].As<v8::Float32Array>()->Buffer()->GetContents().Data());
const float *x = reinterpret_cast<float*>(GET_CONTENTS(info[1].As<v8::Float32Array>()));
const int inc_x = info[2]->Uint32Value();
info.GetReturnValue().Set(
v8::Number::New(info.GetIsolate(), cblas_sasum(n, x, inc_x))
Expand Down
8 changes: 4 additions & 4 deletions routines/level1/axpy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
void daxpy(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
const double alpha = info[1]->NumberValue();
const double *x = reinterpret_cast<double*>(info[2].As<v8::Float64Array>()->Buffer()->GetContents().Data());
const double *x = reinterpret_cast<double*>(GET_CONTENTS(info[2].As<v8::Float64Array>()));
const int inc_x = info[3]->Uint32Value();
double *y = reinterpret_cast<double*>(info[4].As<v8::Float64Array>()->Buffer()->GetContents().Data());
double *y = reinterpret_cast<double*>(GET_CONTENTS(info[4].As<v8::Float64Array>()));
const int inc_y = info[5]->Uint32Value();
cblas_daxpy(n, alpha, x, inc_x, y, inc_y);
}

void saxpy(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
const float alpha = info[1]->NumberValue();
const float *x = reinterpret_cast<float*>(info[2].As<v8::Float32Array>()->Buffer()->GetContents().Data());
const float *x = reinterpret_cast<float*>(GET_CONTENTS(info[2].As<v8::Float32Array>()));
const int inc_x = info[3]->Uint32Value();
float *y = reinterpret_cast<float*>(info[4].As<v8::Float32Array>()->Buffer()->GetContents().Data());
float *y = reinterpret_cast<float*>(GET_CONTENTS(info[4].As<v8::Float32Array>()));
const int inc_y = info[5]->Uint32Value();
cblas_saxpy(n, alpha, x, inc_x, y, inc_y);
}
8 changes: 4 additions & 4 deletions routines/level1/copy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@

void dcopy(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
const double *x = reinterpret_cast<double*>(info[1].As<v8::Float64Array>()->Buffer()->GetContents().Data());
const double *x = reinterpret_cast<double*>(GET_CONTENTS(info[1].As<v8::Float64Array>()));
const int inc_x = info[2]->Uint32Value();
double *y = reinterpret_cast<double*>(info[3].As<v8::Float64Array>()->Buffer()->GetContents().Data());
double *y = reinterpret_cast<double*>(GET_CONTENTS(info[3].As<v8::Float64Array>()));
const int inc_y = info[4]->Uint32Value();
cblas_dcopy(n, x, inc_x, y, inc_y);
}

void scopy(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
const float *x = reinterpret_cast<float*>(info[1].As<v8::Float32Array>()->Buffer()->GetContents().Data());
const float *x = reinterpret_cast<float*>(GET_CONTENTS(info[1].As<v8::Float32Array>()));
const int inc_x = info[2]->Uint32Value();
float *y = reinterpret_cast<float*>(info[3].As<v8::Float32Array>()->Buffer()->GetContents().Data());
float *y = reinterpret_cast<float*>(GET_CONTENTS(info[3].As<v8::Float32Array>()));
const int inc_y = info[4]->Uint32Value();
cblas_scopy(n, x, inc_x, y, inc_y);
}
8 changes: 4 additions & 4 deletions routines/level1/dot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

void ddot(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
const double *x = reinterpret_cast<double*>(info[1].As<v8::Float64Array>()->Buffer()->GetContents().Data());
const double *x = reinterpret_cast<double*>(GET_CONTENTS(info[1].As<v8::Float64Array>()));
const int inc_x = info[2]->Uint32Value();
const double *y = reinterpret_cast<double*>(info[3].As<v8::Float64Array>()->Buffer()->GetContents().Data());
const double *y = reinterpret_cast<double*>(GET_CONTENTS(info[3].As<v8::Float64Array>()));
const int inc_y = info[4]->Uint32Value();
info.GetReturnValue().Set(
v8::Number::New(info.GetIsolate(), cblas_ddot(n, x, inc_x, y, inc_y))
Expand All @@ -14,9 +14,9 @@ void ddot(const v8::FunctionCallbackInfo<v8::Value>& info) {

void sdot(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
const float *x = reinterpret_cast<float*>(info[1].As<v8::Float32Array>()->Buffer()->GetContents().Data());
const float *x = reinterpret_cast<float*>(GET_CONTENTS(info[1].As<v8::Float32Array>()));
const int inc_x = info[2]->Uint32Value();
const float *y = reinterpret_cast<float*>(info[3].As<v8::Float32Array>()->Buffer()->GetContents().Data());
const float *y = reinterpret_cast<float*>(GET_CONTENTS(info[3].As<v8::Float32Array>()));
const int inc_y = info[4]->Uint32Value();
info.GetReturnValue().Set(
v8::Number::New(info.GetIsolate(), cblas_sdot(n, x, inc_x, y, inc_y))
Expand Down
4 changes: 2 additions & 2 deletions routines/level1/iamax.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

void idamax(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
const double *x = reinterpret_cast<double*>(info[1].As<v8::Float64Array>()->Buffer()->GetContents().Data());
const double *x = reinterpret_cast<double*>(GET_CONTENTS(info[1].As<v8::Float64Array>()));
const int inc_x = info[2]->Uint32Value();
info.GetReturnValue().Set(
v8::Number::New(info.GetIsolate(), cblas_idamax(n, x, inc_x))
Expand All @@ -12,7 +12,7 @@ void idamax(const v8::FunctionCallbackInfo<v8::Value>& info) {

void isamax(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
const float *x = reinterpret_cast<float*>(info[1].As<v8::Float32Array>()->Buffer()->GetContents().Data());
const float *x = reinterpret_cast<float*>(GET_CONTENTS(info[1].As<v8::Float32Array>()));
const int inc_x = info[2]->Uint32Value();
info.GetReturnValue().Set(
v8::Number::New(info.GetIsolate(), cblas_isamax(n, x, inc_x))
Expand Down
4 changes: 2 additions & 2 deletions routines/level1/nrm2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

void dnrm2(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
const double *x = reinterpret_cast<double*>(info[1].As<v8::Float64Array>()->Buffer()->GetContents().Data());
const double *x = reinterpret_cast<double*>(GET_CONTENTS(info[1].As<v8::Float64Array>()));
const int inc_x = info[2]->Uint32Value();
info.GetReturnValue().Set(
v8::Number::New(info.GetIsolate(), cblas_dnrm2(n, x, inc_x))
Expand All @@ -12,7 +12,7 @@ void dnrm2(const v8::FunctionCallbackInfo<v8::Value>& info) {

void snrm2(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
const float *x = reinterpret_cast<float*>(info[1].As<v8::Float32Array>()->Buffer()->GetContents().Data());
const float *x = reinterpret_cast<float*>(GET_CONTENTS(info[1].As<v8::Float32Array>()));
const int inc_x = info[2]->Uint32Value();
info.GetReturnValue().Set(
v8::Number::New(info.GetIsolate(), cblas_snrm2(n, x, inc_x))
Expand Down
8 changes: 4 additions & 4 deletions routines/level1/rot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

void drot(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
double *x = reinterpret_cast<double*>(info[1].As<v8::Float64Array>()->Buffer()->GetContents().Data());
double *x = reinterpret_cast<double*>(GET_CONTENTS(info[1].As<v8::Float64Array>()));
const int inc_x = info[2]->Uint32Value();
double *y = reinterpret_cast<double*>(info[3].As<v8::Float64Array>()->Buffer()->GetContents().Data());
double *y = reinterpret_cast<double*>(GET_CONTENTS(info[3].As<v8::Float64Array>()));
const int inc_y = info[4]->Uint32Value();
const double c = info[5]->NumberValue();
const double s = info[6]->NumberValue();
Expand All @@ -14,9 +14,9 @@ void drot(const v8::FunctionCallbackInfo<v8::Value>& info) {

void srot(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
float *x = reinterpret_cast<float*>(info[1].As<v8::Float32Array>()->Buffer()->GetContents().Data());
float *x = reinterpret_cast<float*>(GET_CONTENTS(info[1].As<v8::Float32Array>()));
const int inc_x = info[2]->Uint32Value();
float *y = reinterpret_cast<float*>(info[3].As<v8::Float32Array>()->Buffer()->GetContents().Data());
float *y = reinterpret_cast<float*>(GET_CONTENTS(info[3].As<v8::Float32Array>()));
const int inc_y = info[4]->Uint32Value();
const float c = info[5]->NumberValue();
const float s = info[6]->NumberValue();
Expand Down
16 changes: 8 additions & 8 deletions routines/level1/rotg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
#include "routines.h"

void drotg(const v8::FunctionCallbackInfo<v8::Value>& info) {
double *a = reinterpret_cast<double*>(info[0].As<v8::Float64Array>()->Buffer()->GetContents().Data());
double *b = reinterpret_cast<double*>(info[1].As<v8::Float64Array>()->Buffer()->GetContents().Data());
double *c = reinterpret_cast<double*>(info[2].As<v8::Float64Array>()->Buffer()->GetContents().Data());
double *s = reinterpret_cast<double*>(info[3].As<v8::Float64Array>()->Buffer()->GetContents().Data());
double *a = reinterpret_cast<double*>(GET_CONTENTS(info[0].As<v8::Float64Array>()));
double *b = reinterpret_cast<double*>(GET_CONTENTS(info[1].As<v8::Float64Array>()));
double *c = reinterpret_cast<double*>(GET_CONTENTS(info[2].As<v8::Float64Array>()));
double *s = reinterpret_cast<double*>(GET_CONTENTS(info[3].As<v8::Float64Array>()));
cblas_drotg(a, b, c, s);
}

void srotg(const v8::FunctionCallbackInfo<v8::Value>& info) {
float *a = reinterpret_cast<float*>(info[0].As<v8::Float32Array>()->Buffer()->GetContents().Data());
float *b = reinterpret_cast<float*>(info[1].As<v8::Float32Array>()->Buffer()->GetContents().Data());
float *c = reinterpret_cast<float*>(info[2].As<v8::Float32Array>()->Buffer()->GetContents().Data());
float *s = reinterpret_cast<float*>(info[3].As<v8::Float32Array>()->Buffer()->GetContents().Data());
float *a = reinterpret_cast<float*>(GET_CONTENTS(info[0].As<v8::Float32Array>()));
float *b = reinterpret_cast<float*>(GET_CONTENTS(info[1].As<v8::Float32Array>()));
float *c = reinterpret_cast<float*>(GET_CONTENTS(info[2].As<v8::Float32Array>()));
float *s = reinterpret_cast<float*>(GET_CONTENTS(info[3].As<v8::Float32Array>()));
cblas_srotg(a, b, c, s);
}
12 changes: 6 additions & 6 deletions routines/level1/rotm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@

void drotm(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
double *x = reinterpret_cast<double*>(info[1].As<v8::Float64Array>()->Buffer()->GetContents().Data());
double *x = reinterpret_cast<double*>(GET_CONTENTS(info[1].As<v8::Float64Array>()));
const int inc_x = info[2]->Uint32Value();
double *y = reinterpret_cast<double*>(info[3].As<v8::Float64Array>()->Buffer()->GetContents().Data());
double *y = reinterpret_cast<double*>(GET_CONTENTS(info[3].As<v8::Float64Array>()));
const int inc_y = info[4]->Uint32Value();
const double *param = reinterpret_cast<double*>(info[5].As<v8::Float64Array>()->Buffer()->GetContents().Data());
const double *param = reinterpret_cast<double*>(GET_CONTENTS(info[5].As<v8::Float64Array>()));
cblas_drotm(n, x, inc_x, y, inc_y, param);
}

void srotm(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
float *x = reinterpret_cast<float*>(info[1].As<v8::Float32Array>()->Buffer()->GetContents().Data());
float *x = reinterpret_cast<float*>(GET_CONTENTS(info[1].As<v8::Float32Array>()));
const int inc_x = info[2]->Uint32Value();
float *y = reinterpret_cast<float*>(info[3].As<v8::Float32Array>()->Buffer()->GetContents().Data());
float *y = reinterpret_cast<float*>(GET_CONTENTS(info[3].As<v8::Float32Array>()));
const int inc_y = info[4]->Uint32Value();
const float *param = reinterpret_cast<float*>(info[5].As<v8::Float32Array>()->Buffer()->GetContents().Data());
const float *param = reinterpret_cast<float*>(GET_CONTENTS(info[5].As<v8::Float32Array>()));
cblas_srotm(n, x, inc_x, y, inc_y, param);
}
16 changes: 8 additions & 8 deletions routines/level1/rotmg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
#include "routines.h"

void drotmg(const v8::FunctionCallbackInfo<v8::Value>& info) {
double *d1 = reinterpret_cast<double*>(info[0].As<v8::Float64Array>()->Buffer()->GetContents().Data());
double *d2 = reinterpret_cast<double*>(info[1].As<v8::Float64Array>()->Buffer()->GetContents().Data());
double *b1 = reinterpret_cast<double*>(info[2].As<v8::Float64Array>()->Buffer()->GetContents().Data());
double *d1 = reinterpret_cast<double*>(GET_CONTENTS(info[0].As<v8::Float64Array>()));
double *d2 = reinterpret_cast<double*>(GET_CONTENTS(info[1].As<v8::Float64Array>()));
double *b1 = reinterpret_cast<double*>(GET_CONTENTS(info[2].As<v8::Float64Array>()));
const double b2 = info[3]->NumberValue();
double *param = reinterpret_cast<double*>(info[5].As<v8::Float64Array>()->Buffer()->GetContents().Data());
double *param = reinterpret_cast<double*>(GET_CONTENTS(info[5].As<v8::Float64Array>()));
cblas_drotmg(d1, d2, b1, b2, param);
}

void srotmg(const v8::FunctionCallbackInfo<v8::Value>& info) {
float *d1 = reinterpret_cast<float*>(info[0].As<v8::Float32Array>()->Buffer()->GetContents().Data());
float *d2 = reinterpret_cast<float*>(info[1].As<v8::Float32Array>()->Buffer()->GetContents().Data());
float *b1 = reinterpret_cast<float*>(info[2].As<v8::Float32Array>()->Buffer()->GetContents().Data());
float *d1 = reinterpret_cast<float*>(GET_CONTENTS(info[0].As<v8::Float32Array>()));
float *d2 = reinterpret_cast<float*>(GET_CONTENTS(info[1].As<v8::Float32Array>()));
float *b1 = reinterpret_cast<float*>(GET_CONTENTS(info[2].As<v8::Float32Array>()));
const float b2 = info[3]->NumberValue();
float *param = reinterpret_cast<float*>(info[5].As<v8::Float32Array>()->Buffer()->GetContents().Data());
float *param = reinterpret_cast<float*>(GET_CONTENTS(info[5].As<v8::Float32Array>()));
cblas_srotmg(d1, d2, b1, b2, param);
}
4 changes: 2 additions & 2 deletions routines/level1/scal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
void dscal(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
const double alpha = info[1]->NumberValue();
double *x = reinterpret_cast<double*>(info[2].As<v8::Float64Array>()->Buffer()->GetContents().Data());
double *x = reinterpret_cast<double*>(GET_CONTENTS(info[2].As<v8::Float64Array>()));
const int inc_x = info[3]->Uint32Value();
cblas_dscal(n, alpha, x, inc_x);
}

void sscal(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
const float alpha = info[1]->NumberValue();
float *x = reinterpret_cast<float*>(info[2].As<v8::Float32Array>()->Buffer()->GetContents().Data());
float *x = reinterpret_cast<float*>(GET_CONTENTS(info[2].As<v8::Float32Array>()));
const int inc_x = info[3]->Uint32Value();
cblas_sscal(n, alpha, x, inc_x);
}
8 changes: 4 additions & 4 deletions routines/level1/sdot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

void dsdot(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
const float *x = reinterpret_cast<float*>(info[1].As<v8::Float32Array>()->Buffer()->GetContents().Data());
const float *x = reinterpret_cast<float*>(GET_CONTENTS(info[1].As<v8::Float32Array>()));
const int inc_x = info[2]->Uint32Value();
const float *y = reinterpret_cast<float*>(info[3].As<v8::Float32Array>()->Buffer()->GetContents().Data());
const float *y = reinterpret_cast<float*>(GET_CONTENTS(info[3].As<v8::Float32Array>()));
const int inc_y = info[4]->Uint32Value();
info.GetReturnValue().Set(
v8::Number::New(info.GetIsolate(), cblas_dsdot(n, x, inc_x, y, inc_y))
Expand All @@ -15,9 +15,9 @@ void dsdot(const v8::FunctionCallbackInfo<v8::Value>& info) {
void sdsdot(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
const float alpha = info[1]->Uint32Value();
const float *x = reinterpret_cast<float*>(info[2].As<v8::Float32Array>()->Buffer()->GetContents().Data());
const float *x = reinterpret_cast<float*>(GET_CONTENTS(info[2].As<v8::Float32Array>()));
const int inc_x = info[3]->Uint32Value();
const float *y = reinterpret_cast<float*>(info[4].As<v8::Float32Array>()->Buffer()->GetContents().Data());
const float *y = reinterpret_cast<float*>(GET_CONTENTS(info[4].As<v8::Float32Array>()));
const int inc_y = info[5]->Uint32Value();
info.GetReturnValue().Set(
v8::Number::New(info.GetIsolate(), cblas_sdsdot(n, alpha, x, inc_x, y, inc_y))
Expand Down
8 changes: 4 additions & 4 deletions routines/level1/swap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@

void dswap(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
double *x = reinterpret_cast<double*>(info[1].As<v8::Float64Array>()->Buffer()->GetContents().Data());
double *x = reinterpret_cast<double*>(GET_CONTENTS(info[1].As<v8::Float64Array>()));
const int inc_x = info[2]->Uint32Value();
double *y = reinterpret_cast<double*>(info[3].As<v8::Float64Array>()->Buffer()->GetContents().Data());
double *y = reinterpret_cast<double*>(GET_CONTENTS(info[3].As<v8::Float64Array>()));
const int inc_y = info[4]->Uint32Value();
cblas_dswap(n, x, inc_x, y, inc_y);
}

void sswap(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
float *x = reinterpret_cast<float*>(info[1].As<v8::Float32Array>()->Buffer()->GetContents().Data());
float *x = reinterpret_cast<float*>(GET_CONTENTS(info[1].As<v8::Float32Array>()));
const int inc_x = info[2]->Uint32Value();
float *y = reinterpret_cast<float*>(info[3].As<v8::Float32Array>()->Buffer()->GetContents().Data());
float *y = reinterpret_cast<float*>(GET_CONTENTS(info[3].As<v8::Float32Array>()));
const int inc_y = info[4]->Uint32Value();
cblas_sswap(n, x, inc_x, y, inc_y);
}
8 changes: 4 additions & 4 deletions routines/level2/gbmv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ void dgbmv(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int kl = info[3]->Uint32Value();
const int ku = info[4]->Uint32Value();
const double alpha = info[5]->NumberValue();
const double *a = reinterpret_cast<double*>(info[6].As<v8::Float64Array>()->Buffer()->GetContents().Data());
const double *a = reinterpret_cast<double*>(GET_CONTENTS(info[6].As<v8::Float64Array>()));
const int lda = info[7]->Uint32Value();
const double *x = reinterpret_cast<double*>(info[8].As<v8::Float64Array>()->Buffer()->GetContents().Data());
const double *x = reinterpret_cast<double*>(GET_CONTENTS(info[8].As<v8::Float64Array>()));
const int inc_x = info[9]->Uint32Value();
const double beta = info[10]->NumberValue();
double *y = reinterpret_cast<double*>(info[11].As<v8::Float64Array>()->Buffer()->GetContents().Data());
Expand All @@ -25,9 +25,9 @@ void sgbmv(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int kl = info[3]->Uint32Value();
const int ku = info[4]->Uint32Value();
const float alpha = info[5]->NumberValue();
const float *a = reinterpret_cast<float*>(info[6].As<v8::Float32Array>()->Buffer()->GetContents().Data());
const float *a = reinterpret_cast<float*>(GET_CONTENTS(info[6].As<v8::Float32Array>()));
const int lda = info[7]->Uint32Value();
const float *x = reinterpret_cast<float*>(info[8].As<v8::Float32Array>()->Buffer()->GetContents().Data());
const float *x = reinterpret_cast<float*>(GET_CONTENTS(info[8].As<v8::Float32Array>()));
const int inc_x = info[9]->Uint32Value();
const float beta = info[10]->NumberValue();
float *y = reinterpret_cast<float*>(info[11].As<v8::Float32Array>()->Buffer()->GetContents().Data());
Expand Down
Loading

0 comments on commit e9f63e4

Please sign in to comment.