cached_roots_helper< V > Struct Template Reference

#include <fft_roots.hpp>

Inheritance diagram for cached_roots_helper< V >:
V

List of all members.

Public Types

Static Public Member Functions

Static Public Attributes


Detailed Description

template<typename V>
struct mmx::cached_roots_helper< V >

Definition at line 235 of file fft_roots.hpp.


Member Typedef Documentation

typedef V::C C

Definition at line 236 of file fft_roots.hpp.

typedef V::U U

Definition at line 237 of file fft_roots.hpp.


Member Function Documentation

static U* create_roots ( nat  n,
const format< C > &  fm 
) [inline, static]

Definition at line 242 of file fft_roots.hpp.

References cached_roots_helper< V >::capacity, cached_roots_helper< V >::destroy_roots(), and cached_roots_helper< V >::roots.

00242                                             {
00243     if (n > capacity) {
00244       if (capacity != 0) V::destroy_roots (roots, capacity);
00245       roots= V::create_roots (n, fm);
00246       capacity= n;
00247     }
00248     return roots;
00249   }

static void destroy_roots ( U u,
nat  n 
) [inline, static]

Definition at line 252 of file fft_roots.hpp.

Referenced by cached_roots_helper< V >::create_roots().

00252                               {
00253     (void) u; (void) n;
00254   }


Member Data Documentation

nat capacity = 0 [inline, static]

Definition at line 238 of file fft_roots.hpp.

Referenced by cached_roots_helper< V >::create_roots().

V::U * roots = NULL [inline, static]

Definition at line 239 of file fft_roots.hpp.

Referenced by cached_roots_helper< V >::create_roots().


The documentation for this struct was generated from the following file:

Generated on 6 Dec 2012 for algebramix by  doxygen 1.6.1