Table of Contents

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

values double[]
properties int

How many properties typed double are for every count

DoubleArray(int, int)

protected DoubleArray(int count, int properties)

Parameters

count int

The number of items in this array.

properties int

How many properties typed double are for every count

Properties

AsDoubleSpan

Wraps this DoubleArray with Span<T>.

public virtual Span<double> AsDoubleSpan { get; }

Property Value

Span<double>

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

double

Count

public abstract int Count { get; protected set; }

Property Value

int

High

public virtual double High { get; set; }

Property Value

double

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

bool

this[int]

Scalar overload.

public abstract double this[int property] { get; set; }

Parameters

property int

Property Value

double

this[int, int]

public abstract double this[int index, int property] { get; set; }

Parameters

index int
property int

Property Value

double

LinearLength

The total number of double values in the array.

public int LinearLength { get; }

Property Value

int

Low

public virtual double Low { get; set; }

Property Value

double

Open

public virtual double Open { get; set; }

Property Value

double

Properties

public abstract int Properties { get; protected set; }

Property Value

int

SizeOf

The bytes size of this array.

public int SizeOf { get; }

Property Value

int

Value

public virtual double Value { get; set; }

Property Value

double

Volume

public virtual double Volume { get; set; }

Property Value

double

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

start double

Starting value

stop double

Stopping value

step double

Step size

Returns

DoubleArray

AssertTrue(bool)

Asserts for DEBUG runs..

[Conditional("DEBUG")]
protected void AssertTrue(bool condition)

Parameters

condition bool

AssertTrue(bool, string)

Asserts for DEBUG runs..

[Conditional("DEBUG")]
protected void AssertTrue(bool condition, string reason)

Parameters

condition bool
reason string

Clone()

Clones current DoubleArray.

public abstract DoubleArray Clone()

Returns

DoubleArray

A new copy of this.

CloseAt(int)

public virtual double CloseAt(int index)

Parameters

index int

Returns

double

CompareValues(DoubleArray)

A less performant version of IsEqualExactlyTo(DoubleArray) that can handle all types of DoubleArray.

protected virtual bool CompareValues(DoubleArray other)

Parameters

other DoubleArray

Returns

bool

ComputeHashCode()

Additional hashcode for inherieted classes.

protected abstract int ComputeHashCode()

Returns

int

CopyTo(DoubleArray)

Copies content of this array to target.

public virtual void CopyTo(DoubleArray target)

Parameters

target DoubleArray

The target array, must be matching LinearLength with this.

CopyTo(void*)

Copies content of this array to target.

public virtual void CopyTo(void* target)

Parameters

target void*

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

target void*

The target array, must be matching LinearLength with this.

bytes int

The 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

disposing bool

Equals(DoubleArray)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(DoubleArray other)

Parameters

other DoubleArray

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The 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

value double

Fill(int, double)

Fills the contents of given property with the given value.

public void Fill(int property, double value)

Parameters

property int
value double

~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

function ForFunctionHandler

The function to call for every value in this array.

ForEach(ForIndexedFunctionHandler)

Iterates this array efficiently.

public virtual void ForEach(ForIndexedFunctionHandler function)

Parameters

function ForIndexedFunctionHandler

The function to call for every value in this array.

ForEach(ReferenceForFunctionHandler)

public abstract void ForEach(ReferenceForFunctionHandler function)

Parameters

function ReferenceForFunctionHandler

ForEach(int, ForFunctionHandler)

public virtual void ForEach(int property, ForFunctionHandler function)

Parameters

property int
function ForFunctionHandler

ForEach(int, ForIndexedFunctionHandler)

public virtual void ForEach(int property, ForIndexedFunctionHandler function)

Parameters

property int
function ForIndexedFunctionHandler

From(double)

Wraps given value in a scalar DoubleArray.

public static DoubleArray From(double value)

Parameters

value double

The 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

pointer double*

Address of the memory block storing doubles.

count int

Number of items in given array

properties int

Number of properties for every item in given array.

zeroValues bool

Fill the memory block with zeros

disposer Action

Deallocator called when this object is disposed. Can be null.

Returns

DoubleArray

From(double[,], bool)

Copies or wraps given array into a DoubleArray.

public static DoubleArray From(double[,] array, bool copy)

Parameters

array double[,]

An array

copy bool

If true, array's contents will be copied via Clone(), otherwise pinned and referenced.

Returns

DoubleArray

From(double[], bool, int)

Copies or wraps given array into a DoubleArray.

public static DoubleArray From(double[] array, bool copy, int properties = 1)

Parameters

array double[]

An array

copy bool

If true, array's contents will be copied to a newly allocated memory block, otherwise pinned and referenced.

properties int

How many properties are for every item in the array.

Returns

