Class LongTensor
Tensor of type Long.
Inheritance
Namespace: TorchSharp
Assembly: TorchSharp.dll
Syntax
public class LongTensor : IDisposable
Remarks
Use the default constructor to create an empty tensor, or invoke one of the constructors with one (1D), two (2D), three (3D), or four parameters (4D) to x create a tensor for the desired number of dimensions.
Constructors
LongTensor()
Creates an empty tensor.
Declaration
public LongTensor ();
LongTensor(Int64)
Creates a 1D tensor of the specified size.
Declaration
public LongTensor (long size0);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | size0 | Size for the first dimension. |
LongTensor(Int64, Int64)
Creates a 2D tensor of the specified size.
Declaration
public LongTensor (long size0, long size1);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | size0 | Size for the first dimension. |
| System.Int64 | size1 | Size for the second dimension. |
LongTensor(Int64, Int64, Int64)
Creates a 3D tensor of the specified size.
Declaration
public LongTensor (long size0, long size1, long size2);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | size0 | Size for the first dimension. |
| System.Int64 | size1 | Size for the second dimension. |
| System.Int64 | size2 | Size for the third dimension. |
LongTensor(Int64, Int64, Int64, Int64)
Creates a 4D tensor of the specified size.
Declaration
public LongTensor (long size0, long size1, long size2, long size3);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | size0 | Size for the first dimension. |
| System.Int64 | size1 | Size for the second dimension. |
| System.Int64 | size2 | Size for the third dimension. |
| System.Int64 | size3 | Size for the fourth dimension. |
Properties
Data
Returns a pointer to the unmanaged data managed by this tensor.
Declaration
public long* Data { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64* | To be added. |
Dimensions
Returns the number of dimensions for this tensor
Declaration
public int Dimensions { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | To be added. |
Item(Int64)
Access to element at the specified position in the tensor
Declaration
public long this[long x0] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | x0 | Index to access. |
Property Value
| Type | Description |
|---|---|
| System.Int64 | To be added. |
Item(Int64, Int64)
Access to element at the specified position in the tensor
Declaration
public long this[long x0, long x1] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | x0 | Index in the first dimension to access. |
| System.Int64 | x1 | Index in the second dimension to access. |
Property Value
| Type | Description |
|---|---|
| System.Int64 | To be added. |
Item(Int64, Int64, Int64)
Access to element at the specified position in the tensor
Declaration
public long this[long x0, long x1, long x2] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | x0 | Index in the first dimension to access. |
| System.Int64 | x1 | Index in the second dimension to access. |
| System.Int64 | x2 | Index in the third dimension to access. |
Property Value
| Type | Description |
|---|---|
| System.Int64 | To be added. |
Item(Int64, Int64, Int64, Int64)
Access to element at the specified position in the tensor
Declaration
public long this[long x0, long x1, long x2, long x3] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | x0 | Index in the first dimension to access. |
| System.Int64 | x1 | Index in the second dimension to access. |
| System.Int64 | x2 | Index in the third dimension to access. |
| System.Int64 | x3 | Index in the fourth dimension to access. |
Property Value
| Type | Description |
|---|---|
| System.Int64 | To be added. |
Shape
Returns the tensor shape, this is an array whose size determines the number of dimensions on the tensor, and each element is the size of the dimension
Declaration
public long[] Shape { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64[] | To be added. |
Remarks
An array of size 0 is used for constants, an array of size 1 is used for single-dimension arrays, where the dimension is the value of the first element. And so on.
Storage
Returns the associated storage for this tensor
Declaration
public TorchSharp.LongTensor.LongStorage Storage { get; }
Property Value
| Type | Description |
|---|---|
To be added. |
Methods
Add(Int64)
Performs the Add operation on each element of the tensor with the
Declaration
public TorchSharp.LongTensor Add (long value);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Remarks
If you want to avoid the allocation of a new tensor, you can use the alternative method PytorchSharp.Add(PytorchSharp.LongTensor, Long, PytorchSharp.Long).
Add(LongTensor, Int64, LongTensor)
Performs the Add operation on each element of the source with the provided scalar. The result tensor specified as the last parameters is resized to match the source.
Declaration
public static void Add (TorchSharp.LongTensor source, long value, TorchSharp.LongTensor result);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | source | Source tensor on which the operation will take place. |
| System.Int64 | value | The scalar value that the operation uses. |
| LongTensor | result | The tensor where the result will be placed |
Remarks
For each element in the
AddBMM(Int64, Int64, LongTensor, LongTensor)
Performs AddBMM of the tensor with the provided
Declaration
public TorchSharp.LongTensor AddBMM (long beta, long alpha, TorchSharp.LongTensor batch1, TorchSharp.LongTensor batch2);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | beta | Multiplier for this tensor (β). |
| System.Int64 | alpha | Multiplier for batch1xbatch2 (α) |
| LongTensor | batch1 | the first batch of matrices to be multiplied |
| LongTensor | batch2 | the second batch of matrices to be multiplied |
Returns
| Type | Description |
|---|---|
| LongTensor | β mat+α (∑i=0bbatch1i@batch2i) |
Remarks
β mat+α (∑i=0bbatch1i@batch2i)
AddCDiv(Int64, LongTensor, LongTensor)
Performs AddCDiv of the tensor with the provided
Declaration
public TorchSharp.LongTensor AddCDiv (long value, TorchSharp.LongTensor src1, TorchSharp.LongTensor src2);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value | To be added. |
| LongTensor | src1 | To be added. |
| LongTensor | src2 | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
AddCMul(Int64, LongTensor, LongTensor)
Performs AddCMul of the tensor with the provided
Declaration
public TorchSharp.LongTensor AddCMul (long value, TorchSharp.LongTensor src1, TorchSharp.LongTensor src2);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value | To be added. |
| LongTensor | src1 | To be added. |
| LongTensor | src2 | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
AddMM(Int64, Int64, LongTensor, LongTensor)
Performs AddMM of the tensor with the provided
Declaration
public TorchSharp.LongTensor AddMM (long beta, long alpha, TorchSharp.LongTensor mat1, TorchSharp.LongTensor mat2);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | beta | Multiplier for this tensor (β). |
| System.Int64 | alpha | Multiplier for mat1xmat2 (α) |
| LongTensor | mat1 | First matrix to be multiplied |
| LongTensor | mat2 | Second matrix to be multiplied |
Returns
| Type | Description |
|---|---|
| LongTensor | β mat+α (mat1i@mat2i) |
Remarks
β mat+α (mat1i@mat2i)
AddMV(Int64, Int64, LongTensor, LongTensor)
Performs AddMV of the tensor with the provided
Declaration
public TorchSharp.LongTensor AddMV (long beta, long alpha, TorchSharp.LongTensor mat, TorchSharp.LongTensor vec);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | beta | Multiplier for this tensor (β). |
| System.Int64 | alpha | Multiplier for matxvec (α) |
| LongTensor | mat | Matrix to be multiplied |
| LongTensor | vec | Vector to be multiplied |
Returns
| Type | Description |
|---|---|
| LongTensor | β tensor+α (mat@vec) |
Remarks
β tensor+α (mat@vec)
AddR(Int64, Int64, LongTensor, LongTensor)
Performs AddR of the tensor with the provided
Declaration
public TorchSharp.LongTensor AddR (long beta, long alpha, TorchSharp.LongTensor vec1, TorchSharp.LongTensor vec2);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | beta | Multiplier for this tensor (β). |
| System.Int64 | alpha | Multiplier for vec1xvec2 (α) |
| LongTensor | vec1 | the first vector of the outer product |
| LongTensor | vec2 | the second vector of the outer product |
Returns
| Type | Description |
|---|---|
| LongTensor | β mat+α (vec1⊗vec2) |
Remarks
β mat+α (vec1⊗vec2)
AddScaled(Int64, Int64)
Performs an AddScaled of the tensor with the provided
Declaration
public TorchSharp.LongTensor AddScaled (long value1, long value2);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value1 | To be added. |
| System.Int64 | value2 | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
ARange(Int64, Int64, Int64)
Create a range spanning from xmin to xmax, with 'step' between each value.
Declaration
public static TorchSharp.LongTensor ARange (long xmin, long xmax, long step);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | xmin | The lower bound of the range. |
| System.Int64 | xmax | The upper bound of the range. |
| System.Int64 | step | The value step. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
BAddBMM(Int64, Int64, LongTensor, LongTensor)
Performs BAddBMM of the tensor with the provided
Declaration
public TorchSharp.LongTensor BAddBMM (long beta, long alpha, TorchSharp.LongTensor batch1, TorchSharp.LongTensor batch2);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | beta | Multiplier for this tensor (β). |
| System.Int64 | alpha | Multiplier for batch1xbatch2 (α) |
| LongTensor | batch1 | the first batch of matrices to be multiplied |
| LongTensor | batch2 | the second batch of matrices to be multiplied |
Returns
| Type | Description |
|---|---|
| LongTensor | β mati+α (batch1i@batch2i) |
Remarks
β mati+α (batch1i@batch2i)
BitAnd(Int64)
Performs the BitAnd operation on each element of the tensor with the
Declaration
public TorchSharp.LongTensor BitAnd (long value);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Remarks
If you want to avoid the allocation of a new tensor, you can use the alternative method PytorchSharp.BitAnd(PytorchSharp.LongTensor, Long, PytorchSharp.Long).
BitAnd(LongTensor, Int64, LongTensor)
Performs the BitAnd operation on each element of the source with the provided scalar. The result tensor specified as the last parameters is resized to match the source.
Declaration
public static void BitAnd (TorchSharp.LongTensor source, long value, TorchSharp.LongTensor result);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | source | Source tensor on which the operation will take place. |
| System.Int64 | value | The scalar value that the operation uses. |
| LongTensor | result | The tensor where the result will be placed |
Remarks
For each element in the
BitOr(Int64)
Performs the BitOr operation on each element of the tensor with the
Declaration
public TorchSharp.LongTensor BitOr (long value);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Remarks
If you want to avoid the allocation of a new tensor, you can use the alternative method PytorchSharp.BitOr(PytorchSharp.LongTensor, Long, PytorchSharp.Long).
BitOr(LongTensor, Int64, LongTensor)
Performs the BitOr operation on each element of the source with the provided scalar. The result tensor specified as the last parameters is resized to match the source.
Declaration
public static void BitOr (TorchSharp.LongTensor source, long value, TorchSharp.LongTensor result);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | source | Source tensor on which the operation will take place. |
| System.Int64 | value | The scalar value that the operation uses. |
| LongTensor | result | The tensor where the result will be placed |
Remarks
For each element in the
BitXor(LongTensor, Int64, LongTensor)
Performs the BitXor operation on each element of the source with the provided scalar. The result tensor specified as the last parameters is resized to match the source.
Declaration
public static void BitXor (TorchSharp.LongTensor source, long value, TorchSharp.LongTensor result);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | source | Source tensor on which the operation will take place. |
| System.Int64 | value | The scalar value that the operation uses. |
| LongTensor | result | The tensor where the result will be placed |
Remarks
For each element in the
BitXor(Int64)
Performs the BitXor operation on each element of the tensor with the
Declaration
public TorchSharp.LongTensor BitXor (long value);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Remarks
If you want to avoid the allocation of a new tensor, you can use the alternative method PytorchSharp.BitXor(PytorchSharp.LongTensor, Long, PytorchSharp.Long).
CAdd(Int64, LongTensor)
Performs the CAdd operation on each element of the tensor with the
Declaration
public TorchSharp.LongTensor CAdd (long value, TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value | To be added. |
| LongTensor | src | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
CappedRandom(RandomGenerator, Int64)
Populates the tensor with random values from 0 to max, using the provided random source generator.
Declaration
public void CappedRandom (TorchSharp.RandomGenerator source, long max);
Parameters
| Type | Name | Description |
|---|---|---|
| RandomGenerator | source | The random generator source |
| System.Int64 | max | The upper limit for the values to be generated |
CBitAnd(LongTensor)
Performs an CBitAnd of the tensor with the provided
Declaration
public TorchSharp.LongTensor CBitAnd (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
CBitOr(LongTensor)
Performs an CBitOr of the tensor with the provided
Declaration
public TorchSharp.LongTensor CBitOr (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
CBitXor(LongTensor)
Performs an CBitXor of the tensor with the provided
Declaration
public TorchSharp.LongTensor CBitXor (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
CDiv(LongTensor)
Performs an CDiv of the tensor with the provided
Declaration
public TorchSharp.LongTensor CDiv (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
CFMod(LongTensor)
Performs an CFMod of the tensor with the provided
Declaration
public TorchSharp.LongTensor CFMod (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Clamp(Int64, Int64)
Performs an Clamp of the tensor with the provided
Declaration
public TorchSharp.LongTensor Clamp (long value1, long value2);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value1 | To be added. |
| System.Int64 | value2 | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Clamp(LongTensor, Int64, LongTensor)
Performs the Clamp operation on each element of the source with the provided scalar. The result tensor specified as the last parameters is resized to match the source.
Declaration
public static void Clamp (TorchSharp.LongTensor source, long value, TorchSharp.LongTensor result);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | source | Source tensor on which the operation will take place. |
| System.Int64 | value | The scalar value that the operation uses. |
| LongTensor | result | The tensor where the result will be placed |
Remarks
For each element in the
Clamp(Int64)
Performs the Clamp operation on each element of the tensor with the
Declaration
public TorchSharp.LongTensor Clamp (long value);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Remarks
If you want to avoid the allocation of a new tensor, you can use the alternative method PytorchSharp.Clamp(PytorchSharp.LongTensor, Long, PytorchSharp.Long).
ClampedRandom(RandomGenerator, Int64, Int64)
Populates the tensor with random values from min to max, using the provided random source generator.
Declaration
public void ClampedRandom (TorchSharp.RandomGenerator source, long min, long max);
Parameters
| Type | Name | Description |
|---|---|---|
| RandomGenerator | source | The random generator source |
| System.Int64 | min | The lower limit for the values to be generated |
| System.Int64 | max | The upper limit for the values to be generated |
Clone()
Returns a deep clone of the tensor
Declaration
public TorchSharp.LongTensor Clone ();
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
CLShift(LongTensor)
Performs an CLShift of the tensor with the provided
Declaration
public TorchSharp.LongTensor CLShift (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
CMax(LongTensor)
Performs an CMax of the tensor with the provided
Declaration
public TorchSharp.LongTensor CMax (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
CMaxValue(Int64)
Performs an CMaxValue of the tensor with the provided
Declaration
public TorchSharp.LongTensor CMaxValue (long src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
CMin(LongTensor)
Performs an CMin of the tensor with the provided
Declaration
public TorchSharp.LongTensor CMin (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
CMinValue(Int64)
Performs an CMinValue of the tensor with the provided
Declaration
public TorchSharp.LongTensor CMinValue (long src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
CMul(LongTensor)
Performs an CMul of the tensor with the provided
Declaration
public TorchSharp.LongTensor CMul (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Concatenate(LongTensor, Int32)
Concatenate tensors along the given dimesion.
Declaration
public TorchSharp.LongTensor Concatenate (TorchSharp.LongTensor other, int dimension);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | other | The second tensor. |
| System.Int32 | dimension | The dimension along which to concatenate. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
Copy(LongTensor)
Copies the elements of a tensor into the original tensor. The shape of the tensors must exactly match or an error will be thrown.
Declaration
public void Copy (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | Tensor to copy the data from. |
CopyByte(ByteTensor)
Copies the elements of a byte tensor into the original tensor. The shape of the tensors must exactly match or an error will be thrown.
Declaration
public void CopyByte (TorchSharp.ByteTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| ByteTensor | src | Tensor to copy the data from. |
CopyDouble(DoubleTensor)
Copies the elements of a double tensor into the original tensor. The shape of the tensors must exactly match or an error will be thrown.
Declaration
public void CopyDouble (TorchSharp.DoubleTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| DoubleTensor | src | Tensor to copy the data from. |
CopyFloat(FloatTensor)
Copies the elements of a float tensor into the original tensor. The shape of the tensors must exactly match or an error will be thrown.
Declaration
public void CopyFloat (TorchSharp.FloatTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| FloatTensor | src | Tensor to copy the data from. |
CopyInt(IntTensor)
Copies the elements of a int tensor into the original tensor. The shape of the tensors must exactly match or an error will be thrown.
Declaration
public void CopyInt (TorchSharp.IntTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| IntTensor | src | Tensor to copy the data from. |
CopyLong(LongTensor)
Copies the elements of a long tensor into the original tensor. The shape of the tensors must exactly match or an error will be thrown.
Declaration
public void CopyLong (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | Tensor to copy the data from. |
CopyShort(ShortTensor)
Copies the elements of a short tensor into the original tensor. The shape of the tensors must exactly match or an error will be thrown.
Declaration
public void CopyShort (TorchSharp.ShortTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| ShortTensor | src | Tensor to copy the data from. |
CPow(LongTensor)
Performs an CPow of the tensor with the provided
Declaration
public TorchSharp.LongTensor CPow (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
CRemainder(LongTensor)
Performs an CRemainder of the tensor with the provided
Declaration
public TorchSharp.LongTensor CRemainder (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
CrossProduct(LongTensor)
Computes the cross product of two tensors.
Declaration
public TorchSharp.LongTensor CrossProduct (TorchSharp.LongTensor other);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | other | The right-hand-side tensor. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
CSub(Int64, LongTensor)
Performs the CSub operation on each element of the tensor with the
Declaration
public TorchSharp.LongTensor CSub (long value, TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value | To be added. |
| LongTensor | src | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
CumulativeProd(Int32)
Computes the cumulative product of all the elements of the tensor along the given dimension.
Declaration
public TorchSharp.LongTensor CumulativeProd (int dimension);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dimension | The dimension to process along. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
CumulativeSum(Int32)
Computes the cumulative sum of all the elements of the tensor along the given dimension.
Declaration
public TorchSharp.LongTensor CumulativeSum (int dimension);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dimension | The dimension to process along. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
Diagonal(Int32)
Gets the diagonal of the tensor.
Declaration
public TorchSharp.LongTensor Diagonal (int k);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | k | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
Dispose()
Releases the tensor and its associated data.
Declaration
public void Dispose ();
Dispose(Boolean)
Implements the .NET Dispose pattern.
Declaration
protected void Dispose (bool disposing);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing | To be added. |
Div(Int64)
Performs the Div operation on each element of the tensor with the
Declaration
public TorchSharp.LongTensor Div (long value);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Remarks
If you want to avoid the allocation of a new tensor, you can use the alternative method PytorchSharp.Div(PytorchSharp.LongTensor, Long, PytorchSharp.Long).
Div(LongTensor, Int64, LongTensor)
Performs the Div operation on each element of the source with the provided scalar. The result tensor specified as the last parameters is resized to match the source.
Declaration
public static void Div (TorchSharp.LongTensor source, long value, TorchSharp.LongTensor result);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | source | Source tensor on which the operation will take place. |
| System.Int64 | value | The scalar value that the operation uses. |
| LongTensor | result | The tensor where the result will be placed |
Remarks
For each element in the
Dot(LongTensor)
Returns the tensor product between this tensor and the provided one
Declaration
public long Dot (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| System.Int64 | The dot product |
EqTensor(LongTensor)
Performs an EqTensor of the tensor with the provided
Declaration
public TorchSharp.ByteTensor EqTensor (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| ByteTensor | This returns a new tensor with the same shape as the tensor this operates on. |
EqTensorT(LongTensor)
Performs an EqTensorT of the tensor with the provided
Declaration
public TorchSharp.LongTensor EqTensorT (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Equal(LongTensor)
Compare the tensor with another for complete equality.
Declaration
public bool Equal (TorchSharp.LongTensor other);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | other | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| System.Boolean | To be added. |
EqValue(Int64)
Performs an EqValue of the tensor with the provided
Declaration
public TorchSharp.ByteTensor EqValue (long src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| ByteTensor | This returns a new tensor with the same shape as the tensor this operates on. |
EqValueT(Int64)
Performs an EqValueT of the tensor with the provided
Declaration
public TorchSharp.LongTensor EqValueT (long src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Eye(Int64, Int64)
Eye.
Declaration
public static TorchSharp.LongTensor Eye (long m, long n);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | m | To be added. |
| System.Int64 | n | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
Fill(Int64)
Fills the tensor with the specified value
Declaration
public void Fill (long value);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value | To be added. |
Finalize()
Finalizer for ~LongTensor
Declaration
~LongTensor ();
Fmod(Int64)
Performs the Fmod operation on each element of the tensor with the
Declaration
public TorchSharp.LongTensor Fmod (long value);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Remarks
If you want to avoid the allocation of a new tensor, you can use the alternative method PytorchSharp.Fmod(PytorchSharp.LongTensor, Long, PytorchSharp.Long).
Fmod(LongTensor, Int64, LongTensor)
Performs the Fmod operation on each element of the source with the provided scalar. The result tensor specified as the last parameters is resized to match the source.
Declaration
public static void Fmod (TorchSharp.LongTensor source, long value, TorchSharp.LongTensor result);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | source | Source tensor on which the operation will take place. |
| System.Int64 | value | The scalar value that the operation uses. |
| LongTensor | result | The tensor where the result will be placed |
Remarks
For each element in the
Gather(LongTensor, Int32, LongTensor)
Gather
Declaration
public void Gather (TorchSharp.LongTensor src, int dim, TorchSharp.LongTensor index);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | To be added. |
| System.Int32 | dim | To be added. |
| LongTensor | index | Indices of entries to copy. |
Geometric(RandomGenerator, Double)
Populates the tensor with random values from 0 to n, using the provided random source generator.
Declaration
public void Geometric (TorchSharp.RandomGenerator source, double p);
Parameters
| Type | Name | Description |
|---|---|---|
| RandomGenerator | source | The random generator source |
| System.Double | p | To be added. |
GeTensor(LongTensor)
Performs an GeTensor of the tensor with the provided
Declaration
public TorchSharp.ByteTensor GeTensor (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| ByteTensor | This returns a new tensor with the same shape as the tensor this operates on. |
GeTensorT(LongTensor)
Performs an GeTensorT of the tensor with the provided
Declaration
public TorchSharp.LongTensor GeTensorT (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
GetTensorDimension(Int32)
Retrieves the size of the specified dimension in the tensor.
Declaration
public long GetTensorDimension (int dim);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dim | To be added. |
Returns
| Type | Description |
|---|---|
| System.Int64 | To be added. |
GetTensorStride(Int32)
Retrieves the stride of the specified dimension in the tensor.
Declaration
public long GetTensorStride (int dim);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dim | To be added. |
Returns
| Type | Description |
|---|---|
| System.Int64 | To be added. |
GeValue(Int64)
Performs an GeValue of the tensor with the provided
Declaration
public TorchSharp.ByteTensor GeValue (long src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| ByteTensor | This returns a new tensor with the same shape as the tensor this operates on. |
GeValueT(Int64)
Performs an GeValueT of the tensor with the provided
Declaration
public TorchSharp.LongTensor GeValueT (long src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
GtTensor(LongTensor)
Performs an GtTensor of the tensor with the provided
Declaration
public TorchSharp.ByteTensor GtTensor (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| ByteTensor | This returns a new tensor with the same shape as the tensor this operates on. |
GtTensorT(LongTensor)
Performs an GtTensorT of the tensor with the provided
Declaration
public TorchSharp.LongTensor GtTensorT (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
GtValue(Int64)
Performs an GtValue of the tensor with the provided
Declaration
public TorchSharp.ByteTensor GtValue (long src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| ByteTensor | This returns a new tensor with the same shape as the tensor this operates on. |
GtValueT(Int64)
Performs an GtValueT of the tensor with the provided
Declaration
public TorchSharp.LongTensor GtValueT (long src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
IndexAdd(Int32, LongTensor, LongTensor)
Adds the elements of tensor into the original tensor by selecting the indices in the order given in index. The shape of tensor must exactly match the elements indexed or an error will be thrown.
Declaration
public void IndexAdd (int dim, TorchSharp.LongTensor index, TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dim | Dimension to select for the add |
| LongTensor | index | Entries to copy |
| LongTensor | src | Tensor to copy the data from. |
IndexCopy(Int32, LongTensor, LongTensor)
Copies the elements of tensor into the original tensor by selecting the indices in the order given in index. The shape of tensor must exactly match the elements indexed or an error will be thrown.
Declaration
public void IndexCopy (int dim, TorchSharp.LongTensor index, TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dim | Dimension to select for the copy |
| LongTensor | index | Entries to copy |
| LongTensor | src | Tensor to copy the data from. |
IndexFill(Int32, LongTensor, Int64)
Uses the given value to overwrite the original tensor by selecting the indices in the order given in index. The shape of tensor must exactly match the elements indexed or an error will be thrown.
Declaration
public void IndexFill (int dim, TorchSharp.LongTensor index, long value);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dim | Dimension to select for the fill |
| LongTensor | index | Entries to copy |
| System.Int64 | value | The value to write. |
IndexSelect(Int32, LongTensor)
Returns a new Tensor which indexes the original Tensor along dimension dim using the entries in index. The returned Tensor has the same number of dimensions as the original Tensor. The returned Tensor does not use the same storage as the original Tensor.
Declaration
public TorchSharp.LongTensor IndexSelect (int dim, TorchSharp.LongTensor index);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dim | Dimension to select |
| LongTensor | index | Entries to extract |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
KthValue(Int64, Int32, Boolean)
Computes the kth value of all the elements of the tensor along the given dimension.
Declaration
public Tuple<TorchSharp.LongTensor,TorchSharp.LongTensor> KthValue (long k, int dimension, bool keepdim);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | k | The value for 'k' in 'kth'. |
| System.Int32 | dimension | The dimension to process along. |
| System.Boolean | keepdim | true if the reduction dimension should be kept, false otherwise. |
Returns
| Type | Description |
|---|---|
| System.Tuple<LongTensor,LongTensor> | A tuple containing the values and indices of the kth element of each dimension. |
LERP(LongTensor, Int64)
LERP
Declaration
public TorchSharp.LongTensor LERP (TorchSharp.LongTensor other, long weight);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | other | The right-hand-side operand. |
| System.Int64 | weight | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
LeTensor(LongTensor)
Performs an LeTensor of the tensor with the provided
Declaration
public TorchSharp.ByteTensor LeTensor (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| ByteTensor | This returns a new tensor with the same shape as the tensor this operates on. |
LeTensorT(LongTensor)
Performs an LeTensorT of the tensor with the provided
Declaration
public TorchSharp.LongTensor LeTensorT (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
LeValue(Int64)
Performs an LeValue of the tensor with the provided
Declaration
public TorchSharp.ByteTensor LeValue (long src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| ByteTensor | This returns a new tensor with the same shape as the tensor this operates on. |
LeValueT(Int64)
Performs an LeValueT of the tensor with the provided
Declaration
public TorchSharp.LongTensor LeValueT (long src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
LShift(Int64)
Performs the LShift operation on each element of the tensor with the
Declaration
public TorchSharp.LongTensor LShift (long value);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Remarks
If you want to avoid the allocation of a new tensor, you can use the alternative method PytorchSharp.LShift(PytorchSharp.LongTensor, Long, PytorchSharp.Long).
LShift(LongTensor, Int64, LongTensor)
Performs the LShift operation on each element of the source with the provided scalar. The result tensor specified as the last parameters is resized to match the source.
Declaration
public static void LShift (TorchSharp.LongTensor source, long value, TorchSharp.LongTensor result);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | source | Source tensor on which the operation will take place. |
| System.Int64 | value | The scalar value that the operation uses. |
| LongTensor | result | The tensor where the result will be placed |
Remarks
For each element in the
LtTensor(LongTensor)
Performs an LtTensor of the tensor with the provided
Declaration
public TorchSharp.ByteTensor LtTensor (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| ByteTensor | This returns a new tensor with the same shape as the tensor this operates on. |
LtTensorT(LongTensor)
Performs an LtTensorT of the tensor with the provided
Declaration
public TorchSharp.LongTensor LtTensorT (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
LtValue(Int64)
Performs an LtValue of the tensor with the provided
Declaration
public TorchSharp.ByteTensor LtValue (long src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| ByteTensor | This returns a new tensor with the same shape as the tensor this operates on. |
LtValueT(Int64)
Performs an LtValueT of the tensor with the provided
Declaration
public TorchSharp.LongTensor LtValueT (long src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
MaskedCopy(ByteTensor, LongTensor)
Copies elements from the source tensor to the locations indicated by the mask.
Declaration
public void MaskedCopy (TorchSharp.ByteTensor mask, TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| ByteTensor | mask | A byte tensor with values 0 or 1 indicating the locations where in the destination the value should be filled. |
| LongTensor | src | The source tensor. |
Remarks
There must be at least as many elements in the source tensor as there are 1s in the mask.
MaskedFill(ByteTensor, Int64)
Fills the tensor with the specified value at the locations indicated by the mask.
Declaration
public void MaskedFill (TorchSharp.ByteTensor mask, long value);
Parameters
| Type | Name | Description |
|---|---|---|
| ByteTensor | mask | A byte tensor with values 0 or 1 indicating the locations where the value should be filled. |
| System.Int64 | value | The value to write at the indicated locations. |
MaskedSelect(ByteTensor, LongTensor)
Copies elements from the source tensor at the locations indicated by the mask.
Declaration
public void MaskedSelect (TorchSharp.ByteTensor mask, TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| ByteTensor | mask | A byte tensor with values 0 or 1 indicating the locations where in the source the value should be fetched. |
| LongTensor | src | The source tensor. |
Remarks
There will be as many elements in the tensor as there are 1s in the mask. There must be at least as many elements in the source tensor as there are 1s in the mask.
Match(LongTensor, Int64)
Match
Declaration
public TorchSharp.LongTensor Match (TorchSharp.LongTensor m2, long gain);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | m2 | To be added. |
| System.Int64 | gain | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Max(Int32, Boolean)
Computes the max of all the elements of the tensor along the given dimension.
Declaration
public Tuple<TorchSharp.LongTensor,TorchSharp.LongTensor> Max (int dimension, bool keepdim);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dimension | The dimension to process along. |
| System.Boolean | keepdim | true if the reduction dimension should be kept, false otherwise. |
Returns
| Type | Description |
|---|---|
| System.Tuple<LongTensor,LongTensor> | A tuple containing the values and indices of the resulting elements. |
MaxAll()
Returns the maximum value of the elements in the tensor.
Declaration
public long MaxAll ();
Returns
| Type | Description |
|---|---|
| System.Int64 | The maximum value of the tensor. |
MeanAll()
Returns the mean of the elements in the tensor.
Declaration
public long MeanAll ();
Returns
| Type | Description |
|---|---|
| System.Int64 | The mean of the tensor. |
Median(Int32, Boolean)
Computes the median of all the elements of the tensor along the given dimension.
Declaration
public Tuple<TorchSharp.LongTensor,TorchSharp.LongTensor> Median (int dimension, bool keepdim);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dimension | The dimension to process along. |
| System.Boolean | keepdim | true if the reduction dimension should be kept, false otherwise. |
Returns
| Type | Description |
|---|---|
| System.Tuple<LongTensor,LongTensor> | A tuple containing the values and indices of the resulting elements. |
MedianAll()
Returns the median of the elements in the tensor.
Declaration
public long MedianAll ();
Returns
| Type | Description |
|---|---|
| System.Int64 | The median of the tensor. |
Min(Int32, Boolean)
Computes the min of all the elements of the tensor along the given dimension.
Declaration
public Tuple<TorchSharp.LongTensor,TorchSharp.LongTensor> Min (int dimension, bool keepdim);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dimension | The dimension to process along. |
| System.Boolean | keepdim | true if the reduction dimension should be kept, false otherwise. |
Returns
| Type | Description |
|---|---|
| System.Tuple<LongTensor,LongTensor> | A tuple containing the values and indices of the resulting elements. |
MinAll()
Returns the minimum value of the elements in the tensor.
Declaration
public long MinAll ();
Returns
| Type | Description |
|---|---|
| System.Int64 | The minimum value of the tensor. |
Mode(Int32, Boolean)
Computes the mode of all the elements of the tensor along the given dimension.
Declaration
public Tuple<TorchSharp.LongTensor,TorchSharp.LongTensor> Mode (int dimension, bool keepdim);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dimension | The dimension to process along. |
| System.Boolean | keepdim | true if the reduction dimension should be kept, false otherwise. |
Returns
| Type | Description |
|---|---|
| System.Tuple<LongTensor,LongTensor> | A tuple containing the values and indices of the resulting elements. |
Mul(Int64)
Performs the Mul operation on each element of the tensor with the
Declaration
public TorchSharp.LongTensor Mul (long value);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Remarks
If you want to avoid the allocation of a new tensor, you can use the alternative method PytorchSharp.Mul(PytorchSharp.LongTensor, Long, PytorchSharp.Long).
Mul(LongTensor, Int64, LongTensor)
Performs the Mul operation on each element of the source with the provided scalar. The result tensor specified as the last parameters is resized to match the source.
Declaration
public static void Mul (TorchSharp.LongTensor source, long value, TorchSharp.LongTensor result);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | source | Source tensor on which the operation will take place. |
| System.Int64 | value | The scalar value that the operation uses. |
| LongTensor | result | The tensor where the result will be placed |
Remarks
For each element in the
Narrow(Int32, Int64, Int64)
Returns a new Tensor which is a narrowed version of the current one: the dimension dim is narrowed from firstIndexto firstIndex+size-1.
Declaration
public TorchSharp.LongTensor Narrow (int dim, long firstIndex, long size);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dim | The dimension to narrow |
| System.Int64 | firstIndex | Initial index to narrow |
| System.Int64 | size | Number of elements |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
NeTensor(LongTensor)
Performs an NeTensor of the tensor with the provided
Declaration
public TorchSharp.ByteTensor NeTensor (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| ByteTensor | This returns a new tensor with the same shape as the tensor this operates on. |
NeTensorT(LongTensor)
Performs an NeTensorT of the tensor with the provided
Declaration
public TorchSharp.LongTensor NeTensorT (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
NeValue(Int64)
Performs an NeValue of the tensor with the provided
Declaration
public TorchSharp.ByteTensor NeValue (long src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| ByteTensor | This returns a new tensor with the same shape as the tensor this operates on. |
NeValueT(Int64)
Performs an NeValueT of the tensor with the provided
Declaration
public TorchSharp.LongTensor NeValueT (long src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | src | The right-hand-side operand. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
NewWithStorage1d(IntPtr, Int64, Int64)
Access to element at the specified position in the tensor
Declaration
public TorchSharp.LongTensor NewWithStorage1d (IntPtr offset, long size, long stride);
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | offset | Offset within the input storage the storage of the new tensor will start from. |
| System.Int64 | size | Size of the first dimension. |
| System.Int64 | stride | Stride of the first dimension. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
NewWithStorage2d(IntPtr, Int64, Int64, Int64, Int64)
Access to element at the specified position in the tensor
Declaration
public TorchSharp.LongTensor NewWithStorage2d (IntPtr offset, long size0, long stride0, long size1, long stride1);
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | offset | Offset within the input storage the storage of the new tensor will start from. |
| System.Int64 | size0 | Size of the first dimension. |
| System.Int64 | stride0 | Stride of the first dimension. |
| System.Int64 | size1 | Size of the second dimension. |
| System.Int64 | stride1 | Stride of the second dimension. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
NewWithStorage3d(IntPtr, Int64, Int64, Int64, Int64, Int64, Int64)
Access to element at the specified position in the tensor
Declaration
public TorchSharp.LongTensor NewWithStorage3d (IntPtr offset, long size0, long stride0, long size1, long stride1, long size2, long stride2);
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | offset | Offset within the input storage the storage of the new tensor will start from. |
| System.Int64 | size0 | Size of the first dimension. |
| System.Int64 | stride0 | Stride of the first dimension. |
| System.Int64 | size1 | Size of the second dimension. |
| System.Int64 | stride1 | Stride of the second dimension. |
| System.Int64 | size2 | Size of the third dimension. |
| System.Int64 | stride2 | Stride of the third dimension. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
NewWithStorage4d(IntPtr, Int64, Int64, Int64, Int64, Int64, Int64, Int64, Int64)
Access to element at the specified position in the tensor
Declaration
public TorchSharp.LongTensor NewWithStorage4d (IntPtr offset, long size0, long stride0, long size1, long stride1, long size2, long stride2, long size3, long stride3);
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | offset | Offset within the input storage the storage of the new tensor will start from. |
| System.Int64 | size0 | Size of the first dimension. |
| System.Int64 | stride0 | Stride of the first dimension. |
| System.Int64 | size1 | Size of the second dimension. |
| System.Int64 | stride1 | Stride of the second dimension. |
| System.Int64 | size2 | Size of the third dimension. |
| System.Int64 | stride2 | Stride of the third dimension. |
| System.Int64 | size3 | Size of the fourth dimension. |
| System.Int64 | stride3 | Stride of the fourth dimension. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
NonZero()
Finds the indices of all non-zero elements.
Declaration
public TorchSharp.LongTensor NonZero ();
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
NumElements()
Get the number of elements in the tensor.
Declaration
public long NumElements ();
Returns
| Type | Description |
|---|---|
| System.Int64 | To be added. |
Prod(Int32, Boolean)
Computes the product of all the elements of the tensor along the given dimension.
Declaration
public TorchSharp.LongTensor Prod (int dimension, bool keepdim);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dimension | The dimension to process along. |
| System.Boolean | keepdim | true if the reduction dimension should be kept, false otherwise. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
ProdAll()
Returns the product of the elements in the tensor.
Declaration
public long ProdAll ();
Returns
| Type | Description |
|---|---|
| System.Int64 | The product of the tensor. |
Put(LongTensor, LongTensor, Boolean)
Put
Declaration
public void Put (TorchSharp.LongTensor index, TorchSharp.LongTensor src, bool accumulate);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | index | Indices of entries to copy. |
| LongTensor | src | To be added. |
| System.Boolean | accumulate | To be added. |
Random(Int64)
Populates the tensor with random values from 0 to n, using a newly initialized Random number geneator.
Declaration
public void Random (long n);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | n | The upper limit for the values to be generated |
Random(RandomGenerator)
Populates the tensor with random values using the provided random source generator.
Declaration
public void Random (TorchSharp.RandomGenerator source);
Parameters
| Type | Name | Description |
|---|---|---|
| RandomGenerator | source | The random generator source |
Random(RandomGenerator, Int64)
Populates the tensor with random values from 0 to n, using the provided random source generator.
Declaration
public void Random (TorchSharp.RandomGenerator source, long n);
Parameters
| Type | Name | Description |
|---|---|---|
| RandomGenerator | source | The random generator source |
| System.Int64 | n | The upper limit for the values to be generated |
RandPerm(RandomGenerator, Int64)
Populates the tensor with random values from 0 to n, using the provided random source generator.
Declaration
public void RandPerm (TorchSharp.RandomGenerator source, long max);
Parameters
| Type | Name | Description |
|---|---|---|
| RandomGenerator | source | The random generator source |
| System.Int64 | max | The upper limit for the values to be generated |
Range(Int64, Int64, Int64)
Create a range spanning from xmin to xmax, with 'step' between each value.
Declaration
public static TorchSharp.LongTensor Range (long xmin, long xmax, long step);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | xmin | The lower bound of the range. |
| System.Int64 | xmax | The upper bound of the range. |
| System.Int64 | step | The value step. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
Remainder(Int64)
Performs the Remainder operation on each element of the tensor with the
Declaration
public TorchSharp.LongTensor Remainder (long value);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Remarks
If you want to avoid the allocation of a new tensor, you can use the alternative method PytorchSharp.Remainder(PytorchSharp.LongTensor, Long, PytorchSharp.Long).
Remainder(LongTensor, Int64, LongTensor)
Performs the Remainder operation on each element of the source with the provided scalar. The result tensor specified as the last parameters is resized to match the source.
Declaration
public static void Remainder (TorchSharp.LongTensor source, long value, TorchSharp.LongTensor result);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | source | Source tensor on which the operation will take place. |
| System.Int64 | value | The scalar value that the operation uses. |
| LongTensor | result | The tensor where the result will be placed |
Remarks
For each element in the
Resize1d(Int64)
Resizes the tensor to be one dimensional with the specified size, the contents of the tensor after this are undetermined.
Declaration
public void Resize1d (long size);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | size | The desired new size for the first dimension of the tensor. |
Resize2d(Int64, Int64)
Resizes the tensor to be two dimensional with the specified size, the contents of the tensor after this are undetermined.
Declaration
public void Resize2d (long size0, long size1);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | size0 | The desired new size for the first dimension of the tensor. |
| System.Int64 | size1 | The desired new size for the second dimension of the tensor. |
Resize3d(Int64, Int64, Int64)
Resizes the tensor to be three dimensional with the specified size, the contents of the tensor after this are undetermined.
Declaration
public void Resize3d (long size0, long size1, long size2);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | size0 | The desired new size for the first dimension of the tensor. |
| System.Int64 | size1 | The desired new size for the second dimension of the tensor. |
| System.Int64 | size2 | The desired new size for the third dimension of the tensor. |
Resize4d(Int64, Int64, Int64, Int64)
Resizes the tensor to be four dimensional with the specified size, the contents of the tensor after this are undetermined.
Declaration
public void Resize4d (long size0, long size1, long size2, long size3);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | size0 | The desired new size for the first dimension of the tensor. |
| System.Int64 | size1 | The desired new size for the second dimension of the tensor. |
| System.Int64 | size2 | The desired new size for the third dimension of the tensor. |
| System.Int64 | size3 | The desired new size for the fourth dimension of the tensor. |
Resize5d(Int64, Int64, Int64, Int64, Int64)
Resizes the tensor to be five dimensional with the specified size, the contents of the tensor after this are undetermined.
Declaration
public void Resize5d (long size0, long size1, long size2, long size3, long size4);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | size0 | The desired new size for the first dimension of the tensor. |
| System.Int64 | size1 | The desired new size for the second dimension of the tensor. |
| System.Int64 | size2 | The desired new size for the third dimension of the tensor. |
| System.Int64 | size3 | The desired new size for the fourth dimension of the tensor. |
| System.Int64 | size4 | The desired new size for the fifth dimension of the tensor. |
ResizeAs(LongTensor)
Resizes the tensor to match the dimensions of the specified src tensor, the contents of the tensor after this are undetermined.
Declaration
public void ResizeAs (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The source tensor whose shape will be mirrored by this tensor. |
RShift(Int64)
Performs the RShift operation on each element of the tensor with the
Declaration
public TorchSharp.LongTensor RShift (long value);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Remarks
If you want to avoid the allocation of a new tensor, you can use the alternative method PytorchSharp.RShift(PytorchSharp.LongTensor, Long, PytorchSharp.Long).
RShift(LongTensor, Int64, LongTensor)
Performs the RShift operation on each element of the source with the provided scalar. The result tensor specified as the last parameters is resized to match the source.
Declaration
public static void RShift (TorchSharp.LongTensor source, long value, TorchSharp.LongTensor result);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | source | Source tensor on which the operation will take place. |
| System.Int64 | value | The scalar value that the operation uses. |
| LongTensor | result | The tensor where the result will be placed |
Remarks
For each element in the
Scatter(Int32, LongTensor, LongTensor)
Scatter
Declaration
public void Scatter (int dim, TorchSharp.LongTensor index, TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dim | To be added. |
| LongTensor | index | Indices of entries to copy. |
| LongTensor | src | To be added. |
ScatterAdd(Int32, LongTensor, LongTensor)
ScatterAdd
Declaration
public void ScatterAdd (int dim, TorchSharp.LongTensor index, TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dim | To be added. |
| LongTensor | index | Indices of entries to copy. |
| LongTensor | src | To be added. |
ScatterFill(Int32, LongTensor, Int64)
ScatterAdd
Declaration
public void ScatterFill (int dim, TorchSharp.LongTensor index, long value);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dim | To be added. |
| LongTensor | index | Indices of entries to copy. |
| System.Int64 | value | To be added. |
Select(Int32, Int64)
Returns a new Tensor which is a tensor slice at the given index in the dimension dim.
Declaration
public TorchSharp.LongTensor Select (int dim, long slideIndex);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dim | Dimension to select |
| System.Int64 | slideIndex | Beginning of the tensor slice |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
Remarks
The returned tensor has one less dimension: the dimension dim is removed. As a result, it is not possible to select() on a 1D tensor.
Set(LongTensor)
The tensor will use the same storage as the provided source, so any changes to that tensor are visible on this one.
Declaration
public void Set (TorchSharp.LongTensor src);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The source tensor which contains the data.. |
Sign()
Computes the sign of the tensor.
Declaration
public TorchSharp.LongTensor Sign ();
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
Sort(Int32, Boolean)
Sorts the elements of the tensor along the given dimension.
Declaration
public Tuple<TorchSharp.LongTensor,TorchSharp.LongTensor> Sort (int dimension, bool descending);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dimension | The dimension to sort along. |
| System.Boolean | descending | 0 if ascending, 1 if descending. |
Returns
| Type | Description |
|---|---|
| System.Tuple<LongTensor,LongTensor> | A tuple containing the values and indices of the sorted elements. |
Squeeze()
Squeeze the tensor, i.e. remove all 1-sized dimensions.
Declaration
public void Squeeze ();
Squeeze1d(LongTensor, Int32)
Squeeze the tensor, by removing the specified dimension.
Declaration
public void Squeeze1d (TorchSharp.LongTensor src, int dimension);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The source tensor which contains the data. |
| System.Int32 | dimension | The dimension to remove. |
Sub(Int64)
Performs the Sub operation on each element of the tensor with the
Declaration
public TorchSharp.LongTensor Sub (long value);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Remarks
If you want to avoid the allocation of a new tensor, you can use the alternative method PytorchSharp.Sub(PytorchSharp.LongTensor, Long, PytorchSharp.Long).
Sub(LongTensor, Int64, LongTensor)
Performs the Sub operation on each element of the source with the provided scalar. The result tensor specified as the last parameters is resized to match the source.
Declaration
public static void Sub (TorchSharp.LongTensor source, long value, TorchSharp.LongTensor result);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | source | Source tensor on which the operation will take place. |
| System.Int64 | value | The scalar value that the operation uses. |
| LongTensor | result | The tensor where the result will be placed |
Remarks
For each element in the
SubScaled(Int64, Int64)
Performs an SubScaled of the tensor with the provided
Declaration
public TorchSharp.LongTensor SubScaled (long value1, long value2);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | value1 | To be added. |
| System.Int64 | value2 | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | This returns a new tensor with the same shape as the tensor this operates on. |
Sum(Int32, Boolean)
Computes the sum of all the elements of the tensor along the given dimension.
Declaration
public TorchSharp.LongTensor Sum (int dimension, bool keepdim);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dimension | The dimension to process along. |
| System.Boolean | keepdim | true if the reduction dimension should be kept, false otherwise. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
SumAll()
Returns the sum of the elements in the tensor.
Declaration
public long SumAll ();
Returns
| Type | Description |
|---|---|
| System.Int64 | The sum of the tensor. |
Take(LongTensor, LongTensor)
Take
Declaration
public void Take (TorchSharp.LongTensor src, TorchSharp.LongTensor index);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | To be added. |
| LongTensor | index | Indices of entries to copy. |
TopK(Int64, Int32, Int32, Boolean)
Finds the top k of all the elements of the tensor along the given dimension.
Declaration
public Tuple<TorchSharp.LongTensor,TorchSharp.LongTensor> TopK (long k, int dim, int dir, bool sorted);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | k | The number of elements to fetch. |
| System.Int32 | dim | The dimension along which to sort and find k elements. |
| System.Int32 | dir | 0 if ascending, 1 if descending. |
| System.Boolean | sorted | 1 if the result should be sorted, 0 if they should keep their original order. |
Returns
| Type | Description |
|---|---|
| System.Tuple<LongTensor,LongTensor> | A tuple containing the values and indices of the top 'k' elements. |
ToString()
Get a string representation of the tensor.
Declaration
public override string ToString ();
Returns
| Type | Description |
|---|---|
| System.String | To be added. |
Trace()
Computes the trace of the tensor.
Declaration
public long Trace ();
Returns
| Type | Description |
|---|---|
| System.Int64 | To be added. |
Transpose(Int32, Int32)
Returns a tensor where dimensions dim1 and dim2 have been swapped.
Declaration
public TorchSharp.LongTensor Transpose (int dim1, int dim2);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dim1 | First dimension |
| System.Int32 | dim2 | Second dimension |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
TriL(Int64)
Lower triangle.
Declaration
public TorchSharp.LongTensor TriL (long k);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | k | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
TriU(Int64)
Upper triangle.
Declaration
public TorchSharp.LongTensor TriU (long k);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | k | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
Unfold(Int32, Int64, Int64)
Returns a tensor which contains all slices of size size in the dimension dim. Step between two slices is given by step.
Declaration
public TorchSharp.LongTensor Unfold (int dim, long size, long step);
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | dim | To be added. |
| System.Int64 | size | To be added. |
| System.Int64 | step | To be added. |
Returns
| Type | Description |
|---|---|
| LongTensor | To be added. |
Unsqueeze1d(LongTensor, Int32)
Unsqueeze the tensor, by inserting the specified dimension of size 1.
Declaration
public void Unsqueeze1d (TorchSharp.LongTensor src, int dimension);
Parameters
| Type | Name | Description |
|---|---|---|
| LongTensor | src | The source tensor which contains the data. |
| System.Int32 | dimension | The dimension to insert. |
ZeroFill()
Fills the tensor with zeros
Declaration
public void ZeroFill ();


Normal mapping (also known as Bump Mapping) is a texture mapping technique used for faking the lighting of bumps and dents. It is used to add details without using more polygons. A common use of this technique is to greatly enhance the appearance and details of a low polygon model by generating a normal map from a high polygon model or height map. Normal maps are commonly stored as regular RGB images where the RGB components correspond to the X, Y, and Z coordinates, respectively, of the surface normal (more details about this technique here).
The following example was based on the code available in here.
Open in a new tabYou must use at least two 2D textures, one for the color (diffuse) map and the other to store the per-fragment normals derived from the shape of the surface as showed above. More details about the generation of the per-fragment normals are available here.


Using Class.isAnnotationPresent()
to test for an annotation
whose retention policy is set to SOURCE
or CLASS
(the default) will always have a negative result. This mistake is easy to overlook.
Example:
{
getClass().isAnnotationPresent(SourceAnnotation.class); //always false
}
@Retention(RetentionPolicy.SOURCE)
@interface SourceAnnotation {}


I am experienced in web development and software engineering projects. I am well versed in front end web development and python applications.
GPA: 3.04
Coursework: Data Structures & Abstracts | Object-Oriented Programming | Programming Fundamentals | Introduction to Data Science | Applied Combinatorics | Advanced Algorithms
Software wise, I am very interested in looking at different technologies but my main focus area is web development and scripting. My other interests involve cyber-security, privacy, AI, neural networks, and other scripting projects.
When I'm not programming, you might find me making music, reading a book, watching movies and socializing with friends.


#include <boost/sql_cli/column.hpp>
Public Member Functions | |
| std::string | name () const |
| Returns the column's name. | |
| const std::type_info & | type () const |
| Returns the type_info object associated with the column's C++ type. | |
| int | size () const |
| Returns the column's size. | |
| int | precision () const |
| Returns the column's precision. | |
| bool | nullable () const |
| Indicates whether the columns accepts null values. | |
| int | number () const |
| Returns the column's number. |


public interface ListSelectionModel
DefaultListSelectionModel
| Modifier and Type | Field and Description |
|---|---|
static int |
MULTIPLE_INTERVAL_SELECTION
A value for the selectionMode property: select one or more
contiguous ranges of indices at a time.
|
static int |
SINGLE_INTERVAL_SELECTION
A value for the selectionMode property: select one contiguous
range of indices at a time.
|
static int |
SINGLE_SELECTION
A value for the selectionMode property: select one list index
at a time.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListSelectionListener(ListSelectionListener x)
Add a listener to the list that's notified each time a change
to the selection occurs.
|
void |
addSelectionInterval(int index0,
int index1)
Changes the selection to be the set union of the current selection
and the indices between
index0 and index1 inclusive. |
void |
clearSelection()
Change the selection to the empty set.
|
int |
getAnchorSelectionIndex()
Return the first index argument from the most recent call to
setSelectionInterval(), addSelectionInterval() or removeSelectionInterval().
|
int |
getLeadSelectionIndex()
Return the second index argument from the most recent call to
setSelectionInterval(), addSelectionInterval() or removeSelectionInterval().
|
int |
getMaxSelectionIndex()
Returns the last selected index or -1 if the selection is empty.
|
int |
getMinSelectionIndex()
Returns the first selected index or -1 if the selection is empty.
|
int |
getSelectionMode()
Returns the current selection mode.
|
boolean |
getValueIsAdjusting()
Returns
true if the selection is undergoing a series of changes. |
void |
insertIndexInterval(int index,
int length,
boolean before)
Insert length indices beginning before/after index.
|
boolean |
isSelectedIndex(int index)
Returns true if the specified index is selected.
|
boolean |
isSelectionEmpty()
Returns true if no indices are selected.
|
void |
removeIndexInterval(int index0,
int index1)
Remove the indices in the interval index0,index1 (inclusive) from
the selection model.
|
void |
removeListSelectionListener(ListSelectionListener x)
Remove a listener from the list that's notified each time a
change to the selection occurs.
|
void |
removeSelectionInterval(int index0,
int index1)
Changes the selection to be the set difference of the current selection
and the indices between
index0 and index1 inclusive. |
void |
setAnchorSelectionIndex(int index)
Set the anchor selection index.
|
void |
setLeadSelectionIndex(int index)
Set the lead selection index.
|
void |
setSelectionInterval(int index0,
int index1)
Changes the selection to be between
index0 and index1
inclusive. |
void |
setSelectionMode(int selectionMode)
Sets the selection mode.
|
void |
setValueIsAdjusting(boolean valueIsAdjusting)
Sets the
valueIsAdjusting property, which indicates whether
or not upcoming selection changes should be considered part of a single
change. |
static final int SINGLE_SELECTION
setSelectionMode(int)
,
Constant Field Valuesstatic final int SINGLE_INTERVAL_SELECTION
setSelectionMode(int)
,
Constant Field Valuesstatic final int MULTIPLE_INTERVAL_SELECTION
setSelectionMode(int)
,
Constant Field Valuesvoid setSelectionInterval(int index0, int index1)
index0
and index1
inclusive. index0
doesn't have to be less than or equal to
index1
.
In SINGLE_SELECTION
selection mode, only the second index
is used.
If this represents a change to the current selection, then each
ListSelectionListener
is notified of the change.
index0
- one end of the interval.index1
- other end of the intervaladdListSelectionListener(javax.swing.event.ListSelectionListener)
void addSelectionInterval(int index0, int index1)
index0
and index1
inclusive.
index0
doesn't have to be less than or equal to index1
.
In SINGLE_SELECTION
selection mode, this is equivalent
to calling setSelectionInterval
, and only the second index
is used. In SINGLE_INTERVAL_SELECTION
selection mode, this
method behaves like setSelectionInterval
, unless the given
interval is immediately adjacent to or overlaps the existing selection,
and can therefore be used to grow the selection.
If this represents a change to the current selection, then each
ListSelectionListener
is notified of the change.
index0
- one end of the interval.index1
- other end of the intervaladdListSelectionListener(javax.swing.event.ListSelectionListener)
,
setSelectionInterval(int, int)
void removeSelectionInterval(int index0, int index1)
index0
and index1
inclusive.
index0
doesn't have to be less than or equal to index1
.
In SINGLE_INTERVAL_SELECTION
selection mode, if the removal
would produce two disjoint selections, the removal is extended through
the greater end of the selection. For example, if the selection is
0-10
and you supply indices 5,6
(in any order) the
resulting selection is 0-4
.
If this represents a change to the current selection, then each
ListSelectionListener
is notified of the change.
index0
- one end of the interval.index1
- other end of the intervaladdListSelectionListener(javax.swing.event.ListSelectionListener)
int getMinSelectionIndex()
int getMaxSelectionIndex()
boolean isSelectedIndex(int index)
int getAnchorSelectionIndex()
void setAnchorSelectionIndex(int index)
getAnchorSelectionIndex()
int getLeadSelectionIndex()
void setLeadSelectionIndex(int index)
getLeadSelectionIndex()
void clearSelection()
boolean isSelectionEmpty()
void insertIndexInterval(int index, int length, boolean before)
void removeIndexInterval(int index0, int index1)
void setValueIsAdjusting(boolean valueIsAdjusting)
valueIsAdjusting
property, which indicates whether
or not upcoming selection changes should be considered part of a single
change. The value of this property is used to initialize the
valueIsAdjusting
property of the ListSelectionEvent
s that
are generated.
For example, if the selection is being updated in response to a user
drag, this property can be set to true
when the drag is initiated
and set to false
when the drag is finished. During the drag,
listeners receive events with a valueIsAdjusting
property
set to true
. At the end of the drag, when the change is
finalized, listeners receive an event with the value set to false
.
Listeners can use this pattern if they wish to update only when a change
has been finalized.
Setting this property to true
begins a series of changes that
is to be considered part of a single change. When the property is changed
back to false
, an event is sent out characterizing the entire
selection change (if there was one), with the event's
valueIsAdjusting
property set to false
.
valueIsAdjusting
- the new value of the propertygetValueIsAdjusting()
,
ListSelectionEvent.getValueIsAdjusting()
boolean getValueIsAdjusting()
true
if the selection is undergoing a series of changes.setValueIsAdjusting(boolean)
void setSelectionMode(int selectionMode)
ListSelectionModel.SINGLE_SELECTION
-
Only one list index can be selected at a time. In this mode,
setSelectionInterval
and addSelectionInterval
are
equivalent, both replacing the current selection with the index
represented by the second argument (the "lead").
ListSelectionModel.SINGLE_INTERVAL_SELECTION
-
Only one contiguous interval can be selected at a time.
In this mode, addSelectionInterval
behaves like
setSelectionInterval
(replacing the current selection),
unless the given interval is immediately adjacent to or overlaps
the existing selection, and can therefore be used to grow it.
ListSelectionModel.MULTIPLE_INTERVAL_SELECTION
-
In this mode, there's no restriction on what can be selected.
IllegalArgumentException
- if the selection mode isn't
one of those allowedgetSelectionMode()
int getSelectionMode()
setSelectionMode(int)
void addListSelectionListener(ListSelectionListener x)
x
- the ListSelectionListenerremoveListSelectionListener(javax.swing.event.ListSelectionListener)
,
setSelectionInterval(int, int)
,
addSelectionInterval(int, int)
,
removeSelectionInterval(int, int)
,
clearSelection()
,
insertIndexInterval(int, int, boolean)
,
removeIndexInterval(int, int)
void removeListSelectionListener(ListSelectionListener x)
x
- the ListSelectionListeneraddListSelectionListener(javax.swing.event.ListSelectionListener)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved.


Type '!kmdtip help' for a list of actions. If you'd like to check your balance in private DM the bot and type "!kmdtip". Don't deposit too much. Around 10 KMD should be enough.
100 messages
Before 05-Dec-19 12:00 AM
KMD TipBotBOT15-Oct-18 01:08 PM
TipBot
@DrKush, check your direct messages for withdraw information.
come15-Oct-18 01:08 PM
!kmdtip @come 7
KMD TipBotBOT15-Oct-18 01:08 PM
TipBot
Cannot tip with entered amount.
javadth15-Oct-18 01:09 PM
!kmdtip balance
KMD TipBotBOT15-Oct-18 01:09 PM
TipBot KMD Balance
Balance for @javadth (javadth#4536)
Confirmed
3.69992893
Unconfirmed
0.00000000
javadth15-Oct-18 01:09 PM
thanks KMD
come15-Oct-18 01:09 PM
!kmdtip @come 3
KMD TipBotBOT15-Oct-18 01:09 PM
TipBot
Cannot tip with entered amount.
 A withdrawal fee of 0.02 KMD will be automatically deducted from the amount.Additionally, 10% of deducted withdrawal fee will be donated to the bot author to help continual development.
!kmdtip <@user> <amount> [private]
Tips the @ mentioned user with the desired amount, e.g.
!kmdtip @test123456#7890 1.00
!kmdtip rain <amount> [<@role>]
Rains the desired amount onto all online users (optionally, within specified role), e.g.
!kmdtip rain 10.00, !kmdtip rain 10.00 @Supporters
!kmdtip soak <amount> [<@role>]
Soaks the desired amount onto all online and idle users (optionally, within specified role), e.g.
!kmdtip soak 5.00, !kmdtip soak 5.00 @Supporters
!kmdtip thunder <amount> [<@role>]
Tips a random lucky online user with the amount (optionally, within specified role), e.g.
!kmdtip thunder 5.00, !kmdtip thunder 5.00 @Supporters
!kmdtip faucet
Gets an amount from the faucet (applicable every 4 hours)
TipBot
@DrKush, check your direct messages for withdraw information.
come15-Oct-18 01:11 PM
!kmd deposit
Triaxout15-Oct-18 01:12 PM
!kmd deposit
come15-Oct-18 01:12 PM
!kmdtip deposit
KMD TipBotBOT15-Oct-18 01:12 PM
TipBot
@come, check your direct messages for deposit information.
javadth15-Oct-18 01:12 PM
!kmdtip deposit
KMD TipBotBOT15-Oct-18 01:12 PM
TipBot
@javadth, check your direct messages for deposit information.
 A withdrawal fee of 0.02 KMD will be automatically deducted from the amount.Additionally, 10% of deducted withdrawal fee will be donated to the bot author to help continual development.
!kmdtip <@user> <amount> [private]
Tips the @ mentioned user with the desired amount, e.g.
!kmdtip @test123456#7890 1.00
!kmdtip rain <amount> [<@role>]
Rains the desired amount onto all online users (optionally, within specified role), e.g.
!kmdtip rain 10.00, !kmdtip rain 10.00 @Supporters
!kmdtip soak <amount> [<@role>]
Soaks the desired amount onto all online and idle users (optionally, within specified role), e.g.
!kmdtip soak 5.00, !kmdtip soak 5.00 @Supporters
!kmdtip thunder <amount> [<@role>]
Tips a random lucky online user with the amount (optionally, within specified role), e.g.
!kmdtip thunder 5.00, !kmdtip thunder 5.00 @Supporters
!kmdtip faucet
Gets an amount from the faucet (applicable every 4 hours)
Triaxout15-Oct-18 01:13 PM
!kmdtip balance
KMD TipBotBOT15-Oct-18 01:13 PM
TipBot KMD Balance
Balance for @Triaxout (Triaxout#2852)
Confirmed
0.00000000
Unconfirmed
0.00000000
CryptoHippy6915-Oct-18 01:13 PM
!kmdtip balance
KMD TipBotBOT15-Oct-18 01:13 PM
TipBot KMD Balance
Balance for @CryptoHippy69 (CryptoHippy69#1033)
Confirmed
0.00000000
Unconfirmed
0.00000000
Triaxout15-Oct-18 01:14 PM
!kmdtip soak 1
KMD TipBotBOT15-Oct-18 01:14 PM
TipBot
Cannot soak with entered amount: not enough funds.
Triaxout15-Oct-18 01:15 PM
!kmdtip faucet
KMD TipBotBOT15-Oct-18 01:15 PM
TipBot
The faucet is not enabled.
MoldyLunchbox15-Oct-18 01:15 PM
!kmdtip balance
KMD TipBotBOT15-Oct-18 01:15 PM
TipBot KMD Balance
Balance for @MoldyLunchbox (pigmuh#9854)
Confirmed
4.21610643
Unconfirmed
0.00000000
higgy15-Oct-18 01:16 PM
!kmdtip faucet
KMD TipBotBOT15-Oct-18 01:16 PM
TipBot
The faucet is not enabled.
TipBot
@DrKush, check your direct messages for withdraw information.
higgy15-Oct-18 01:16 PM
!kmdtip balance
KMD TipBotBOT15-Oct-18 01:16 PM
TipBot KMD Balance
Balance for @higgy (higgy#2168)
Confirmed
1.57887338
Unconfirmed
0.00000000
DrKush15-Oct-18 01:17 PM
!kmdtip balance
KMD TipBotBOT15-Oct-18 01:17 PM
TipBot KMD Balance
Balance for @DrKush (Doctah-Kush#8774)
Confirmed
1.53196725
Unconfirmed
0.00000000
jpsyduck15-Oct-18 01:17 PM
!kmdtip balance
KMD TipBotBOT15-Oct-18 01:17 PM
TipBot KMD Balance
Balance for @jpsyduck (jpsyduck#9038)
Confirmed
0.33006367
Unconfirmed
0.00000000
TipBot
@higgy, check your direct messages for withdraw information.
Dominique15-Oct-18 01:18 PM
Kmdtip Balance
!kmdtip balance
KMD TipBotBOT15-Oct-18 01:19 PM
TipBot KMD Balance
Balance for @Dominique (Dominique#5238)
Confirmed
0.00000000
Unconfirmed
0.00000000
Seko15-Oct-18 01:21 PM
!kmdtip @Acura 1.9
1
KMD TipBotBOT15-Oct-18 01:21 PM
TipBot
@Seko (Seko#7408)
You tipped @Acura1.9 KMD
Seko15-Oct-18 01:21 PM
!kmdtip balance
KMD TipBotBOT15-Oct-18 01:21 PM
TipBot KMD Balance
Balance for @Seko (Seko#7408)
Confirmed
5.87000000
Unconfirmed
0.00000000
TipBot
@higgy, check your direct messages for withdraw information.
CryptoHippy6915-Oct-18 01:24 PM
!kmdtip balance
KMD TipBotBOT15-Oct-18 01:24 PM
TipBot KMD Balance
Balance for @CryptoHippy69 (CryptoHippy69#1033)
Confirmed
0.00000000
Unconfirmed
0.00000000
Dominique15-Oct-18 01:24 PM
!kmdtip rain 10.0
KMD TipBotBOT15-Oct-18 01:24 PM
TipBot
Cannot rain with entered amount: not enough funds.
"!kmdtip withdraw GLM3n7yMFmYkas2AgHKqE6EMJW5VsUXtQn 5.20" something like that @higgy
1
CombatWombat15-Oct-18 01:27 PM
!tip withdraw address amount
CryptoHippy6915-Oct-18 01:27 PM
@higgy
KMD TipBotBOT15-Oct-18 01:27 PM
TipBot
@CryptoHippy69, check your direct messages for withdraw information.
higgy15-Oct-18 01:27 PM
ya, I'll play(edited)
CryptoHippy6915-Oct-18 01:28 PM
@higgy !kmdtip withdraw <address> <amount>
Dominique15-Oct-18 01:28 PM
!kmdtip thunder 2. 00
KMD TipBotBOT15-Oct-18 01:28 PM
TipBot
Cannot thunder with entered amount.
higgy15-Oct-18 01:28 PM
it says invalid kmd address, but it is my wallet addr.
no biggie
SwimedDragon15-Oct-18 01:28 PM
!kmdtip balance
KMD TipBotBOT15-Oct-18 01:28 PM
TipBot KMD Balance
Balance for @SwimedDragon (SwimedDragon#3996)
Confirmed
0.00000000
Unconfirmed
0.00000000
CombatWombat15-Oct-18 01:29 PM
ah dragon stick around might get your feet wet
Dominique15-Oct-18 01:29 PM
!kmdtip
KMD TipBotBOT15-Oct-18 01:29 PM
TipBot Help
!kmdtip
Displays this message
!kmdtip balance
Displays your balance
!kmdtip deposit
Displays your deposit address
!kmdtip withdraw <address> <amount>
Withdraws the entered amount to a KMD address of your choice, e.g.
!kmdtip withdraw GLM3n7yMFmYkas2AgHKqE6EMJW5VsUXtQn 5.20Note: Minimal amount to withdraw: 0.1 KMD. A withdrawal fee of 0.02 KMD will be automatically deducted from the amount.Additionally, 10% of deducted withdrawal fee will be donated to the bot author to help continual development.
!kmdtip <@user> <amount> [private]
Tips the @ mentioned user with the desired amount, e.g.
!kmdtip @test123456#7890 1.00
!kmdtip rain <amount> [<@role>]
Rains the desired amount onto all online users (optionally, within specified role), e.g.
!kmdtip rain 10.00, !kmdtip rain 10.00 @Supporters
!kmdtip soak <amount> [<@role>]
Soaks the desired amount onto all online and idle users (optionally, within specified role), e.g.
!kmdtip soak 5.00, !kmdtip soak 5.00 @Supporters
!kmdtip thunder <amount> [<@role>]
Tips a random lucky online user with the amount (optionally, within specified role), e.g.
!kmdtip thunder 5.00, !kmdtip thunder 5.00 @Supporters
!kmdtip faucet
Gets an amount from the faucet (applicable every 4 hours)
TipBot
@higgy, check your direct messages for withdraw information.
ETcrypt15-Oct-18 01:30 PM
Seems like it's a desert in here. Where is the rain?
modereck15-Oct-18 01:30 PM
Rain?
come15-Oct-18 01:31 PM
!kmdtip balance
KMD TipBotBOT15-Oct-18 01:31 PM
TipBot KMD Balance
Balance for @come (come#8331)
Confirmed
0.00000000
Unconfirmed
0.00000000
TipBot
@higgy, check your direct messages for withdraw information.
modereck15-Oct-18 01:31 PM
/kmdtip faucet
come15-Oct-18 01:31 PM
!kmdtip rain
KMD TipBotBOT15-Oct-18 01:31 PM
TipBot Help
!kmdtip
Displays this message
!kmdtip balance
Displays your balance
!kmdtip deposit
Displays your deposit address
!kmdtip withdraw <address> <amount>
Withdraws the entered amount to a KMD address of your choice, e.g.
!kmdtip withdraw GLM3n7yMFmYkas2AgHKqE6EMJW5VsUXtQn 5.20Note: Minimal amount to withdraw: 0.1 KMD. A withdrawal fee of 0.02 KMD will be automatically deducted from the amount.Additionally, 10% of deducted withdrawal fee will be donated to the bot author to help continual development.
!kmdtip <@user> <amount> [private]
Tips the @ mentioned user with the desired amount, e.g.
!kmdtip @test123456#7890 1.00
!kmdtip rain <amount> [<@role>]
Rains the desired amount onto all online users (optionally, within specified role), e.g.
!kmdtip rain 10.00, !kmdtip rain 10.00 @Supporters
!kmdtip soak <amount> [<@role>]
Soaks the desired amount onto all online and idle users (optionally, within specified role), e.g.
!kmdtip soak 5.00, !kmdtip soak 5.00 @Supporters
!kmdtip thunder <amount> [<@role>]
Tips a random lucky online user with the amount (optionally, within specified role), e.g.
!kmdtip thunder 5.00, !kmdtip thunder 5.00 @Supporters
!kmdtip faucet
Gets an amount from the faucet (applicable every 4 hours)


GitHub 101
Category: Technical | Author: Mohamed Shibl
Since you're reading this blog post then I can safely assume that you're taking your first steps to become a developer, Welcome! I'm ahead by just a few steps
I can only say, hang tight it's gonna be ehm... a long ride! but you're gonna love it!
Quick Fact: GitHub has a community of more than 10 million people!
As a programmer you need to know your way around GitHub, it's the space where programmers can come together to work and collaborate on all sizes of projects!
At it's core Git is a Version Control System. So what does Version Control mean?
Version Control is a method that allows you to create a new version every time you modify your code (instead of overwriting the copy you're currently working on). GitHub uses version control to allow more than one programmer to work on the same piece of code without overwriting each other. It makes sure that whenever a piece of the code is modified by any contributor, a new version of the whole code is created, it also shows which part of the code was modified and by whom.
Watch this awesome video by (Matthew McCullough) from GitHub explaining what Version Control means
What is VCS? (Git-SCM) • Git Basics #1 from GitHub on Vimeo.
--------------------------------


{% include 'multiplicity/includes/head.html' %}
Your e-mail and password didn't match. Please try again.
You are logged in.
Go to the discussion board


Ploror688.github.io
Tours - Singapore Heritage Society. Hotel St Moritz Queenstown - MGallery by Sofitel Boutique hotels with personality for a remarkable travel experience. I'm thrilled to welcome Startutor.sg - Tutor, Tuition Assignments, Tuition Agency. Tracey is a Learning and Development Professional specialising in Effective Communication to motivate, educate and empower people through personal and professional.
Queenstown creative writing group - Corporate. Queenstown Creative Writing Group - Posts Facebook. Ph 06 queenstown 06 for further details.  Queenstown creative writing group. Creative writing queenstown. Meetings start at 2pm. For further group contact the Creative writing groups manchester Please writing a valid email address. Abbreviations List by FakeNewspapers.com.
Lombardi, Queenstown - TripAdvisor. Dunedin Hotels 1848 – 1937 A comprehensive historical listing of Hotels and their Publicans from 1848 to 1937. Data from 'Hotels of Dunedin - Historical Record' When rolling two standard six-sided dice, seven has a 6 in 36 (or 1 / 6) probability of being rolled (1–6, 6–1, 2–5, 5–2, 3–4, or 4–3), the greatest.
Rajdeep Group doesn’t accept responsibility or liability whatsoever with regard to the material on this site. This material is information of a general nature. Native Tongue is Australia and New Zealand's leading independent music publisher. Queenstown creative writing group - Geekchicmama. Meetings start at 2pm. Creative writing queenstown - smartschoolonline.in. For further group contact the Secretary: Please writing a valid email address. Hotel St Moritz Queenstown - MGallery by Sofitel - AccorHotels. JOHANNES MEINTJES SUMMARY BIOGRAPHY. Born: Riversdale, 19 May 1923 DOWNLOAD GENEALOGY (171KB) BY RIA VAN DEN HEEVER Died: Molteno
Queenstown Creative Writing Group. 189 likes · 2 talking about this. Fortnightly challenges, feedback and top quality Housing in Singapore: collection of HDB floor plans from 1930s to present, housing market analysis, house plans and architecture services Queenstown creative writing group. Job Board Menu. Meetings start at 2pm. Queenstown creative writing group. For further group contact the Secretary: Please writing a valid email address.
KENT ISLAND ONLINE LOCAL BUSINESSES - Shopping Service. Organisations A-Z SAcommunity - Connecting Up Australia. Meetings start at 2pm. For further group contact the Secretary: Please writing a valid email address. writing Help our neighbours essay these norms can creative. Mount Lyell Mining and Railway Company was a Tasmanian mining company formed on 29 March 1893, most commonly referred to as Mount Lyell. Mount Lyell was the dominant. Creative Writing Queenstown - rajdeepgroup.com. Native Tongue Music Publishing. StarTutor is a tuition agency in Singapore. Search for our dedicated tutors that will help your children achieves their full potential. Fake News Papers Fake News Videos A Few Abbreviations. Browse the directory using the A-Z Index of organisation and program names. The most comprehensive guide to the best preschools in Singapore! We've scoured every corner of the island and break down by location, curriculum
Donee organisations list - names starting This list shows donee organisations that we have approved for the purposes of sections LD1, DB 41 and DV 12 of the Income Tax Act 2007. When a person makes a donation. Dunedin Hotels 1848 – 1937 Dunedin Family History Group. Creative Writing Queenstown – Blog Writer Queenstown.
Mount Lyell Mining and Railway Company - Wikipedia. If you are in UK, call us today! social finance specialists. Seventh son of a Seventh son is the 7th album of the English heavy metal band Iron Maiden, and others shrivelled. The cosmogony of Urantia gives an explanation Download our tour handbook for a brief introduction to the tour stops at Pesta Ubin 2017. For Pesta Ubin 2017, the Singapore Heritage Society conducted a a special. The Best Preschools in Singapore: Sassy Mama's Ultimate Guide. Lombardi, Queenstown: See 358 unbiased reviews of Lombardi, rated 4.5 of 5 on TripAdvisor and ranked #42 of 221 restaurants in Queenstown. Teoalida - HDB floor plan, BTO flats, EC, SERS, house. Creative Writing Queenstown - rgtsfrance.com.
Creative Writing Queenstown - Blog Writer Queenstown.