Record TMultiArray
Unit
multiarray
Declaration
type TMultiArray = record
Description
Multidimensional array data structure.
Overview
Fields
Methods
Properties
 |
property IsContiguous: boolean read FIsContiguous write FIsContiguous; |
 |
property NDims: integer read GetNDims; |
 |
property Size: longint read GetSize; |
 |
property Items[idx:arrayofTLongVector]: TMultiArray read Slice; |
Description
Fields
 |
DataOffset: longint; |
|
|
 |
Data: array of single; |
|
|
Methods
 |
function Contiguous: TMultiArray; |
|
Returns contiguous copy of this array
|
 |
function Copy(Deep: boolean = True): TMultiArray; |
|
Perform copying of this array. By default, the actual data is referenced rather than copied. If Deep is true, then the actual data is copied.
|
 |
function Get(i: longint): single; overload; |
|
Get i-th item of the flattened array
|
 |
function GetVirtualData: TSingleVector; |
|
Returns a TSingleVector containing "strided" data, instead of the actual data.
|
 |
function Item: Single; |
|
Convert Self to a single-typed scalar if NDims=0
|
 |
function Slice(idx: array of TLongVector): TMultiArray; |
|
Perform multidimensional slicing. For now Slice will return contiguous.
|
 |
function T: TMultiArray; |
|
Perform transpose. If NDims > 2, the reverse the axis
|
 |
procedure Put(i: array of integer; x: single); |
|
|
Properties
 |
property IsContiguous: boolean read FIsContiguous write FIsContiguous; |
|
|
 |
property NDims: integer read GetNDims; |
|
|
 |
property Size: longint read GetSize; |
|
|
Generated by PasDoc 0.15.0.
|