DoubleArray

From(double[][])

Converts array to double[,] (always copies) and wraps in DoubleArray.

public static DoubleArray From(double[][] array)

Parameters

array double[][]

The array to convert and wrap.

Returns

DoubleArray

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

pointer void*

Address of the memory block storing doubles.

count int

Number of items in given array

properties int

Number of properties for every item in given array.

zeroValues bool

Fill the memory block with zeros

disposer Action

Deallocator called when this object is disposed. Can be null.

Returns

DoubleArray

From<TStruct>(in TStruct)

Wraps a copy of given TStruct.

public static DoubleArray From<TStruct>(in TStruct scalar) where TStruct : unmanaged, DataStruct

Parameters

scalar TStruct

A value to wrap.

Returns

DoubleArray

Type Parameters

TStruct

An 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

values TStruct[]

An array of values.

Returns

DoubleArray

Type Parameters

TStruct

An 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

array TStruct[]

An array

copy bool

If true, array's contents will be copied to a newly allocated memory block, otherwise pinned and referenced.

Returns

DoubleArray

Type Parameters

TStruct

Function(UnaryFunctionHandler, bool)

public virtual DoubleArray Function(UnaryFunctionHandler function, bool copy = true)

Parameters

function UnaryFunctionHandler
copy bool

Returns

DoubleArray

Function(DoubleArray, BinaryFunctionHandler)

Performs a binary function on lhs and rhs.

public virtual DoubleArray Function(DoubleArray rhs, BinaryFunctionHandler function)

Parameters

rhs DoubleArray

The rhs of the equation, 'this' is lhs.

function BinaryFunctionHandler

The function to call for every value in this array.

Returns

DoubleArray

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

rhs DoubleArray
property int

Which property from Properties dimension to select and apply function on.

function BinaryFunctionHandler

The function to call for every value in this array.

Returns

DoubleArray

Function(int, UnaryFunctionHandler, bool)

public virtual DoubleArray Function(int property, UnaryFunctionHandler function, bool copy = true)

Parameters

property int
function UnaryFunctionHandler
copy bool

Returns

DoubleArray

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

offset int

Absolute offset

Returns

double

The value at given offset.

GetPinnableReference()

Provides a pinnable reference for fixing a DoubleArray.

public abstract ref double GetPinnableReference()

Returns

double

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

index int

Returns

double

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

index int

The index

Returns

TDestStruct

Type Parameters

TDestStruct

The destination structure.

HighAt(int)

public virtual double HighAt(int index)

Parameters

index int

Returns

double

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

other DoubleArray

An DoubleArray to compare to this.

Returns

bool?

Are this[int] equals to other. Null returned when test was not performed.

LowAt(int)

public virtual double LowAt(int index)

Parameters

index int

Returns

double

Mean()

[Pure]
public virtual double Mean()

Returns

double

Mean(int)

[Pure]
public virtual double Mean(int property)

Parameters

property int

Returns

double

Median()

[Pure]
public virtual double Median()

Returns

double

Median(int)

[Pure]
public virtual double Median(int property)

Parameters

property int

Returns

double

OpenAt(int)

public virtual double OpenAt(int index)

Parameters

index int

Returns

double

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

count int

The count of items in this array.

properties int

Number of properties for every item in this array.

copy bool

Should a copy be reshaped?

Returns

DoubleArray

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

index int
value double

Returns

double

SetHighAt(int, double)

public virtual double SetHighAt(int index, double value)

Parameters

index int
value double

Returns

double

SetLinear(int, double)

Writes to this DoubleArray linearly regardless to shape.

public virtual void SetLinear(int offset, double value)

Parameters

offset int

Absolute offset to set value at.

value double

The value to write

SetLowAt(int, double)

public virtual double SetLowAt(int index, double value)

Parameters

index int
value double

Returns

double

SetOpenAt(int, double)

public virtual double SetOpenAt(int index, double value)

Parameters

index int
value double

Returns

double

SetValueAt(int, double)

public virtual double SetValueAt(int index, double value)

Parameters

index int
value double

Returns

double

SetVolumeAt(int, double)

public virtual double SetVolumeAt(int index, double value)

Parameters

index int
value double

Returns

double

Slice(int)

Slices (or wraps with a slice wrapper) the Count dimension.

public DoubleArray Slice(int stop)

Parameters

stop int

End 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

start int

Start of interval. The interval includes this value. The default start value is 0.

stop int

End 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

index int

The index to slice from this DoubleArray.

copy bool

Should 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

double

Sum(int)

[Pure]
public virtual double Sum(int property)

Parameters

property int

Returns

double

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

method ArrayConversionMethod

ArrayConversionMethod,

propertiesPerItem int

Used 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

index int

Returns

double

VolumeAt(int)

