関数allocate_irregular3Ddata_cell マニュアル

(The documentation of function allocate_irregular3Ddata_cell)

Last Update: 2025/12/16


◆機能・用途(Purpose)

struct irregular3Ddata_cell型構造体のメンバnodesの値を設定し、 メンバvaluesの動的メモリを確保する。
Set the value of member nodes and allocate dynamic memories for member values of a struct irregular3Ddata_cell-type structure.


◆形式(Format)

#include <3d_data_uneven/memory.h>
inline struct irregular3Ddata_cell allocate_irregular3Ddata_cell
(struct irregular3Dnodes nodes)


◆引数(Arguments)

nodes 格子点配置を表す構造体。 関数allocate_irregular3Dnodes により初期化済みのものを渡す。
A structure that represents a configuration of grid nodes. Give a structure that has been initialized by function allocate_irregular3Dnodes.


◆戻り値(Return value)

メンバの値を以下のように設定した構造体。
A structure whose member values are set as follows.

メンバ
Member
値
Value
nodes 引数nodesのアドレス。
The address of argument nodes.
values 動的にメモリ確保した 要素数\(L\times M\times N\)の3次元配列(の先頭アドレス)。 \(L\), \(M\), \(N\)の値は引数nodesを参照する。 配列要素の値は設定しない。
The address of a dynamically allocated array of \(L\times M\times N\) components. The values of \(L\), \(M\), and \(N\) are referred from argument nodes. the values of the array components are not defined.


◆使用例(Example)

struct irregular3Dnodes nodes=allocate_irregular3Dnodes(10,100,500);
struct irregular3Ddata_cell data=allocate_irregular3Ddata_cell(nodes);