예제 #1
0
        private GreenTensor AllocateNewAsym(params string[] asym)
        {
            int compSize = (_nxTotalLength * 2 * Ny * Nz * Nz);
            var gt       = GreenTensor.AllocateNew(MemoryProvider, _nxTotalLength, 2 * Ny, Nz, Nz, compSize, asym);

            return(gt);
        }
예제 #2
0
        private GreenTensor AllocateNewSymm(params string[] symm)
        {
            var ny2      = 2 * Ny;
            int compSize = (_nxTotalLength * ny2 * (Nz + Nz * (Nz - 1) / 2));

            return(GreenTensor.AllocateNew(MemoryProvider, _nxTotalLength, ny2, Nz, Nz, compSize, symm));
        }
        private GreenTensor AllocateNew(params string[] components)
        {
            int compSize = (Nx * Ny * Nz);

            return(GreenTensor.AllocateNew(MemoryProvider, Nx, Ny, Nz, 1, compSize, components));
        }
        private GreenTensor AllocateNew(params string[] components)
        {
            int compSize = (_plan.NxTotalLength * 2 * Ny * _plan.NTr * _plan.NRc);

            return(GreenTensor.AllocateNew(MemoryProvider, _plan.NxTotalLength, 2 * Ny, _plan.NTr, _plan.NRc, compSize, components));
        }