Main Page   Data Structures   File List   Data Fields   Globals  

ccp4_fftmap_p1.c File Reference

#include "ccp4_fftmap_p1.h"

Functions

ccp4_fftmap_p1ccp4_fftmap_p1_new (const int nu, const int nv, const int nw)
void ccp4_fftmap_p1_delete (ccp4_fftmap_p1 *map)
void ccp4_fftmap_p1_zero (ccp4_fftmap_p1 *map)
fftw_real ccp4_fftmap_p1_get_real (const ccp4_fftmap_p1 *map, const int u, const int v, const int w)
void ccp4_fftmap_p1_set_real (ccp4_fftmap_p1 *map, const int u, const int v, const int w, const fftw_real r)
fftw_complex ccp4_fftmap_p1_get_reci (const ccp4_fftmap_p1 *map, const int h, const int k, const int l)
void ccp4_fftmap_p1_set_reci (ccp4_fftmap_p1 *map, const int h, const int k, const int l, fftw_complex c)
void ccp4_fftmap_p1_scale_reci (ccp4_fftmap_p1 *map, const double sc_re, const double sc_im)
void ccp4_fftmap_p1_fft (ccp4_fftmap_p1 *map, const double vol)
void ccp4_fftmap_p1_invfft (ccp4_fftmap_p1 *map, const double vol)

Detailed Description

(C) 2001 Kevin Cowtan, derived from code by Airlie McCoy A joint copyright is also assigned to Working Group 1 of the CCP4 project, whether they want it or not, and whether it exists or not. This code is provided as free software under the CCP4 license part (i).


Function Documentation

void ccp4_fftmap_p1_delete ( ccp4_fftmap_p1 * map )
 

destroy an fftmap_p1 and deallocate memory

Parameters:
map   the map to destroy

void ccp4_fftmap_p1_fft ( ccp4_fftmap_p1 * map,
const double vol )
 

fft from reciprocal space to real space

Parameters:
map   The map in which to access the data
vol   the volume of the unit cell

fftw_real ccp4_fftmap_p1_get_real ( const ccp4_fftmap_p1 * map,
const int u,
const int v,
const int w )
 

get real data from the real space map. Map indices must be in the range (0..nu-1, 0..nv-1, 0..nw-1)

Parameters:
map   The map in which to access the data
u   u index of data to fetch
v   v index of data to fetch
w   w index of data to fetch

fftw_complex ccp4_fftmap_p1_get_reci ( const ccp4_fftmap_p1 * map,
const int h,
const int k,
const int l )
 

get complex data from the reciprocal space map Reflection indices must be in the range (-nu/2..nu/2-1, -nv/2..nv/2-1, -nw/2..nw/2-1)

Parameters:
map   The map in which to access the data
h   H index of data to fetch
k   K index of data to fetch
l   L index of data to fetch

void ccp4_fftmap_p1_invfft ( ccp4_fftmap_p1 * map,
const double vol )
 

fft from real space to reciprocal space

Parameters:
map   The map in which to access the data
vol   the volume of the unit cell

ccp4_fftmap_p1* ccp4_fftmap_p1_new ( const int nu,
const int nv,
const int nw )
 

create and allocate an fftmap_p1

Parameters:
nu   grid u dimension
nv   grid v dimension
nw   grid w dimension

void ccp4_fftmap_p1_scale_reci ( ccp4_fftmap_p1 * map,
const double sc_re,
const double sc_im )
 

scale a reciprocal space map by scaling real and reciprocal parts separately

Parameters:
map   The map in which to access the data
sc_re   the scale factor for the real parts
sc_im   the scale factor for the imaginary parts

void ccp4_fftmap_p1_set_real ( ccp4_fftmap_p1 * map,
const int u,
const int v,
const int w,
const fftw_real r )
 

set real data from the real space map Map indices must be in the range (0..nu-1, 0..nv-1, 0..nw-1)

Parameters:
map   The map in which to access the data
u   u index of data to set
v   v index of data to set
w   w index of data to set
r   the value to be set

void ccp4_fftmap_p1_set_reci ( ccp4_fftmap_p1 * map,
const int h,
const int k,
const int l,
fftw_complex c )
 

get complex data from the reciprocal space map Reflection indices must be in the range (-nu/2..nu/2-1, -nv/2..nv/2-1, -nw/2..nw/2-1)

Parameters:
map   The map in which to access the data
h   H index of data to set
k   K index of data to set
l   L index of data to set
c   the complex value to be set

void ccp4_fftmap_p1_zero ( ccp4_fftmap_p1 * map )
 

zero an fftmap_p1

Parameters:
map   the map to zero


Generated at Tue Sep 25 15:03:15 2001 for ccp4_fftmap by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001