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 291 of file fft_roots.hpp.


Member Typedef Documentation

typedef V::C C

Definition at line 292 of file fft_roots.hpp.

typedef V::U U

Definition at line 293 of file fft_roots.hpp.


Member Function Documentation

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

Definition at line 298 of file fft_roots.hpp.

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

00298                                             {
00299     if (n > capacity) {
00300       if (capacity != 0) V::destroy_roots (roots, capacity);
00301       roots= V::create_roots (n, fm);
00302       capacity= n;
00303     }
00304     return roots;
00305   }

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

Definition at line 308 of file fft_roots.hpp.

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

00308                               {
00309     (void) u; (void) n;
00310   }


Member Data Documentation

nat capacity = 0 [inline, static]

Definition at line 294 of file fft_roots.hpp.

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

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

Definition at line 295 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 20 Mar 2013 for algebramix by  doxygen 1.6.1