Rate This Document
Findability
Accuracy
Completeness
Readability

kml_?_interp2d_alloc

Allocate a new object of type T. The new object has a grid of length xsize in the x direction and a grid of length ysize in the y direction.

Interface Definition

kml_float_interp2d *kml_float_interp2d_alloc(const kml_float_interp2d_type *T, const size_t xsize, const size_t ysize)

kml_double_interp2d *kml_double_interp2d_alloc(const kml_double_interp2d_type *T, const size_t xsize, const size_t ysize);

Parameters

Parameter

Type

Description

Input/Output

T

const kml_float_interp2d_type* / const kml_double_interp2d_type*

Pointer to a type object.

Input

xsize

size_t

Grid length in the x direction.

Input

ysize

size_t

Grid length in the y direction.

Input

Dependencies

#include "kipl.h"

Examples

const size_t xSize = 4;
const size_t ySize = 4;
kml_float_interp2d *interp = kml_float_interp2d_alloc(kml_float_interp2d_bicubic, xSize, ySize);