TAbstractMtxVecInt Class

TPersistent→TMtxVecBase→TMtxVecInt→TAbstractMtxVecInt

type TAbstractMtxVecInt = class(TMtxVecInt);

Intermediate class to allow insertion of helper classes for TMtxVecInt.

Constructors

NameDescription
Create

Properties

NameTypeDescription
BlockEndbooleanReturns true, if the currrent subrange of the vector was also the last subrange in the vector.
CacheIndexintegerFor internal use only. Read to get the index of this object in object cache.
CapacityInt64Sizing the object will not allocate less than Capacity.
CapacityInBytesInt64Sizing the object will not allocate less than CapacityInBytes.
CapacityInElementsInt64Sizing the object will not allocate less than CapacityInElements.
CapacityStepdoubleSpecifies increment step for the Capacity property.
CaptionstringCaption.
ConditionCheckbooleanEnables/disable inline condition checking.
FirstintegerFirst element in object Values array.
IntPrecisionTIntPrecisionDefines internal storage precision which can be either 32, 16 or 8 bit.
IntPrecisionLockbooleanPrevents change to IntPrecision if Lock = True.
IsDoublebooleanDefines the precision (single or double) of the floating point operations.
IsSubRangebooleanSet to true after the SetSubIndex or SetSubRange call.
LastintegerLast element in object Values array.
LengthintegerDefines the length in number of samples.
OnSetSizeTMtxNotifyEventCalled when object size changes.
PoolIndexintegerInternal.
ScaleFactorintegerSpecifies the power of two for the scale factor used by some methods.
TagintegerStores an integer value as part of a TMtxVec object.

Methods

