0001 #include "tensor.h"
0002
0003 void integral_dke_jd(struct Tensor A, struct Tensor B,int d,struct Tensor *C);
0004
0005
0006
0007 void Tensor_Create(int ndims,int* sizedim,struct Tensor *A);
0008
0009
0010
0011 void Scalar_Tensor_product(DOUBLE s,struct Tensor A,struct Tensor* B);
0012
0013
0014 int Tensor_Sum(struct Tensor A,struct Tensor B,DOUBLE m, struct Tensor *C);
0015
0016
0017 void Tensor_Transpose(struct Tensor *A);
0018
0019
0020 void SparseMat_Tensorproduct(struct SparseMatrix A,struct Tensor B,struct Tensor
0021 *C);
0022
0023
0024
0025 void Tensor_Fill(struct Tensor *T, DOUBLE a);
0026
0027
0028 void IntTensor_Fill(struct IntTensor *T, int a);
0029
0030
0031 void ReadBinary_DKE(char* file, struct Tensor *A);
0032
0033
0034
0035 void ReadBinaryArray_DKE(char* file,struct Tensor ** Array);
0036
0037
0038 void ReadBinaryIntArray_DKE(char* file,struct IntTensor **Array);
0039
0040 void ReadBinarySparseMatrix_DKE(char* file,struct SparseMatrix *A);
0041
0042
0043 void Tensor_Save(char * file, struct Tensor A);
0044
0045
0046 void IntTensor_Save(char * file, struct IntTensor A);
0047
0048
0049 int firstordercollop_dke_ft_c2(struct Tensor f1,
0050 struct Tensor betath_ref,
0051 struct Tensor masku,struct Tensor maskl,
0052 struct Tensor dpn,
0053 struct Tensor xpn, struct Tensor xpn2, struct Tensor xpn3, struct Tensor xsigma, struct Tensor xgamma,
0054 struct Tensor xz, struct Tensor xz2,
0055 struct Tensor pn, struct Tensor pn2, struct Tensor pn3,
0056 struct Tensor sigma, struct Tensor gamma,
0057 struct Tensor z, struct Tensor z2,
0058 struct Tensor xJ1, struct Tensor xJ2, struct Tensor xJ3, struct Tensor xJ4,
0059 struct Tensor J1, struct Tensor J2, struct Tensor J3, struct Tensor J4,struct
0060 Tensor xTe_norm,struct Tensor *I1,struct Tensor *I2);
0061
0062
0063 DOUBLE absolute(DOUBLE a);
0064
0065
0066 int product(struct Tensor A,struct Tensor B,struct Tensor* C);
0067 int division(struct Tensor A,struct Tensor B,struct Tensor* C);