public virtual double VolumeAt(int index)

Parameters

index int

Returns

double

Operators

operator +(DoubleArray, DoubleArray)

public static DoubleArray operator +(DoubleArray lhs, DoubleArray rhs)

Parameters

lhs DoubleArray
rhs DoubleArray

Returns

DoubleArray

operator +(DoubleArray, IndicatorBase)

public static DoubleArray operator +(DoubleArray lhs, IndicatorBase rhs)

Parameters

lhs DoubleArray
rhs IndicatorBase

Returns

DoubleArray

operator +(DoubleArray, byte)

public static DoubleArray operator +(DoubleArray lhs, byte rhs)

Parameters

lhs DoubleArray
rhs byte

Returns

DoubleArray

operator +(DoubleArray, decimal)

public static DoubleArray operator +(DoubleArray lhs, decimal rhs)

Parameters

lhs DoubleArray
rhs decimal

Returns

DoubleArray

operator +(DoubleArray, double)

public static DoubleArray operator +(DoubleArray lhs, double rhs)

Parameters

lhs DoubleArray
rhs double

Returns

DoubleArray

operator +(DoubleArray, short)

public static DoubleArray operator +(DoubleArray lhs, short rhs)

Parameters

lhs DoubleArray
rhs short

Returns

DoubleArray

operator +(DoubleArray, int)

public static DoubleArray operator +(DoubleArray lhs, int rhs)

Parameters

lhs DoubleArray
rhs int

Returns

DoubleArray

operator +(DoubleArray, long)

public static DoubleArray operator +(DoubleArray lhs, long rhs)

Parameters

lhs DoubleArray
rhs long

Returns

DoubleArray

operator +(DoubleArray, sbyte)

public static DoubleArray operator +(DoubleArray lhs, sbyte rhs)

Parameters

lhs DoubleArray
rhs sbyte

Returns

DoubleArray

operator +(DoubleArray, float)

public static DoubleArray operator +(DoubleArray lhs, float rhs)

Parameters

lhs DoubleArray
rhs float

Returns

DoubleArray

operator +(DoubleArray, ushort)

public static DoubleArray operator +(DoubleArray lhs, ushort rhs)

Parameters

lhs DoubleArray
rhs ushort

Returns

DoubleArray

operator +(DoubleArray, uint)

public static DoubleArray operator +(DoubleArray lhs, uint rhs)

Parameters

lhs DoubleArray
rhs uint

Returns

DoubleArray

operator +(DoubleArray, ulong)

public static DoubleArray operator +(DoubleArray lhs, ulong rhs)

Parameters

lhs DoubleArray
rhs ulong

Returns

DoubleArray

operator +(IndicatorBase, DoubleArray)

public static DoubleArray operator +(IndicatorBase lhs, DoubleArray rhs)

Parameters

lhs IndicatorBase
rhs DoubleArray

Returns

DoubleArray

operator +(byte, DoubleArray)

public static DoubleArray operator +(byte lhs, DoubleArray rhs)

Parameters

lhs byte
rhs DoubleArray

Returns

DoubleArray

operator +(decimal, DoubleArray)

public static DoubleArray operator +(decimal lhs, DoubleArray rhs)

Parameters

lhs decimal
rhs DoubleArray

Returns

DoubleArray

operator +(double, DoubleArray)

public static DoubleArray operator +(double lhs, DoubleArray rhs)

Parameters

lhs double
rhs DoubleArray

Returns

DoubleArray

operator +(short, DoubleArray)

public static DoubleArray operator +(short lhs, DoubleArray rhs)

Parameters

lhs short
rhs DoubleArray

Returns

DoubleArray

operator +(int, DoubleArray)

public static DoubleArray operator +(int lhs, DoubleArray rhs)

Parameters

lhs int
rhs DoubleArray

Returns

DoubleArray

operator +(long, DoubleArray)

public static DoubleArray operator +(long lhs, DoubleArray rhs)

Parameters

lhs long
rhs DoubleArray

Returns

DoubleArray

operator +(sbyte, DoubleArray)

public static DoubleArray operator +(sbyte lhs, DoubleArray rhs)

Parameters

lhs sbyte
rhs DoubleArray

Returns

DoubleArray

operator +(float, DoubleArray)

public static DoubleArray operator +(float lhs, DoubleArray rhs)

Parameters

lhs float
rhs DoubleArray

Returns

DoubleArray

operator +(ushort, DoubleArray)

public static DoubleArray operator +(ushort lhs, DoubleArray rhs)

Parameters

lhs ushort
rhs DoubleArray

Returns

DoubleArray

operator +(uint, DoubleArray)

public static DoubleArray operator +(uint lhs, DoubleArray rhs)

Parameters

lhs uint
rhs DoubleArray

