From cb1d99232e521c34e9f0c271a6c4176cc7b9cbe4 Mon Sep 17 00:00:00 2001 From: Sandeep Gupta Date: Thu, 6 Jul 2017 15:16:16 +0530 Subject: Changes --- src/c/linearAlgebra/hess/dhessa.c | 8 +++++--- src/c/linearAlgebra/projspec/dprojspeca.c | 3 --- src/c/linearAlgebra/sqroot/dsqroota.c | 4 ++-- src/c/linearAlgebra/sva/dsvaa.c | 7 ++++--- src/c/matrixOperations/Slash/dslasha.c | 32 +++++++++++++++++++++++++++++++ 5 files changed, 43 insertions(+), 11 deletions(-) create mode 100644 src/c/matrixOperations/Slash/dslasha.c (limited to 'src') diff --git a/src/c/linearAlgebra/hess/dhessa.c b/src/c/linearAlgebra/hess/dhessa.c index 57f81b35..e1f2e2d1 100644 --- a/src/c/linearAlgebra/hess/dhessa.c +++ b/src/c/linearAlgebra/hess/dhessa.c @@ -20,11 +20,13 @@ #include "matrixTranspose.h" #include "matrixMultiplication.h" +/* Lapack subroutines - which are used*/ extern int dgehrd_(int *, int *,int *,double *,int *,double *,double *,int *,int *); extern int dorghr_(int *, int *,int *,double *,int *,double *,double *,int *,int *); - +/* All the vairbale names are given exactly the same name as scilab source code */ void dhessa(double *in1,int size,int nout,double *out1, double *out2){ +/* Variables names are done through, Lapack library. */ int i,j,k; int N = size; int ILO=1; @@ -41,11 +43,11 @@ void dhessa(double *in1,int size,int nout,double *out1, double *out2){ WORK = (double *)malloc((double)LWORK*sizeof(double)); dgehrd_(&N,&ILO,&IHI,A,&LDA,TAU,WORK,&N,&INFO); - for(i=0;i X = A/B */ + +#include +#include "string.h" +#include "stdlib.h" +#include "lapack.h" +#include "matrixTranspose.h" +#include "matrixMultiplication.h" + +void dslasha(double *A,int m1,int n1,double *B,int m2,int n2,double *out){ + if(m1 != n1 && m1 != m2 && m2 != n2){ + return; + } + + double AF; + AF = (double *)malloc(); + +} -- cgit