GRASS 8 Programmer's Manual 8.6.0dev(2026)-4bb960b182
Loading...
Searching...
No Matches
c_execmem.c File Reference

Cluster library - Allocate cluster. More...

#include <grass/cluster.h>
Include dependency graph for c_execmem.c:

Go to the source code of this file.

Functions

int I_cluster_exec_allocate (struct Cluster *C)
 Allocate Cluster structure.
 
int I_cluster_exec_free (struct Cluster *C)
 Free allocated Cluster structure.
 

Detailed Description

Cluster library - Allocate cluster.

SPDX-FileCopyrightText: 2001-2009 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later

Author
Original author CERL

Definition in file c_execmem.c.

Function Documentation

◆ I_cluster_exec_allocate()

int I_cluster_exec_allocate ( struct Cluster C)

◆ I_cluster_exec_free()

int I_cluster_exec_free ( struct Cluster C)

Free allocated Cluster structure.

Parameters
Cpointer to Cluster structure
Returns
0

Definition at line 51 of file c_execmem.c.

References Cluster::class, Cluster::count, Cluster::countdiff, I_free(), I_free_double2(), Cluster::mean, NULL, Cluster::reclass, Cluster::sum, Cluster::sum2, and Cluster::sumdiff.

Referenced by I_cluster_exec_allocate().