Returns

DoubleArray

operator +(ulong, DoubleArray)

public static DoubleArray operator +(ulong lhs, DoubleArray rhs)

Parameters

lhs ulong
rhs DoubleArray

Returns

DoubleArray

operator /(DoubleArray, DoubleArray)

public static DoubleArray operator /(DoubleArray lhs, DoubleArray rhs)

Parameters

lhs DoubleArray
rhs DoubleArray

Returns

DoubleArray

operator /(DoubleArray, IndicatorBase)

public static DoubleArray operator /(DoubleArray lhs, IndicatorBase rhs)

Parameters

lhs DoubleArray
rhs IndicatorBase

Returns

DoubleArray

operator /(DoubleArray, byte)

public static DoubleArray operator /(DoubleArray lhs, byte rhs)

Parameters

lhs DoubleArray
rhs byte

Returns

DoubleArray

operator /(DoubleArray, decimal)

public static DoubleArray operator /(DoubleArray lhs, decimal rhs)

Parameters

lhs DoubleArray
rhs decimal

Returns

DoubleArray

operator /(DoubleArray, double)

public static DoubleArray operator /(DoubleArray lhs, double rhs)

Parameters

lhs DoubleArray
rhs double

Returns

DoubleArray

operator /(DoubleArray, short)

public static DoubleArray operator /(DoubleArray lhs, short rhs)

Parameters

lhs DoubleArray
rhs short

Returns

DoubleArray

operator /(DoubleArray, int)

public static DoubleArray operator /(DoubleArray lhs, int rhs)

Parameters

lhs DoubleArray
rhs int

Returns

DoubleArray

operator /(DoubleArray, long)

public static DoubleArray operator /(DoubleArray lhs, long rhs)

Parameters

lhs DoubleArray
rhs long

Returns

DoubleArray

operator /(DoubleArray, sbyte)

public static DoubleArray operator /(DoubleArray lhs, sbyte rhs)

Parameters

lhs DoubleArray
rhs sbyte

Returns

DoubleArray

operator /(DoubleArray, float)

public static DoubleArray operator /(DoubleArray lhs, float rhs)

Parameters

lhs DoubleArray
rhs float

Returns

DoubleArray

operator /(DoubleArray, ushort)

public static DoubleArray operator /(DoubleArray lhs, ushort rhs)

Parameters

lhs DoubleArray
rhs ushort

Returns

DoubleArray

operator /(DoubleArray, uint)

public static DoubleArray operator /(DoubleArray lhs, uint rhs)

Parameters

lhs DoubleArray
rhs uint

Returns

DoubleArray

operator /(DoubleArray, ulong)

public static DoubleArray operator /(DoubleArray lhs, ulong rhs)

Parameters

lhs DoubleArray
rhs ulong

Returns

DoubleArray

operator /(IndicatorBase, DoubleArray)

public static DoubleArray operator /(IndicatorBase lhs, DoubleArray rhs)

Parameters

lhs IndicatorBase
rhs DoubleArray

Returns

DoubleArray

operator /(byte, DoubleArray)

public static DoubleArray operator /(byte lhs, DoubleArray rhs)

Parameters

lhs byte
rhs DoubleArray

Returns

DoubleArray

operator /(decimal, DoubleArray)

public static DoubleArray operator /(decimal lhs, DoubleArray rhs)

Parameters

lhs decimal
rhs DoubleArray

Returns

DoubleArray

operator /(double, DoubleArray)

public static DoubleArray operator /(double lhs, DoubleArray rhs)

Parameters

lhs double
rhs DoubleArray

Returns

DoubleArray

operator /(short, DoubleArray)

public static DoubleArray operator /(short lhs, DoubleArray rhs)

Parameters

lhs short
rhs DoubleArray

Returns

DoubleArray

operator /(int, DoubleArray)

public static DoubleArray operator /(int lhs, DoubleArray rhs)

Parameters

lhs int
rhs DoubleArray

Returns

DoubleArray

operator /(long, DoubleArray)

public static DoubleArray operator /(long lhs, DoubleArray rhs)

Parameters

lhs long
rhs DoubleArray

Returns

DoubleArray

operator /(sbyte, DoubleArray)

public static DoubleArray operator /(sbyte lhs, DoubleArray rhs)

Parameters

lhs sbyte
rhs DoubleArray

Returns

DoubleArray

operator /(float, DoubleArray)

public static DoubleArray operator /(float lhs, DoubleArray rhs)

Parameters

lhs float
rhs DoubleArray

Returns

DoubleArray

operator /(ushort, DoubleArray)

public static DoubleArray operator /(ushort lhs, DoubleArray rhs)

Parameters

lhs ushort
rhs DoubleArray

Returns

DoubleArray

