MatrixInt.Implicit Operator

Overload List

#SignatureDescription
1class operator Implicit(const AValue: MatrixInt): TMtxInt;Implicit type conversion from MatrixInt to TMtxInt.
2class operator Implicit(const AValue: MatrixInt): TMtxVecBase;Implicit type conversion from MatrixInt to TMtxInt.
3class operator Implicit(const AValue: MatrixInt): TMtxVecInt;Implicit type conversion from MatrixInt to TMtxInt.
4class operator Implicit(const a: MatrixInt): Byte};Implicit conversion from MatrixInt to Span<Byte>.
5class operator Implicit(const a: MatrixInt): Int16};Implicit conversion from MatrixInt to Span<SmallInt>.
6class operator Implicit(const a: MatrixInt): Int32};Implicit conversion from MatrixInt to Span<Integer>.
7class operator Implicit(const AValue: TIntegerArray): MatrixInt;Implicit type conversion from an array of integer to MatrixInt.
8class operator Implicit(const AValue: T2DIntegerArray): MatrixInt;Implicit type conversion from an array of integer to MatrixInt.

Overload 1: class operator Implicit(const AValue: MatrixInt): TMtxInt;

Implicit type conversion from MatrixInt to TMtxInt.

#NameTypeDescription
1AValueMatrixInt

Result: stored in self (calling object), returns self for chaining

Remarks:

Returns a pointer to the internal TMtxInt object.

Overload 2: class operator Implicit(const AValue: MatrixInt): TMtxVecBase;

Implicit type conversion from MatrixInt to TMtxInt.

#NameTypeDescription
1AValueMatrixInt

Returns: TMtxVecBase

Remarks:

Returns a pointer to the internal TMtxInt object.

Overload 3: class operator Implicit(const AValue: MatrixInt): TMtxVecInt;

Implicit type conversion from MatrixInt to TMtxInt.

#NameTypeDescription
1AValueMatrixInt

Result: stored in self (calling object), returns self for chaining

Remarks:

Returns a pointer to the internal TMtxInt object.

Overload 4: class operator Implicit(const a: MatrixInt): Byte};

Implicit conversion from MatrixInt to Span<Byte>.

#NameTypeDescription
1aMatrixInt

Returns: Byte}

Overload 5: class operator Implicit(const a: MatrixInt): Int16};

Implicit conversion from MatrixInt to Span<SmallInt>.

#NameTypeDescription
1aMatrixInt

Returns: Int16}

Overload 6: class operator Implicit(const a: MatrixInt): Int32};

Implicit conversion from MatrixInt to Span<Integer>.

#NameTypeDescription
1aMatrixInt

Returns: Int32}

Overload 7: class operator Implicit(const AValue: TIntegerArray): MatrixInt;

Implicit type conversion from an array of integer to MatrixInt.

#NameTypeDescription
1AValueTIntegerArray

Result: stored in self (calling object), returns self for chaining

Remarks:

Copies array, but does not resize resulting matrix. Example of usage in Delphi XE7 and newer:

var a: MatrixInt;
begin
a.Size(2,2);
a := [1,2,3,4]; //same as a = [[1,2],[3,4]] end;

Overload 8: class operator Implicit(const AValue: T2DIntegerArray): MatrixInt;

Implicit type conversion from an array of integer to MatrixInt.

#NameTypeDescription
1AValueT2DIntegerArray

Result: stored in self (calling object), returns self for chaining

Remarks:

Copies array and resizes resulting matrix. Example of usage:

var a: MatrixInt;
begin
a := [[1,2],[3,4]];
a := [[1,2],[3,4]] + [1,2]; //the + here is "row concatenation" a := [1,2,3,4] + a; //operator not applicable (it wont compile) end;