8#ifndef DUMMYEXPANSION_H_
9#define DUMMYEXPANSION_H_
11#include "bhfmm/fft/FFTAccelerableExpansion.h"
26 numRows(N), totalNumEntries(N * (N + 1) / 2) {
27 entries =
new double[totalNumEntries];
35 inline double & access(
unsigned i,
unsigned j) {
36 return entries[index(i, j)];
38 inline const double & access_const(
unsigned i,
unsigned j)
const {
39 return entries[index(i, j)];
42 inline unsigned index(
unsigned i,
unsigned j)
const {
43 return i * (i + 1) / 2 + j;
49 unsigned totalNumEntries;
74 void evaluate_M_at_r(
double X,
double Y,
double Z);
76 double &
get_C(
unsigned l,
unsigned m) {
79 double &
get_S(
unsigned l,
unsigned m) {
85 inline double & acc_C(
unsigned l,
unsigned m) {
86 return C.access(l, m);
88 inline double & acc_S(
unsigned l,
unsigned m) {
89 return S.access(l, m);
93 inline double acc_c_C(
unsigned l,
unsigned m)
const {
94 return C.access_const(l, m);
96 inline double acc_c_S(
unsigned l,
unsigned m)
const {
97 return S.access_const(l, m);
Definition: DummyExpansion.h:62
double & get_S(unsigned l, unsigned m)
Definition: DummyExpansion.h:79
double & get_C(unsigned l, unsigned m)
Definition: DummyExpansion.h:76
Definition: DummyExpansion.h:22
Definition: FFTAccelerableExpansion.h:21
FFTAccelerableExpansion()
Constructor, set the storage pointer to NULL by default.
Definition: FFTAccelerableExpansion.h:26