operator /(uint, DoubleArray)

public static DoubleArray operator /(uint lhs, DoubleArray rhs)

Parameters

lhs uint
rhs DoubleArray

Returns

DoubleArray

operator /(ulong, DoubleArray)

public static DoubleArray operator /(ulong lhs, DoubleArray rhs)

Parameters

lhs ulong
rhs DoubleArray

Returns

DoubleArray

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

left DoubleArray

The first value to compare.

right DoubleArray

The second value to compare.

Returns

bool

true if the left and right parameters 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

left DoubleArray

The first value to compare.

right double

The second value to compare.

Returns

bool

true if the left and right parameters 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

left double

The first value to compare.

right DoubleArray

The second value to compare.

Returns

bool

true if the left and right parameters have the same value; otherwise, false.

explicit operator byte(DoubleArray)

public static explicit operator byte(DoubleArray scalar)

Parameters

scalar DoubleArray

Returns

byte

explicit operator double(DoubleArray)

public static explicit operator double(DoubleArray scalar)

Parameters

scalar DoubleArray

Returns

double

explicit operator short(DoubleArray)

public static explicit operator short(DoubleArray scalar)

Parameters

scalar DoubleArray

Returns

short

explicit operator int(DoubleArray)

public static explicit operator int(DoubleArray scalar)

Parameters

scalar DoubleArray

Returns

int

explicit operator long(DoubleArray)

public static explicit operator long(DoubleArray scalar)

Parameters

scalar DoubleArray

Returns

long

explicit operator sbyte(DoubleArray)

public static explicit operator sbyte(DoubleArray scalar)

Parameters

scalar DoubleArray

Returns

sbyte

explicit operator float(DoubleArray)

public static explicit operator float(DoubleArray scalar)

Parameters

scalar DoubleArray

Returns

float

explicit operator ushort(DoubleArray)

public static explicit operator ushort(DoubleArray scalar)

Parameters

scalar DoubleArray

Returns

ushort

explicit operator uint(DoubleArray)

public static explicit operator uint(DoubleArray scalar)

Parameters

scalar DoubleArray

Returns

uint

explicit operator ulong(DoubleArray)

public static explicit operator ulong(DoubleArray scalar)

Parameters

scalar DoubleArray

Returns

ulong

explicit operator DoubleArray(byte)

public static explicit operator DoubleArray(byte scalar)

Parameters

scalar byte

Returns

DoubleArray

explicit operator DoubleArray(short)

public static explicit operator DoubleArray(short scalar)

Parameters

scalar short

Returns

DoubleArray

explicit operator DoubleArray(int)

public static explicit operator DoubleArray(int scalar)

Parameters

scalar int

Returns

DoubleArray

explicit operator DoubleArray(long)

public static explicit operator DoubleArray(long scalar)

Parameters

scalar long

Returns

DoubleArray

explicit operator DoubleArray(sbyte)

public static explicit operator DoubleArray(sbyte scalar)

Parameters

scalar sbyte

Returns

DoubleArray

explicit operator DoubleArray(float)

public static explicit operator DoubleArray(float scalar)

Parameters

scalar float

Returns

DoubleArray

explicit operator DoubleArray(ushort)

public static explicit operator DoubleArray(ushort scalar)

Parameters

scalar ushort

Returns

DoubleArray

explicit operator DoubleArray(uint)

public static explicit operator DoubleArray(uint scalar)

Parameters

scalar uint

Returns

DoubleArray

explicit operator DoubleArray(ulong)

public static explicit operator DoubleArray(ulong scalar)

Parameters

scalar ulong

Returns

DoubleArray

implicit operator DoubleArray(double)

public static implicit operator DoubleArray(double scalar)

Parameters

scalar double

Returns

DoubleArray

operator !=(DoubleArray, DoubleArray)

Returns a value that indicates whether two DoubleArray objects have different values.

public static bool operator !=(DoubleArray left, DoubleArray right)

Parameters

left DoubleArray

The first value to compare.

right DoubleArray

The second value to compare.

Returns

bool

true if left and right are 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

left DoubleArray

The first value to compare.

right double

The second value to compare.

Returns

bool

true if left and right are 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

left double

The first value to compare.

right DoubleArray

The second value to compare.

Returns

bool

true if left and right are not equal; otherwise, false.

operator %(DoubleArray, DoubleArray)

public static DoubleArray operator %(DoubleArray lhs, DoubleArray rhs)

Parameters

lhs DoubleArray
rhs DoubleArray

Returns

DoubleArray

operator %(DoubleArray, IndicatorBase)

public static DoubleArray operator %(DoubleArray lhs, IndicatorBase rhs)

Parameters

lhs DoubleArray
rhs IndicatorBase

Returns

DoubleArray

