Class DoubleArray
- Namespace
- FinanceSharp
- Assembly
- FinanceSharp.dll
A block of memory of doubles represented in two dimensions.
public abstract class DoubleArray : ICloneable, IDisposable, IEquatable<DoubleArray>
- Inheritance
-
DoubleArray
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
First dimension of this array is Count and 2nd dimension is Properties, which for a OHLC trade bar would be (n, 4) where n is the number of trade bars in the memory block.
Constructors
DoubleArray()
protected DoubleArray()
DoubleArray(double[], int)
protected DoubleArray(double[] values, int properties = 1)
Parameters
DoubleArray(int, int)
protected DoubleArray(int count, int properties)
Parameters
countintThe number of items in this array.
propertiesintHow many properties typed double are for every count
Properties
AsDoubleSpan
Wraps this DoubleArray with Span<T>.
public virtual Span<double> AsDoubleSpan { get; }
Property Value
Examples
fixed (double* _ = doublearray) {
doublearray.AsDoubleSpan.Fill(10d);
double[] ret = doublearray.AsDoubleSpan.ToArray();
}
Remarks
Best practice to use AsDoubleSpan safely is first using fixed operator on the array and then access AsDoubleSpan. See examples.
Close
public virtual double Close { get; set; }
Property Value
Count
public abstract int Count { get; protected set; }
Property Value
High
public virtual double High { get; set; }
Property Value
IsScalar
Is this array a scalar by checking if Count is 1. (regardless to how many properties there are).
public virtual bool IsScalar { get; }
Property Value
this[int]
Scalar overload.
public abstract double this[int property] { get; set; }
Parameters
propertyint
Property Value
this[int, int]
public abstract double this[int index, int property] { get; set; }
Parameters
Property Value
LinearLength
The total number of double values in the array.
public int LinearLength { get; }
Property Value
Low
public virtual double Low { get; set; }
Property Value
Open
public virtual double Open { get; set; }
Property Value
Properties
public abstract int Properties { get; protected set; }
Property Value
SizeOf
The bytes size of this array.
public int SizeOf { get; }
Property Value
Value
public virtual double Value { get; set; }
Property Value
Volume
public virtual double Volume { get; set; }
Property Value
Methods
ARange(double, double, double)
Creates an <xref href="FinanceSharp.DoubleArray" data-throw-if-not-resolved="false"></xref> sized
(1, Math.Floor((start - stop) / step))
public static DoubleArray ARange(double start, double stop, double step)
Parameters
Returns
AssertTrue(bool)
Asserts for DEBUG runs..
[Conditional("DEBUG")]
protected void AssertTrue(bool condition)
Parameters
conditionbool
AssertTrue(bool, string)
Asserts for DEBUG runs..
[Conditional("DEBUG")]
protected void AssertTrue(bool condition, string reason)
Parameters
Clone()
Clones current DoubleArray.
public abstract DoubleArray Clone()
Returns
- DoubleArray
A new copy of this.
CloseAt(int)
public virtual double CloseAt(int index)
Parameters
indexint
Returns
CompareValues(DoubleArray)
A less performant version of IsEqualExactlyTo(DoubleArray) that can handle all types of DoubleArray.
protected virtual bool CompareValues(DoubleArray other)
Parameters
otherDoubleArray
Returns
ComputeHashCode()
Additional hashcode for inherieted classes.
protected abstract int ComputeHashCode()
Returns
CopyTo(DoubleArray)
Copies content of this array to target.
public virtual void CopyTo(DoubleArray target)
Parameters
targetDoubleArrayThe target array, must be matching LinearLength with this.
CopyTo(void*)
Copies content of this array to target.
public virtual void CopyTo(void* target)
Parameters
targetvoid*The target array, must be matching LinearLength with this.
CopyTo(void*, int)
Copies content of this array to target.
public virtual void CopyTo(void* target, int bytes)
Parameters
targetvoid*The target array, must be matching LinearLength with this.
bytesintThe number of bytes to copy.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposingbool
Equals(DoubleArray)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(DoubleArray other)
Parameters
otherDoubleArrayAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
otherparameter; otherwise, false.
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
- bool
true if the specified object is equal to the current object; otherwise, false.
Fill(double)
Fills the contents of this DoubleArray with the given value.
public void Fill(double value)
Parameters
valuedouble
Fill(int, double)
Fills the contents of given property with the given value.
public void Fill(int property, double value)
Parameters
~DoubleArray()
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
protected ~DoubleArray()
ForEach(ForFunctionHandler)
Iterates this array efficiently.
public virtual void ForEach(ForFunctionHandler function)
Parameters
functionForFunctionHandlerThe function to call for every value in this array.
ForEach(ForIndexedFunctionHandler)
Iterates this array efficiently.
public virtual void ForEach(ForIndexedFunctionHandler function)
Parameters
functionForIndexedFunctionHandlerThe function to call for every value in this array.
ForEach(ReferenceForFunctionHandler)
public abstract void ForEach(ReferenceForFunctionHandler function)
Parameters
functionReferenceForFunctionHandler
ForEach(int, ForFunctionHandler)
public virtual void ForEach(int property, ForFunctionHandler function)
Parameters
propertyintfunctionForFunctionHandler
ForEach(int, ForIndexedFunctionHandler)
public virtual void ForEach(int property, ForIndexedFunctionHandler function)
Parameters
propertyintfunctionForIndexedFunctionHandler
From(double)
Wraps given value in a scalar DoubleArray.
public static DoubleArray From(double value)
Parameters
valuedoubleThe value to wrap.
Returns
- DoubleArray
A new DoubleArray holding
value.
From(double*, int, int, bool, Action)
Wraps given pointer with DoubleArrayUnmanaged
public static DoubleArray From(double* pointer, int count, int properties, bool zeroValues = true, Action disposer = null)
Parameters
pointerdouble*Address of the memory block storing doubles.
countintNumber of items in given array
propertiesintNumber of properties for every item in given array.
zeroValuesboolFill the memory block with zeros
disposerActionDeallocator called when this object is disposed. Can be null.
Returns
From(double[,], bool)
Copies or wraps given array into a DoubleArray.
public static DoubleArray From(double[,] array, bool copy)
Parameters
arraydouble[,]An array
copyboolIf true,
array's contents will be copied via Clone(), otherwise pinned and referenced.
Returns
From(double[], bool, int)
Copies or wraps given array into a DoubleArray.
public static DoubleArray From(double[] array, bool copy, int properties = 1)
Parameters
arraydouble[]An array
copyboolIf true,
array's contents will be copied to a newly allocated memory block, otherwise pinned and referenced.propertiesintHow many properties are for every item in the array.
Returns
From(double[][])
Converts array to double[,] (always copies) and wraps in DoubleArray.
public static DoubleArray From(double[][] array)
Parameters
arraydouble[][]The array to convert and wrap.
Returns
From(void*, int, int, bool, Action)
Wraps given pointer with DoubleArrayUnmanaged
public static DoubleArray From(void* pointer, int count, int properties, bool zeroValues = true, Action disposer = null)
Parameters
pointervoid*Address of the memory block storing doubles.
countintNumber of items in given array
propertiesintNumber of properties for every item in given array.
zeroValuesboolFill the memory block with zeros
disposerActionDeallocator called when this object is disposed. Can be null.
Returns
From<TStruct>(in TStruct)
Wraps a copy of given TStruct.
public static DoubleArray From<TStruct>(in TStruct scalar) where TStruct : unmanaged, DataStruct
Parameters
scalarTStructA value to wrap.
Returns
Type Parameters
TStructAn unmanaged structure inherieting DataStruct.
From<TStruct>(params TStruct[])
Wraps given array into a DoubleArray.
public static DoubleArray From<TStruct>(params TStruct[] values) where TStruct : unmanaged, DataStruct
Parameters
valuesTStruct[]An array of values.
Returns
Type Parameters
TStructAn unmanaged structure inherieting DataStruct.
From<TStruct>(TStruct[], bool)
Copies or wraps given array into a DoubleArray.
public static DoubleArray From<TStruct>(TStruct[] array, bool copy) where TStruct : unmanaged, DataStruct
Parameters
arrayTStruct[]An array
copyboolIf true,
array's contents will be copied to a newly allocated memory block, otherwise pinned and referenced.
Returns
Type Parameters
TStruct
Function(UnaryFunctionHandler, bool)
public virtual DoubleArray Function(UnaryFunctionHandler function, bool copy = true)
Parameters
functionUnaryFunctionHandlercopybool
Returns
Function(DoubleArray, BinaryFunctionHandler)
Performs a binary function on lhs and rhs.
public virtual DoubleArray Function(DoubleArray rhs, BinaryFunctionHandler function)
Parameters
rhsDoubleArrayThe rhs of the equation, 'this' is lhs.
functionBinaryFunctionHandlerThe function to call for every value in this array.
Returns
Function(DoubleArray, int, BinaryFunctionHandler)
Performs a binary function on lhs and rhs on a specific property (axis).
public virtual DoubleArray Function(DoubleArray rhs, int property, BinaryFunctionHandler function)
Parameters
rhsDoubleArraypropertyintWhich property from Properties dimension to select and apply
functionon.functionBinaryFunctionHandlerThe function to call for every value in this array.
Returns
Function(int, UnaryFunctionHandler, bool)
public virtual DoubleArray Function(int property, UnaryFunctionHandler function, bool copy = true)
Parameters
propertyintfunctionUnaryFunctionHandlercopybool
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetLinear(int)
Reads from this DoubleArray linearly regardless to shape.
public virtual double GetLinear(int offset)
Parameters
offsetintAbsolute offset
Returns
- double
The value at given
offset.
GetPinnableReference()
Provides a pinnable reference for fixing a DoubleArray.
public abstract ref double GetPinnableReference()
Returns
GetPinnableReference(int)
Provides a pinnable reference for fixing a DoubleArray at a specific index (of Count dimension).
public abstract ref double GetPinnableReference(int index)
Parameters
indexint
Returns
Examples
fixed (double* pointer = &arr.GetPinnableReference(0)) {
//use pointer to your needs
}
Get<TDestStruct>(int)
Casts item at index to TDestStruct.
public virtual TDestStruct Get<TDestStruct>(int index) where TDestStruct : unmanaged, DataStruct
Parameters
indexintThe index
Returns
- TDestStruct
Type Parameters
TDestStructThe destination structure.
HighAt(int)
public virtual double HighAt(int index)
Parameters
indexint
Returns
IsEqualExactlyTo(DoubleArray)
A comparison method used when Equals(DoubleArray) is called from IEquatable<T> to compare same types of DoubleArray.
protected abstract bool? IsEqualExactlyTo(DoubleArray other)
Parameters
otherDoubleArrayAn DoubleArray to compare to this.
Returns
LowAt(int)
public virtual double LowAt(int index)
Parameters
indexint
Returns
Mean()
[Pure]
public virtual double Mean()
Returns
Mean(int)
[Pure]
public virtual double Mean(int property)
Parameters
propertyint
Returns
Median()
[Pure]
public virtual double Median()
Returns
Median(int)
[Pure]
public virtual double Median(int property)
Parameters
propertyint
Returns
OpenAt(int)
public virtual double OpenAt(int index)
Parameters
indexint
Returns
ReleaseUnmanagedResources()
protected virtual void ReleaseUnmanagedResources()
Reshape(int, int, bool)
Reshapes this DoubleArray to a shape of your choice, the shape must be
public abstract DoubleArray Reshape(int count, int properties, bool copy = true)
Parameters
countintThe count of items in this array.
propertiesintNumber of properties for every item in this array.
copyboolShould a copy be reshaped?
Returns
Exceptions
- ReshapeException
When unable to reshape to reshape: LinearLength != (
count*properties) then throws
SetCloseAt(int, double)
public virtual double SetCloseAt(int index, double value)
Parameters
Returns
SetHighAt(int, double)
public virtual double SetHighAt(int index, double value)
Parameters
Returns
SetLinear(int, double)
Writes to this DoubleArray linearly regardless to shape.
public virtual void SetLinear(int offset, double value)
Parameters
SetLowAt(int, double)
public virtual double SetLowAt(int index, double value)
Parameters
Returns
SetOpenAt(int, double)
public virtual double SetOpenAt(int index, double value)
Parameters
Returns
SetValueAt(int, double)
public virtual double SetValueAt(int index, double value)
Parameters
Returns
SetVolumeAt(int, double)
public virtual double SetVolumeAt(int index, double value)
Parameters
Returns
Slice(int)
Slices (or wraps with a slice wrapper) the Count dimension.
public DoubleArray Slice(int stop)
Parameters
stopintEnd of interval. The interval does not include this value, except in some cases where step is not an integer and floating point round-off affects the length of out.
Returns
- DoubleArray
Returns a sliced array shaped (newCount, Properties)
Remarks
This slicing mechanism is similar to numpy's slice and will behave like the following:
thisArray[start:stop:1, :]
Slice(int, int)
Slices (or wraps with a slice wrapper) the Count dimension.
public virtual DoubleArray Slice(int start, int stop)
Parameters
startintStart of interval. The interval includes this value. The default start value is 0.
stopintEnd of interval. The interval does not include this value, except in some cases where step is not an integer and floating point round-off affects the length of out.
Returns
- DoubleArray
Returns a sliced array shaped (newCount, Properties)
Remarks
This slicing mechanism is similar to numpy's slice and will behave like the following:
thisArray[start:stop:1, :]
SliceIndex(int, bool)
Slices (or wraps with a slice wrapper) the Count dimension.
public virtual DoubleArray SliceIndex(int index, bool copy = false)
Parameters
indexintThe index to slice from this DoubleArray.
copyboolShould the returned slice be copied.
Returns
- DoubleArray
Returns a sliced array shaped (newCount, Properties)
Remarks
This slicing mechanism is similar to numpy's slice and will behave like the following:
thisArray[start:stop:1, :]
Sum()
[Pure]
public virtual double Sum()
Returns
Sum(int)
[Pure]
public virtual double Sum(int property)
Parameters
propertyint
Returns
To2DArray()
Copies this array into a multi-dimensional array, double[,].
public virtual double[,] To2DArray()
Returns
- double[,]
ToArray()
Converts this DoubleArray to a linear double.
public virtual double[] ToArray()
Returns
- double[]
ToArray<TDestStruct>(ArrayConversionMethod, int)
Converts current array to an Array of type TDestStruct.
public virtual TDestStruct[] ToArray<TDestStruct>(ArrayConversionMethod method, int propertiesPerItem = -1) where TDestStruct : unmanaged, DataStruct
Parameters
methodArrayConversionMethodArrayConversionMethod,
propertiesPerItemintUsed for ArrayConversionMethod.Cast: describes how many doubles to copy to and per TDestStruct. If -1 is specified then sizeof(TDestStruct)/sizeof(double) will be used.
Returns
- TDestStruct[]
Type Parameters
TDestStruct
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
ValueAt(int)
public virtual double ValueAt(int index)
Parameters
indexint
Returns
VolumeAt(int)
public virtual double VolumeAt(int index)
Parameters
indexint
Returns
Operators
operator +(DoubleArray, DoubleArray)
public static DoubleArray operator +(DoubleArray lhs, DoubleArray rhs)
Parameters
lhsDoubleArrayrhsDoubleArray
Returns
operator +(DoubleArray, IndicatorBase)
public static DoubleArray operator +(DoubleArray lhs, IndicatorBase rhs)
Parameters
lhsDoubleArrayrhsIndicatorBase
Returns
operator +(DoubleArray, byte)
public static DoubleArray operator +(DoubleArray lhs, byte rhs)
Parameters
lhsDoubleArrayrhsbyte
Returns
operator +(DoubleArray, decimal)
public static DoubleArray operator +(DoubleArray lhs, decimal rhs)
Parameters
lhsDoubleArrayrhsdecimal
Returns
operator +(DoubleArray, double)
public static DoubleArray operator +(DoubleArray lhs, double rhs)
Parameters
lhsDoubleArrayrhsdouble
Returns
operator +(DoubleArray, short)
public static DoubleArray operator +(DoubleArray lhs, short rhs)
Parameters
lhsDoubleArrayrhsshort
Returns
operator +(DoubleArray, int)
public static DoubleArray operator +(DoubleArray lhs, int rhs)
Parameters
lhsDoubleArrayrhsint
Returns
operator +(DoubleArray, long)
public static DoubleArray operator +(DoubleArray lhs, long rhs)
Parameters
lhsDoubleArrayrhslong
Returns
operator +(DoubleArray, sbyte)
public static DoubleArray operator +(DoubleArray lhs, sbyte rhs)
Parameters
lhsDoubleArrayrhssbyte
Returns
operator +(DoubleArray, float)
public static DoubleArray operator +(DoubleArray lhs, float rhs)
Parameters
lhsDoubleArrayrhsfloat
Returns
operator +(DoubleArray, ushort)
public static DoubleArray operator +(DoubleArray lhs, ushort rhs)
Parameters
lhsDoubleArrayrhsushort
Returns
operator +(DoubleArray, uint)
public static DoubleArray operator +(DoubleArray lhs, uint rhs)
Parameters
lhsDoubleArrayrhsuint
Returns
operator +(DoubleArray, ulong)
public static DoubleArray operator +(DoubleArray lhs, ulong rhs)
Parameters
lhsDoubleArrayrhsulong
Returns
operator +(IndicatorBase, DoubleArray)
public static DoubleArray operator +(IndicatorBase lhs, DoubleArray rhs)
Parameters
lhsIndicatorBaserhsDoubleArray
Returns
operator +(byte, DoubleArray)
public static DoubleArray operator +(byte lhs, DoubleArray rhs)
Parameters
lhsbyterhsDoubleArray
Returns
operator +(decimal, DoubleArray)
public static DoubleArray operator +(decimal lhs, DoubleArray rhs)
Parameters
lhsdecimalrhsDoubleArray
Returns
operator +(double, DoubleArray)
public static DoubleArray operator +(double lhs, DoubleArray rhs)
Parameters
lhsdoublerhsDoubleArray
Returns
operator +(short, DoubleArray)
public static DoubleArray operator +(short lhs, DoubleArray rhs)
Parameters
lhsshortrhsDoubleArray
Returns
operator +(int, DoubleArray)
public static DoubleArray operator +(int lhs, DoubleArray rhs)
Parameters
lhsintrhsDoubleArray
Returns
operator +(long, DoubleArray)
public static DoubleArray operator +(long lhs, DoubleArray rhs)
Parameters
lhslongrhsDoubleArray
Returns
operator +(sbyte, DoubleArray)
public static DoubleArray operator +(sbyte lhs, DoubleArray rhs)
Parameters
lhssbyterhsDoubleArray
Returns
operator +(float, DoubleArray)
public static DoubleArray operator +(float lhs, DoubleArray rhs)
Parameters
lhsfloatrhsDoubleArray
Returns
operator +(ushort, DoubleArray)
public static DoubleArray operator +(ushort lhs, DoubleArray rhs)
Parameters
lhsushortrhsDoubleArray
Returns
operator +(uint, DoubleArray)
public static DoubleArray operator +(uint lhs, DoubleArray rhs)
Parameters
lhsuintrhsDoubleArray
Returns
operator +(ulong, DoubleArray)
public static DoubleArray operator +(ulong lhs, DoubleArray rhs)
Parameters
lhsulongrhsDoubleArray
Returns
operator /(DoubleArray, DoubleArray)
public static DoubleArray operator /(DoubleArray lhs, DoubleArray rhs)
Parameters
lhsDoubleArrayrhsDoubleArray
Returns
operator /(DoubleArray, IndicatorBase)
public static DoubleArray operator /(DoubleArray lhs, IndicatorBase rhs)
Parameters
lhsDoubleArrayrhsIndicatorBase
Returns
operator /(DoubleArray, byte)
public static DoubleArray operator /(DoubleArray lhs, byte rhs)
Parameters
lhsDoubleArrayrhsbyte
Returns
operator /(DoubleArray, decimal)
public static DoubleArray operator /(DoubleArray lhs, decimal rhs)
Parameters
lhsDoubleArrayrhsdecimal
Returns
operator /(DoubleArray, double)
public static DoubleArray operator /(DoubleArray lhs, double rhs)
Parameters
lhsDoubleArrayrhsdouble
Returns
operator /(DoubleArray, short)
public static DoubleArray operator /(DoubleArray lhs, short rhs)
Parameters
lhsDoubleArrayrhsshort
Returns
operator /(DoubleArray, int)
public static DoubleArray operator /(DoubleArray lhs, int rhs)
Parameters
lhsDoubleArrayrhsint
Returns
operator /(DoubleArray, long)
public static DoubleArray operator /(DoubleArray lhs, long rhs)
Parameters
lhsDoubleArrayrhslong
Returns
operator /(DoubleArray, sbyte)
public static DoubleArray operator /(DoubleArray lhs, sbyte rhs)
Parameters
lhsDoubleArrayrhssbyte
Returns
operator /(DoubleArray, float)
public static DoubleArray operator /(DoubleArray lhs, float rhs)
Parameters
lhsDoubleArrayrhsfloat
Returns
operator /(DoubleArray, ushort)
public static DoubleArray operator /(DoubleArray lhs, ushort rhs)
Parameters
lhsDoubleArrayrhsushort
Returns
operator /(DoubleArray, uint)
public static DoubleArray operator /(DoubleArray lhs, uint rhs)
Parameters
lhsDoubleArrayrhsuint
Returns
operator /(DoubleArray, ulong)
public static DoubleArray operator /(DoubleArray lhs, ulong rhs)
Parameters
lhsDoubleArrayrhsulong
Returns
operator /(IndicatorBase, DoubleArray)
public static DoubleArray operator /(IndicatorBase lhs, DoubleArray rhs)
Parameters
lhsIndicatorBaserhsDoubleArray
Returns
operator /(byte, DoubleArray)
public static DoubleArray operator /(byte lhs, DoubleArray rhs)
Parameters
lhsbyterhsDoubleArray
Returns
operator /(decimal, DoubleArray)
public static DoubleArray operator /(decimal lhs, DoubleArray rhs)
Parameters
lhsdecimalrhsDoubleArray
Returns
operator /(double, DoubleArray)
public static DoubleArray operator /(double lhs, DoubleArray rhs)
Parameters
lhsdoublerhsDoubleArray
Returns
operator /(short, DoubleArray)
public static DoubleArray operator /(short lhs, DoubleArray rhs)
Parameters
lhsshortrhsDoubleArray
Returns
operator /(int, DoubleArray)
public static DoubleArray operator /(int lhs, DoubleArray rhs)
Parameters
lhsintrhsDoubleArray
Returns
operator /(long, DoubleArray)
public static DoubleArray operator /(long lhs, DoubleArray rhs)
Parameters
lhslongrhsDoubleArray
Returns
operator /(sbyte, DoubleArray)
public static DoubleArray operator /(sbyte lhs, DoubleArray rhs)
Parameters
lhssbyterhsDoubleArray
Returns
operator /(float, DoubleArray)
public static DoubleArray operator /(float lhs, DoubleArray rhs)
Parameters
lhsfloatrhsDoubleArray
Returns
operator /(ushort, DoubleArray)
public static DoubleArray operator /(ushort lhs, DoubleArray rhs)
Parameters
lhsushortrhsDoubleArray
Returns
operator /(uint, DoubleArray)
public static DoubleArray operator /(uint lhs, DoubleArray rhs)
Parameters
lhsuintrhsDoubleArray
Returns
operator /(ulong, DoubleArray)
public static DoubleArray operator /(ulong lhs, DoubleArray rhs)
Parameters
lhsulongrhsDoubleArray
Returns
operator ==(DoubleArray, DoubleArray)
Returns a value that indicates whether the values of two DoubleArray objects are equal.
public static bool operator ==(DoubleArray left, DoubleArray right)
Parameters
leftDoubleArrayThe first value to compare.
rightDoubleArrayThe second value to compare.
Returns
- bool
true if the
leftandrightparameters have the same value; otherwise, false.
operator ==(DoubleArray, double)
Returns a value that indicates whether the values of two DoubleArray objects are equal.
public static bool operator ==(DoubleArray left, double right)
Parameters
leftDoubleArrayThe first value to compare.
rightdoubleThe second value to compare.
Returns
- bool
true if the
leftandrightparameters have the same value; otherwise, false.
operator ==(double, DoubleArray)
Returns a value that indicates whether the values of two DoubleArray objects are equal.
public static bool operator ==(double left, DoubleArray right)
Parameters
leftdoubleThe first value to compare.
rightDoubleArrayThe second value to compare.
Returns
- bool
true if the
leftandrightparameters have the same value; otherwise, false.
explicit operator byte(DoubleArray)
public static explicit operator byte(DoubleArray scalar)
Parameters
scalarDoubleArray
Returns
explicit operator double(DoubleArray)
public static explicit operator double(DoubleArray scalar)
Parameters
scalarDoubleArray
Returns
explicit operator short(DoubleArray)
public static explicit operator short(DoubleArray scalar)
Parameters
scalarDoubleArray
Returns
explicit operator int(DoubleArray)
public static explicit operator int(DoubleArray scalar)
Parameters
scalarDoubleArray
Returns
explicit operator long(DoubleArray)
public static explicit operator long(DoubleArray scalar)
Parameters
scalarDoubleArray
Returns
explicit operator sbyte(DoubleArray)
public static explicit operator sbyte(DoubleArray scalar)
Parameters
scalarDoubleArray
Returns
explicit operator float(DoubleArray)
public static explicit operator float(DoubleArray scalar)
Parameters
scalarDoubleArray
Returns
explicit operator ushort(DoubleArray)
public static explicit operator ushort(DoubleArray scalar)
Parameters
scalarDoubleArray
Returns
explicit operator uint(DoubleArray)
public static explicit operator uint(DoubleArray scalar)
Parameters
scalarDoubleArray
Returns
explicit operator ulong(DoubleArray)
public static explicit operator ulong(DoubleArray scalar)
Parameters
scalarDoubleArray
Returns
explicit operator DoubleArray(byte)
public static explicit operator DoubleArray(byte scalar)
Parameters
scalarbyte
Returns
explicit operator DoubleArray(short)
public static explicit operator DoubleArray(short scalar)
Parameters
scalarshort
Returns
explicit operator DoubleArray(int)
public static explicit operator DoubleArray(int scalar)
Parameters
scalarint
Returns
explicit operator DoubleArray(long)
public static explicit operator DoubleArray(long scalar)
Parameters
scalarlong
Returns
explicit operator DoubleArray(sbyte)
public static explicit operator DoubleArray(sbyte scalar)
Parameters
scalarsbyte
Returns
explicit operator DoubleArray(float)
public static explicit operator DoubleArray(float scalar)
Parameters
scalarfloat
Returns
explicit operator DoubleArray(ushort)
public static explicit operator DoubleArray(ushort scalar)
Parameters
scalarushort
Returns
explicit operator DoubleArray(uint)
public static explicit operator DoubleArray(uint scalar)
Parameters
scalaruint
Returns
explicit operator DoubleArray(ulong)
public static explicit operator DoubleArray(ulong scalar)
Parameters
scalarulong
Returns
implicit operator DoubleArray(double)
public static implicit operator DoubleArray(double scalar)
Parameters
scalardouble
Returns
operator !=(DoubleArray, DoubleArray)
Returns a value that indicates whether two DoubleArray objects have different values.
public static bool operator !=(DoubleArray left, DoubleArray right)
Parameters
leftDoubleArrayThe first value to compare.
rightDoubleArrayThe second value to compare.
Returns
- bool
true if
leftandrightare not equal; otherwise, false.
operator !=(DoubleArray, double)
Returns a value that indicates whether two DoubleArray objects have different values.
public static bool operator !=(DoubleArray left, double right)
Parameters
leftDoubleArrayThe first value to compare.
rightdoubleThe second value to compare.
Returns
- bool
true if
leftandrightare not equal; otherwise, false.
operator !=(double, DoubleArray)
Returns a value that indicates whether two DoubleArray objects have different values.
public static bool operator !=(double left, DoubleArray right)
Parameters
leftdoubleThe first value to compare.
rightDoubleArrayThe second value to compare.
Returns
- bool
true if
leftandrightare not equal; otherwise, false.
operator %(DoubleArray, DoubleArray)
public static DoubleArray operator %(DoubleArray lhs, DoubleArray rhs)
Parameters
lhsDoubleArrayrhsDoubleArray
Returns
operator %(DoubleArray, IndicatorBase)
public static DoubleArray operator %(DoubleArray lhs, IndicatorBase rhs)
Parameters
lhsDoubleArrayrhsIndicatorBase
Returns
operator %(DoubleArray, byte)
public static DoubleArray operator %(DoubleArray lhs, byte rhs)
Parameters
lhsDoubleArrayrhsbyte
Returns
operator %(DoubleArray, decimal)
public static DoubleArray operator %(DoubleArray lhs, decimal rhs)
Parameters
lhsDoubleArrayrhsdecimal
Returns
operator %(DoubleArray, double)
public static DoubleArray operator %(DoubleArray lhs, double rhs)
Parameters
lhsDoubleArrayrhsdouble
Returns
operator %(DoubleArray, short)
public static DoubleArray operator %(DoubleArray lhs, short rhs)
Parameters
lhsDoubleArrayrhsshort
Returns
operator %(DoubleArray, int)
public static DoubleArray operator %(DoubleArray lhs, int rhs)
Parameters
lhsDoubleArrayrhsint
Returns
operator %(DoubleArray, long)
public static DoubleArray operator %(DoubleArray lhs, long rhs)
Parameters
lhsDoubleArrayrhslong
Returns
operator %(DoubleArray, sbyte)
public static DoubleArray operator %(DoubleArray lhs, sbyte rhs)
Parameters
lhsDoubleArrayrhssbyte
Returns
operator %(DoubleArray, float)
public static DoubleArray operator %(DoubleArray lhs, float rhs)
Parameters
lhsDoubleArrayrhsfloat
Returns
operator %(DoubleArray, ushort)
public static DoubleArray operator %(DoubleArray lhs, ushort rhs)
Parameters
lhsDoubleArrayrhsushort
Returns
operator %(DoubleArray, uint)
public static DoubleArray operator %(DoubleArray lhs, uint rhs)
Parameters
lhsDoubleArrayrhsuint
Returns
operator %(DoubleArray, ulong)
public static DoubleArray operator %(DoubleArray lhs, ulong rhs)
Parameters
lhsDoubleArrayrhsulong
Returns
operator %(IndicatorBase, DoubleArray)
public static DoubleArray operator %(IndicatorBase lhs, DoubleArray rhs)
Parameters
lhsIndicatorBaserhsDoubleArray
Returns
operator %(byte, DoubleArray)
public static DoubleArray operator %(byte lhs, DoubleArray rhs)
Parameters
lhsbyterhsDoubleArray
Returns
operator %(decimal, DoubleArray)
public static DoubleArray operator %(decimal lhs, DoubleArray rhs)
Parameters
lhsdecimalrhsDoubleArray
Returns
operator %(double, DoubleArray)
public static DoubleArray operator %(double lhs, DoubleArray rhs)
Parameters
lhsdoublerhsDoubleArray
Returns
operator %(short, DoubleArray)
public static DoubleArray operator %(short lhs, DoubleArray rhs)
Parameters
lhsshortrhsDoubleArray
Returns
operator %(int, DoubleArray)
public static DoubleArray operator %(int lhs, DoubleArray rhs)
Parameters
lhsintrhsDoubleArray
Returns
operator %(long, DoubleArray)
public static DoubleArray operator %(long lhs, DoubleArray rhs)
Parameters
lhslongrhsDoubleArray
Returns
operator %(sbyte, DoubleArray)
public static DoubleArray operator %(sbyte lhs, DoubleArray rhs)
Parameters
lhssbyterhsDoubleArray
Returns
operator %(float, DoubleArray)
public static DoubleArray operator %(float lhs, DoubleArray rhs)
Parameters
lhsfloatrhsDoubleArray
Returns
operator %(ushort, DoubleArray)
public static DoubleArray operator %(ushort lhs, DoubleArray rhs)
Parameters
lhsushortrhsDoubleArray
Returns
operator %(uint, DoubleArray)
public static DoubleArray operator %(uint lhs, DoubleArray rhs)
Parameters
lhsuintrhsDoubleArray
Returns
operator %(ulong, DoubleArray)
public static DoubleArray operator %(ulong lhs, DoubleArray rhs)
Parameters
lhsulongrhsDoubleArray
Returns
operator *(DoubleArray, DoubleArray)
public static DoubleArray operator *(DoubleArray lhs, DoubleArray rhs)
Parameters
lhsDoubleArrayrhsDoubleArray
Returns
operator *(DoubleArray, IndicatorBase)
public static DoubleArray operator *(DoubleArray lhs, IndicatorBase rhs)
Parameters
lhsDoubleArrayrhsIndicatorBase
Returns
operator *(DoubleArray, byte)
public static DoubleArray operator *(DoubleArray lhs, byte rhs)
Parameters
lhsDoubleArrayrhsbyte
Returns
operator *(DoubleArray, decimal)
public static DoubleArray operator *(DoubleArray lhs, decimal rhs)
Parameters
lhsDoubleArrayrhsdecimal
Returns
operator *(DoubleArray, double)
public static DoubleArray operator *(DoubleArray lhs, double rhs)
Parameters
lhsDoubleArrayrhsdouble
Returns
operator *(DoubleArray, short)
public static DoubleArray operator *(DoubleArray lhs, short rhs)
Parameters
lhsDoubleArrayrhsshort
Returns
operator *(DoubleArray, int)
public static DoubleArray operator *(DoubleArray lhs, int rhs)
Parameters
lhsDoubleArrayrhsint
Returns
operator *(DoubleArray, long)
public static DoubleArray operator *(DoubleArray lhs, long rhs)
Parameters
lhsDoubleArrayrhslong
Returns
operator *(DoubleArray, sbyte)
public static DoubleArray operator *(DoubleArray lhs, sbyte rhs)
Parameters
lhsDoubleArrayrhssbyte
Returns
operator *(DoubleArray, float)
public static DoubleArray operator *(DoubleArray lhs, float rhs)
Parameters
lhsDoubleArrayrhsfloat
Returns
operator *(DoubleArray, ushort)
public static DoubleArray operator *(DoubleArray lhs, ushort rhs)
Parameters
lhsDoubleArrayrhsushort
Returns
operator *(DoubleArray, uint)
public static DoubleArray operator *(DoubleArray lhs, uint rhs)
Parameters
lhsDoubleArrayrhsuint
Returns
operator *(DoubleArray, ulong)
public static DoubleArray operator *(DoubleArray lhs, ulong rhs)
Parameters
lhsDoubleArrayrhsulong
Returns
operator *(IndicatorBase, DoubleArray)
public static DoubleArray operator *(IndicatorBase lhs, DoubleArray rhs)
Parameters
lhsIndicatorBaserhsDoubleArray
Returns
operator *(byte, DoubleArray)
public static DoubleArray operator *(byte lhs, DoubleArray rhs)
Parameters
lhsbyterhsDoubleArray
Returns
operator *(decimal, DoubleArray)
public static DoubleArray operator *(decimal lhs, DoubleArray rhs)
Parameters
lhsdecimalrhsDoubleArray
Returns
operator *(double, DoubleArray)
public static DoubleArray operator *(double lhs, DoubleArray rhs)
Parameters
lhsdoublerhsDoubleArray
Returns
operator *(short, DoubleArray)
public static DoubleArray operator *(short lhs, DoubleArray rhs)
Parameters
lhsshortrhsDoubleArray
Returns
operator *(int, DoubleArray)
public static DoubleArray operator *(int lhs, DoubleArray rhs)
Parameters
lhsintrhsDoubleArray
Returns
operator *(long, DoubleArray)
public static DoubleArray operator *(long lhs, DoubleArray rhs)
Parameters
lhslongrhsDoubleArray
Returns
operator *(sbyte, DoubleArray)
public static DoubleArray operator *(sbyte lhs, DoubleArray rhs)
Parameters
lhssbyterhsDoubleArray
Returns
operator *(float, DoubleArray)
public static DoubleArray operator *(float lhs, DoubleArray rhs)
Parameters
lhsfloatrhsDoubleArray
Returns
operator *(ushort, DoubleArray)
public static DoubleArray operator *(ushort lhs, DoubleArray rhs)
Parameters
lhsushortrhsDoubleArray
Returns
operator *(uint, DoubleArray)
public static DoubleArray operator *(uint lhs, DoubleArray rhs)
Parameters
lhsuintrhsDoubleArray
Returns
operator *(ulong, DoubleArray)
public static DoubleArray operator *(ulong lhs, DoubleArray rhs)
Parameters
lhsulongrhsDoubleArray
Returns
operator -(DoubleArray, DoubleArray)
public static DoubleArray operator -(DoubleArray lhs, DoubleArray rhs)
Parameters
lhsDoubleArrayrhsDoubleArray
Returns
operator -(DoubleArray, IndicatorBase)
public static DoubleArray operator -(DoubleArray lhs, IndicatorBase rhs)
Parameters
lhsDoubleArrayrhsIndicatorBase
Returns
operator -(DoubleArray, byte)
public static DoubleArray operator -(DoubleArray lhs, byte rhs)
Parameters
lhsDoubleArrayrhsbyte
Returns
operator -(DoubleArray, decimal)
public static DoubleArray operator -(DoubleArray lhs, decimal rhs)
Parameters
lhsDoubleArrayrhsdecimal
Returns
operator -(DoubleArray, double)
public static DoubleArray operator -(DoubleArray lhs, double rhs)
Parameters
lhsDoubleArrayrhsdouble
Returns
operator -(DoubleArray, short)
public static DoubleArray operator -(DoubleArray lhs, short rhs)
Parameters
lhsDoubleArrayrhsshort
Returns
operator -(DoubleArray, int)
public static DoubleArray operator -(DoubleArray lhs, int rhs)
Parameters
lhsDoubleArrayrhsint
Returns
operator -(DoubleArray, long)
public static DoubleArray operator -(DoubleArray lhs, long rhs)
Parameters
lhsDoubleArrayrhslong
Returns
operator -(DoubleArray, sbyte)
public static DoubleArray operator -(DoubleArray lhs, sbyte rhs)
Parameters
lhsDoubleArrayrhssbyte
Returns
operator -(DoubleArray, float)
public static DoubleArray operator -(DoubleArray lhs, float rhs)
Parameters
lhsDoubleArrayrhsfloat
Returns
operator -(DoubleArray, ushort)
public static DoubleArray operator -(DoubleArray lhs, ushort rhs)
Parameters
lhsDoubleArrayrhsushort
Returns
operator -(DoubleArray, uint)
public static DoubleArray operator -(DoubleArray lhs, uint rhs)
Parameters
lhsDoubleArrayrhsuint
Returns
operator -(DoubleArray, ulong)
public static DoubleArray operator -(DoubleArray lhs, ulong rhs)
Parameters
lhsDoubleArrayrhsulong
Returns
operator -(IndicatorBase, DoubleArray)
public static DoubleArray operator -(IndicatorBase lhs, DoubleArray rhs)
Parameters
lhsIndicatorBaserhsDoubleArray
Returns
operator -(byte, DoubleArray)
public static DoubleArray operator -(byte lhs, DoubleArray rhs)
Parameters
lhsbyterhsDoubleArray
Returns
operator -(decimal, DoubleArray)
public static DoubleArray operator -(decimal lhs, DoubleArray rhs)
Parameters
lhsdecimalrhsDoubleArray
Returns
operator -(double, DoubleArray)
public static DoubleArray operator -(double lhs, DoubleArray rhs)
Parameters
lhsdoublerhsDoubleArray
Returns
operator -(short, DoubleArray)
public static DoubleArray operator -(short lhs, DoubleArray rhs)
Parameters
lhsshortrhsDoubleArray
Returns
operator -(int, DoubleArray)
public static DoubleArray operator -(int lhs, DoubleArray rhs)
Parameters
lhsintrhsDoubleArray
Returns
operator -(long, DoubleArray)
public static DoubleArray operator -(long lhs, DoubleArray rhs)
Parameters
lhslongrhsDoubleArray
Returns
operator -(sbyte, DoubleArray)
public static DoubleArray operator -(sbyte lhs, DoubleArray rhs)
Parameters
lhssbyterhsDoubleArray
Returns
operator -(float, DoubleArray)
public static DoubleArray operator -(float lhs, DoubleArray rhs)
Parameters
lhsfloatrhsDoubleArray
Returns
operator -(ushort, DoubleArray)
public static DoubleArray operator -(ushort lhs, DoubleArray rhs)
Parameters
lhsushortrhsDoubleArray
Returns
operator -(uint, DoubleArray)
public static DoubleArray operator -(uint lhs, DoubleArray rhs)
Parameters
lhsuintrhsDoubleArray
Returns
operator -(ulong, DoubleArray)
public static DoubleArray operator -(ulong lhs, DoubleArray rhs)
Parameters
lhsulongrhsDoubleArray