コード例 #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));
        }
コード例 #3
0
        private GreenTensor AllocateNew(params string[] components)
        {
            int compSize = (Nx * Ny * Nz);

            return(GreenTensor.AllocateNew(MemoryProvider, Nx, Ny, Nz, 1, compSize, components));
        }
コード例 #4
0
        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));
        }