operator %(DoubleArray, byte)

public static DoubleArray operator %(DoubleArray lhs, byte rhs)

Parameters

lhs DoubleArray
rhs byte

Returns

DoubleArray

operator %(DoubleArray, decimal)

public static DoubleArray operator %(DoubleArray lhs, decimal rhs)

Parameters

lhs DoubleArray
rhs decimal

Returns

DoubleArray

operator %(DoubleArray, double)

public static DoubleArray operator %(DoubleArray lhs, double rhs)

Parameters

lhs DoubleArray
rhs double

Returns

DoubleArray

operator %(DoubleArray, short)

public static DoubleArray operator %(DoubleArray lhs, short rhs)

Parameters

lhs DoubleArray
rhs short

Returns

DoubleArray

operator %(DoubleArray, int)

public static DoubleArray operator %(DoubleArray lhs, int rhs)

Parameters

lhs DoubleArray
rhs int

Returns

DoubleArray

operator %(DoubleArray, long)

public static DoubleArray operator %(DoubleArray lhs, long rhs)

Parameters

lhs DoubleArray
rhs long

Returns

DoubleArray

operator %(DoubleArray, sbyte)

public static DoubleArray operator %(DoubleArray lhs, sbyte rhs)

Parameters

lhs DoubleArray
rhs sbyte

Returns

DoubleArray

operator %(DoubleArray, float)

public static DoubleArray operator %(DoubleArray lhs, float rhs)

Parameters

lhs DoubleArray
rhs float

Returns

DoubleArray

operator %(DoubleArray, ushort)

public static DoubleArray operator %(DoubleArray lhs, ushort rhs)

Parameters

lhs DoubleArray
rhs ushort

Returns

DoubleArray

operator %(DoubleArray, uint)

public static DoubleArray operator %(DoubleArray lhs, uint rhs)

Parameters

lhs DoubleArray
rhs uint

Returns

DoubleArray

operator %(DoubleArray, ulong)

public static DoubleArray operator %(DoubleArray lhs, ulong rhs)

Parameters

lhs DoubleArray
rhs ulong

Returns

DoubleArray

operator %(IndicatorBase, DoubleArray)

public static DoubleArray operator %(IndicatorBase lhs, DoubleArray rhs)

Parameters

lhs IndicatorBase
rhs DoubleArray

Returns

DoubleArray

operator %(byte, DoubleArray)

public static DoubleArray operator %(byte lhs, DoubleArray rhs)

Parameters

lhs byte
rhs DoubleArray

Returns

DoubleArray

operator %(decimal, DoubleArray)

public static DoubleArray operator %(decimal lhs, DoubleArray rhs)

Parameters

lhs decimal
rhs DoubleArray

Returns

DoubleArray

operator %(double, DoubleArray)

public static DoubleArray operator %(double lhs, DoubleArray rhs)

Parameters

lhs double
rhs DoubleArray

Returns

DoubleArray

operator %(short, DoubleArray)

public static DoubleArray operator %(short lhs, DoubleArray rhs)

Parameters

lhs short
rhs DoubleArray

Returns

DoubleArray

operator %(int, DoubleArray)

public static DoubleArray operator %(int lhs, DoubleArray rhs)

Parameters

lhs int
rhs DoubleArray

Returns

DoubleArray

operator %(long, DoubleArray)

public static DoubleArray operator %(long lhs, DoubleArray rhs)

Parameters

lhs long
rhs DoubleArray

Returns

DoubleArray

operator %(sbyte, DoubleArray)

public static DoubleArray operator %(sbyte lhs, DoubleArray rhs)

Parameters

lhs sbyte
rhs DoubleArray

Returns

DoubleArray

operator %(float, DoubleArray)

public static DoubleArray operator %(float lhs, DoubleArray rhs)

Parameters

lhs float
rhs DoubleArray

Returns

DoubleArray

operator %(ushort, DoubleArray)

public static DoubleArray operator %(ushort lhs, DoubleArray rhs)

Parameters

lhs ushort
rhs DoubleArray

Returns

DoubleArray

operator %(uint, DoubleArray)

public static DoubleArray operator %(uint lhs, DoubleArray rhs)

Parameters

lhs uint
rhs DoubleArray

Returns

DoubleArray

operator %(ulong, DoubleArray)

public static DoubleArray operator %(ulong lhs, DoubleArray rhs)

Parameters

lhs ulong
rhs DoubleArray

Returns

DoubleArray

operator *(DoubleArray, DoubleArray)

public static DoubleArray operator *(DoubleArray lhs, DoubleArray rhs)

Parameters

lhs DoubleArray
rhs DoubleArray

Returns

DoubleArray

operator *(DoubleArray, IndicatorBase)

