itoxyz: Matrix Index to Vector index

Description Usage Arguments Value Author(s) See Also Examples

Description

Given ix, iy, iz index get I.

Usage

1
xyztoi(ix, iy,iz,nx, ny, nz)

Arguments

ix

index to col vector

iy

index to row vector

iz

index to (depth) layer vector

nx

number of blocks in x axis

ny

number of blocks in y axis

nz

number of blocks in z axis (layers)

Value

i

Index of matrix

Author(s)

Jonathan M. Lees<jonathan.lees.edu>

See Also

itoxyz

Examples

1
2
3
4
5
6
7
8
9
k = itoxyz(24, 6, 6, 1)
xyztoi(k$ix, k$iy, k$iz, 6, 6, 1)

nx = 20
ny = 20
nz = 40

k = itoxyz(2440, nx, ny, nz)
xyztoi(k$ix, k$iy, k$iz, nx, ny, nz )

RPMG documentation built on Jan. 20, 2018, 9:04 a.m.