NameDescription
Abs (4)Absolute values.
Add (12)Add Src elements to calling vector elements.
AddAndMul (26)Compute (X + Y)*Z
AddScaled (10)Compute X + Y + Z*zScale
AddScaledC (4)Compute X + Y*yScale + zScalar
AddScaledSqr (4)Compute sqr(X + Y*yScale)
AfterConstruction
BeforeDestruction
BinaryAnd (8)Apply binary "and" between coresponding elements in Src and Self.
BinaryNot (4)Applies binary "not" operation to elements stored in the object.
BinaryOr (8)Apply binary "or" between coresponding elements in Src and Self.
BinarySearch (4)Finds a match for X in object values using binary search.
BinaryXor (8)Apply binary "xor" between coresponding elements in Src and Self.
BitPackConverts Src to packed bit storage.
BitShift (4)Apply binary shift by number of Bits to the left (positive) or right (negative) to elements in Src.
BitShiftLeft (4)Apply binary shift by number of Bits to the left to elements in Src.
BitShiftRight (4)Apply binary shift by number of Bits to the right to elements in Src.
BitUnpackConverts Src to unpacked bit storage.
BlockFinishDeinitializes block processing before the final block is processed.
BlockInit (4)Initializes block processing.
BlockNextObtains the next subrange of the data.
BlockSubRangeLevelReturns the current subrange stack level used by block processing functions.
ClearSets vector size to zero.
CondDisableSaves the current value of ConditionCheck property and sets it to false.
CondEnableSets the ConditionCheck property to whatever it was before the CondDisable was used.
Convert (2)Copy each of Vec elements to the calling object.
Copy (2)Copy object values.
CopyFromArray (14)Copies values from a 1 byte unsigned integer type Src array.
CopyToArray (16)Copies values from the calling object to the Dst array and converts data to 1 byte unsigned integer numbers.
CountInRange (2)Returns number of values within the interval.
CumSum (2)Cumulative sum.
Destroy
DifferenceDifference.
DisableSelectPrevents calls to TMtxVecBase.Select.
DisableSubrangePrevents calls to TMtxVecBase.SetSubRange.
DivAndAdd (12)Compute X/Y + Z
DivAndSub (12)Compute X/Y - Z
Divide (12)Divide calling object elements with Src elements.
DivideBy (4)Divide Value with calling vector elements.
DivideC (2)Compute X / (Y*zScale)
EnableSelectEnables calls to TMtxVecBase.Select.
EnableSubrangeEnables calls to TMtxVecBase.SetSubRange.
Find (2)Finds a match for X in object values.
FindIndexes (2)Finds matching indexes. The b parameter is of TMtxVecInt type.
FindIndexesAndLength (2)Finds matching indexes and returns their count. The b parameter is of integer type.
FindMask (4)The b parameter is of TMtxVecInt type.
FreeToCacheFrees the object.
IsEqual (4)Compares all Vec elements with calling object elements and checks also Length and IntPrecision properties, if they match.
LoadFromFileReads the header information and the values array content from the file.
LoadFromStreamLoad the list from a stream.
LogicalNot (4)Applies logical "not" operation to elements stored in the object.
Max (4)Maximum value.
MaxEvery (4)Vectorised maximum.
MaxMin (2)Calculate minimum and maximum in one procedure call.
MaxMinIdx (2)Calculate minimum, maximum and their indices in one procedure call.
Median (4)Median.
Min (4)Minimum value.
MinEvery (4)Vectorised minimum.
Mul (4)Compute X*Y*Z
MulAndAdd (14)Compute X*Y + Z
MulAndDiv (6)Compute X * Y / Z
MulAndSub (14)Compute X*Y - Z
Multiply (8)Multiply Src elements with calling vector elements.
PBValuesObtains a pointer to the 8bit unsigned integer value of the vector at Index.
PIValuesObtains a pointer to the 32bit signed integer value of the vector at Index.
PSValuesObtains a pointer to the 16bit signed integer value of the vector at Index.
PValuesObtains a pointer to the integer value of the vector at Index.
RampFills the calling vector elements [Index]..[Index+Len-1].
ReadHeaderReads the header information from a stream to object.
ReadValuesRead values content from stream to object.
RemDiv (6)Divide all Src elements with Value elements and store result of division in the calling object and reminder in RemDst.
ResetFor internal use only. Used to return object to cache.
Reverse (2)Reverse vector elements.
Rotate (2)A cyclic shift on vector elements in range.
SaveToFileWrite object header and values to a file.
SaveToStreamSave the list to a stream.
ScatterScatter object elements.
ScatterByIncrScatters Src elements starting at Offset and with Increment to the calling object.
ScatterByIndexesScatters Src elements defined with indices stored in Indexes to the calling object.
ScatterByMaskScatters Src elements defined with the Mask to the calling object.
Select (2)Resets the selection.
SelectAllResets any defined selection.
SetFullRangeResets subrange defined with SetSubRange.
SetFullRangeLevelPops the current subrange stack one level up.
SetSubIndexDefines a subarray.
SetSubRange (3)Sets the subarray size to full size.
SetSubRangeLevel (2)Defines a sub vector/matrix of Src and pushes any previous subranges on to a stack.
SetVal (2)Set all calling object elements to Value.
SetZero (2)Set all calling vector elements to zero.
Shift (2)A shift on vector elements in range.
Size (2)Size the object.
SizeToArray (8)Sizes the array.
SortAscend (2)Sort all calling vector elements in ascending order in-place.
SortDescend (2)Sort all calling vector elements in descending order in-place.
SqrAddScaled (4)Compute sqr(X) + sqr(Y)*yScale
Sub (4)Compute X - Y - Z
SubAndMul (26)Compute (X - Y)*Z
SubRangeLevelReturns the current subrange stack level.
SubScaled (6)Compute X - Y - Z*zScale
SubScaledC (4)Compute X - Y*yScale - zScalar
Subtract (8)Subtract all Src elements from calling vector elements.
SubtractFrom (4)Subtract all calling vector elements from integer Value.
Sum (2)Sums vector values.
ThreshAbsGT (4)Threshold top and bottom centered around zero.
ThreshAbsLT (4)Threshold top and bottom centered around zero.
ThreshBottom (4)Perform threshold operation on all Src object values.
ThresholdGT_LT (4)Threshold greater than and less than operation.
ThreshTop (4)Perform threshold operation on all Src object values.
WriteHeaderWrites the header information for the calling vector to a stream.
WriteValuesWrites object Values content to a stream.

Constants

NameTypeDescription
BDataMath387.TByteArray
BValuesMath387.TByteArrayAllows setting/getting the 8bit unsigned integer value at position Indx.
BValues1DMath387.TByteArray
IDataTIntegerArray
IValuesMath387.TIntegerArrayAllows setting/getting the 32bit integer value at position Indx.
IValues1DMath387.TIntegerArray
SDataTSmallIntArray
SValuesMath387.TSmallIntArrayAllows setting/getting the 16bit integer value at position Indx.
SValues1DMath387.TSmallIntArray