public static DoubleArray operator *(DoubleArray lhs, IndicatorBase rhs)

Parameters

lhs DoubleArray
rhs IndicatorBase

Returns

DoubleArray

operator *(DoubleArray, byte)

public static DoubleArray operator *(DoubleArray lhs, byte rhs)

Parameters

lhs DoubleArray
rhs byte

Returns

DoubleArray

operator *(DoubleArray, decimal)

public static DoubleArray operator *(DoubleArray lhs, decimal rhs)

Parameters

lhs DoubleArray
rhs decimal

Returns

DoubleArray

operator *(DoubleArray, double)

public static DoubleArray operator *(DoubleArray lhs, double rhs)

Parameters

lhs DoubleArray
rhs double

Returns

DoubleArray

operator *(DoubleArray, short)

public static DoubleArray operator *(DoubleArray lhs, short rhs)

Parameters

lhs DoubleArray
rhs short

Returns

DoubleArray

operator *(DoubleArray, int)

public static DoubleArray operator *(DoubleArray lhs, int rhs)

Parameters

lhs DoubleArray
rhs int

Returns

DoubleArray

operator *(DoubleArray, long)

public static DoubleArray operator *(DoubleArray lhs, long rhs)

Parameters

lhs DoubleArray
rhs long

Returns

DoubleArray

operator *(DoubleArray, sbyte)

public static DoubleArray operator *(DoubleArray lhs, sbyte rhs)

Parameters

lhs DoubleArray
rhs sbyte

Returns

DoubleArray

operator *(DoubleArray, float)

public static DoubleArray operator *(DoubleArray lhs, float rhs)

Parameters

lhs DoubleArray
rhs float

Returns

DoubleArray

operator *(DoubleArray, ushort)

public static DoubleArray operator *(DoubleArray lhs, ushort rhs)

Parameters

lhs DoubleArray
rhs ushort

Returns

DoubleArray

operator *(DoubleArray, uint)

public static DoubleArray operator *(DoubleArray lhs, uint rhs)

Parameters

lhs DoubleArray
rhs uint

Returns

DoubleArray

operator *(DoubleArray, ulong)

public static DoubleArray operator *(DoubleArray lhs, ulong rhs)

Parameters

lhs DoubleArray
rhs ulong

Returns

DoubleArray

operator *(IndicatorBase, DoubleArray)

public static DoubleArray operator *(IndicatorBase lhs, DoubleArray rhs)

Parameters

lhs IndicatorBase
rhs DoubleArray

Returns

DoubleArray

operator *(byte, DoubleArray)

public static DoubleArray operator *(byte lhs, DoubleArray rhs)

Parameters

lhs byte
rhs DoubleArray

Returns

DoubleArray

operator *(decimal, DoubleArray)

public static DoubleArray operator *(decimal lhs, DoubleArray rhs)

Parameters

lhs decimal
rhs DoubleArray

Returns

DoubleArray

operator *(double, DoubleArray)

public static DoubleArray operator *(double lhs, DoubleArray rhs)

Parameters

lhs double
rhs DoubleArray

Returns

DoubleArray

operator *(short, DoubleArray)

public static DoubleArray operator *(short lhs, DoubleArray rhs)

Parameters

lhs short
rhs DoubleArray

Returns

DoubleArray

operator *(int, DoubleArray)

public static DoubleArray operator *(int lhs, DoubleArray rhs)

Parameters

lhs int
rhs DoubleArray

Returns

DoubleArray

operator *(long, DoubleArray)

public static DoubleArray operator *(long lhs, DoubleArray rhs)

Parameters

lhs long
rhs DoubleArray

Returns

DoubleArray

operator *(sbyte, DoubleArray)

public static DoubleArray operator *(sbyte lhs, DoubleArray rhs)

Parameters

lhs sbyte
rhs DoubleArray

Returns

DoubleArray

operator *(float, DoubleArray)

public static DoubleArray operator *(float lhs, DoubleArray rhs)

Parameters

lhs float
rhs DoubleArray

Returns

DoubleArray

operator *(ushort, DoubleArray)

public static DoubleArray operator *(ushort lhs, DoubleArray rhs)

Parameters

lhs ushort
rhs DoubleArray

Returns

DoubleArray

operator *(uint, DoubleArray)

public static DoubleArray operator *(uint lhs, DoubleArray rhs)

Parameters

lhs uint
rhs DoubleArray

Returns

DoubleArray

operator *(ulong, DoubleArray)

public static DoubleArray operator *(ulong lhs, DoubleArray rhs)

Parameters

lhs ulong
rhs DoubleArray

Returns

DoubleArray

operator -(DoubleArray, DoubleArray)

public static DoubleArray operator -(DoubleArray lhs, DoubleArray rhs)

Parameters

lhs DoubleArray
rhs DoubleArray

Returns

DoubleArray

operator -(DoubleArray, IndicatorBase)

public static DoubleArray operator -(DoubleArray lhs, IndicatorBase rhs)

Parameters

lhs DoubleArray
rhs IndicatorBase

Returns

DoubleArray

operator -(DoubleArray, byte)

public static DoubleArray operator -(DoubleArray lhs, byte rhs)

Parameters

lhs DoubleArray
rhs byte

Returns

DoubleArray

operator -(DoubleArray, decimal)

public static DoubleArray operator -(DoubleArray lhs, decimal rhs)

Parameters

lhs DoubleArray
rhs decimal

Returns

DoubleArray

operator -(DoubleArray, double)

public static DoubleArray operator -(DoubleArray lhs, double rhs)

Parameters

lhs DoubleArray
rhs double

Returns

DoubleArray

operator -(DoubleArray, short)

public static DoubleArray operator -(DoubleArray lhs, short rhs)

Parameters

lhs DoubleArray
rhs short

Returns

DoubleArray

operator -(DoubleArray, int)

public static DoubleArray operator -(DoubleArray lhs, int rhs)

Parameters

lhs DoubleArray
rhs int

Returns

DoubleArray

operator -(DoubleArray, long)

public static DoubleArray operator -(DoubleArray lhs, long rhs)

Parameters

lhs DoubleArray
rhs long

Returns

DoubleArray

operator -(DoubleArray, sbyte)

public static DoubleArray operator -(DoubleArray lhs, sbyte rhs)

Parameters

lhs DoubleArray
rhs sbyte

Returns

DoubleArray

operator -(DoubleArray, float)

public static DoubleArray operator -(DoubleArray lhs, float rhs)

Parameters

lhs DoubleArray
rhs float

Returns

DoubleArray

operator -(DoubleArray, ushort)

public static DoubleArray operator -(DoubleArray lhs, ushort rhs)

Parameters

lhs DoubleArray
rhs ushort

Returns

DoubleArray

operator -(DoubleArray, uint)

public static DoubleArray operator -(DoubleArray lhs, uint rhs)

Parameters

lhs DoubleArray
rhs uint

Returns

DoubleArray

operator -(DoubleArray, ulong)

public static DoubleArray operator -(DoubleArray lhs, ulong rhs)

Parameters

lhs DoubleArray
rhs ulong

Returns

DoubleArray

operator -(IndicatorBase, DoubleArray)

public static DoubleArray operator -(IndicatorBase lhs, DoubleArray rhs)

Parameters

lhs IndicatorBase
rhs DoubleArray

Returns

DoubleArray

operator -(byte, DoubleArray)

public static DoubleArray operator -(byte lhs, DoubleArray rhs)

Parameters

lhs byte
rhs DoubleArray

Returns

DoubleArray

operator -(decimal, DoubleArray)

public static DoubleArray operator -(decimal lhs, DoubleArray rhs)

Parameters

lhs decimal
rhs DoubleArray

Returns

DoubleArray

operator -(double, DoubleArray)

public static DoubleArray operator -(double lhs, DoubleArray rhs)

Parameters

lhs double
rhs DoubleArray

Returns

DoubleArray

operator -(short, DoubleArray)

public static DoubleArray operator -(short lhs, DoubleArray rhs)

Parameters

lhs short
rhs DoubleArray

Returns

DoubleArray

operator -(int, DoubleArray)

public static DoubleArray operator -(int lhs, DoubleArray rhs)

Parameters

lhs int
rhs DoubleArray

Returns

DoubleArray

operator -(long, DoubleArray)

public static DoubleArray operator -(long lhs, DoubleArray rhs)

Parameters

lhs long
rhs DoubleArray

Returns

DoubleArray

operator -(sbyte, DoubleArray)

public static DoubleArray operator -(sbyte lhs, DoubleArray rhs)

Parameters

lhs sbyte
rhs DoubleArray

Returns

DoubleArray

operator -(float, DoubleArray)

public static DoubleArray operator -(float lhs, DoubleArray rhs)

Parameters

lhs float
rhs DoubleArray

Returns

DoubleArray

operator -(ushort, DoubleArray)

public static DoubleArray operator -(ushort lhs, DoubleArray rhs)

Parameters

lhs ushort
rhs DoubleArray

Returns

DoubleArray

operator -(uint, DoubleArray)

public static DoubleArray operator -(uint lhs, DoubleArray rhs)

Parameters

lhs uint
rhs DoubleArray

Returns

DoubleArray

operator -(ulong, DoubleArray)

public static DoubleArray operator -(ulong lhs, DoubleArray rhs)

Parameters

lhs ulong
rhs DoubleArray

Returns

DoubleArray