/// <summary>
 /// Initializes a new instance of
 /// the <see cref="OnAllExtremumOperation" /> class.
 /// </summary>
 /// <param name="expected">The expected result.</param>
 /// <param name="data">The data operand.</param>
 /// <param name="dataWritableOps">The ops having writable data.</param>
 /// <param name="dataReadOnlyOps">The ops having read only data.</param>
 protected OnAllExtremumOperation(
     TExpected expected,
     TestableDoubleMatrix data,
     Func <DoubleMatrix, IndexValuePair>[]
     dataWritableOps,
     Func <ReadOnlyDoubleMatrix, IndexValuePair>[]
     dataReadOnlyOps)
 {
     this.Expected        = expected;
     this.Data            = data;
     this.DataWritableOps = dataWritableOps;
     this.DataReadOnlyOps = dataReadOnlyOps;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TestableMatrixOperation" /> class.
 /// </summary>
 /// <param name="expected">The expected result.</param>
 /// <param name="operand">The operand.</param>
 /// <param name="operandWritableOps">The ops having writable operands.</param>
 /// <param name="operandReadOnlyOps">The ops having read only operands.</param>
 protected TestableDoubleMatrixOperation(
     TExpected expected,
     TestableDoubleMatrix operand,
     Func <DoubleMatrix, DoubleMatrix>[]
     operandWritableOps,
     Func <ReadOnlyDoubleMatrix, DoubleMatrix>[]
     operandReadOnlyOps)
 {
     this.Expected           = expected;
     this.Operand            = operand;
     this.OperandWritableOps = operandWritableOps;
     this.OperandReadOnlyOps = operandReadOnlyOps;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of
 /// the <see cref="NotAdjustableForBiasOnAllSummaryOperation" /> class.
 /// </summary>
 /// <param name="expected">The expected result.</param>
 /// <param name="data">The data operand.</param>
 /// <param name="dataWritableOps">The ops having writable data.</param>
 /// <param name="dataReadOnlyOps">The ops having read only data.</param>
 protected OnAllNotAdjustableForBiasSummaryOperation(
     TExpected expected,
     TestableDoubleMatrix data,
     Func <DoubleMatrix, double>[]
     dataWritableOps,
     Func <ReadOnlyDoubleMatrix, double>[]
     dataReadOnlyOps)
 {
     this.Expected        = expected;
     this.Data            = data;
     this.DataWritableOps = dataWritableOps;
     this.DataReadOnlyOps = dataReadOnlyOps;
 }
 /// <summary>
 /// Initializes a new instance of
 /// the <see cref="OnAllQuantileOperation" /> class.
 /// </summary>
 /// <param name="expected">The expected result.</param>
 /// <param name="data">The data operand.</param>
 /// <param name="probabilities">The probabilities.</param>
 /// <param name="dataWritableOps">The ops having writable data.</param>
 /// <param name="dataReadOnlyOps">The ops having read only data.</param>
 protected OnAllQuantileOperation(
     TExpected expected,
     TestableDoubleMatrix data,
     DoubleMatrix probabilities,
     Func <DoubleMatrix, DoubleMatrix, DoubleMatrix>[]
     dataWritableOps,
     Func <ReadOnlyDoubleMatrix, DoubleMatrix, DoubleMatrix>[]
     dataReadOnlyOps)
 {
     this.Expected        = expected;
     this.Data            = data;
     this.Probabilities   = probabilities;
     this.DataWritableOps = dataWritableOps;
     this.DataReadOnlyOps = dataReadOnlyOps;
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of
 /// the <see cref="AlongDimensionNotAdjustableForBiasSummaryOperation" /> class.
 /// </summary>
 /// <param name="expected">The expected result.</param>
 /// <param name="data">The data operand.</param>
 /// <param name="dataOperation">
 /// A value signaling if the operation must be executed
 /// on the rows or the columns of the <paramref name="data"/>
 /// operand.</param>
 /// <param name="dataWritableOps">The ops having writable data.</param>
 /// <param name="dataReadOnlyOps">The ops having read only data.</param>
 protected AlongDimensionNotAdjustableForBiasSummaryOperation(
     TExpected expected,
     TestableDoubleMatrix data,
     DataOperation dataOperation,
     Func <DoubleMatrix, DataOperation, DoubleMatrix>[]
     dataWritableOps,
     Func <ReadOnlyDoubleMatrix, DataOperation, DoubleMatrix>[]
     dataReadOnlyOps)
 {
     this.Expected        = expected;
     this.Data            = data;
     this.DataOperation   = dataOperation;
     this.DataWritableOps = dataWritableOps;
     this.DataReadOnlyOps = dataReadOnlyOps;
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of
 /// the <see cref="SortIndexOperation" /> class.
 /// </summary>
 /// <param name="expected">The expected result.</param>
 /// <param name="data">The data operand.</param>
 /// <param name="sortDirection">The sort direction.</param>
 protected SortIndexOperation(
     TExpected expected,
     TestableDoubleMatrix data,
     SortDirection sortDirection)
 {
     this.Expected        = expected;
     this.Data            = data;
     this.SortDirection   = sortDirection;
     this.DataWritableOps = new Func <DoubleMatrix, SortDirection, SortIndexResults>[1] {
         Stat.SortIndex
     };
     this.DataReadOnlyOps = new Func <ReadOnlyDoubleMatrix, SortDirection, SortIndexResults>[1] {
         Stat.SortIndex
     };
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TestableDoubleMatrixComplexScalarOperation" /> class.
 /// </summary>
 /// <param name="expected">The expected result.</param>
 /// <param name="left">The left operand.</param>
 /// <param name="right">The right operand.</param>
 /// <param name="leftWritableRightWritableOps">The left writable matrix, right double ops.</param>
 /// <param name="leftRightReadOnlyOps">The left read only matrix, right double ops.</param>
 protected TestableDoubleMatrixComplexScalarOperation(
     TExpected expected,
     TestableDoubleMatrix left,
     Complex right,
     Func <DoubleMatrix, Complex, ComplexMatrix>[]
     leftWritableRightScalarOps,
     Func <ReadOnlyDoubleMatrix, Complex, ComplexMatrix>[]
     leftReadOnlyRightScalarOps)
 {
     this.Expected = expected;
     this.Left     = left;
     this.Right    = right;
     this.LeftWritableRightScalarOps = leftWritableRightScalarOps;
     this.LeftReadOnlyRightScalarOps = leftReadOnlyRightScalarOps;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TestableDoubleScalarDoubleMatrixOperation" /> class.
 /// </summary>
 /// <param name="expected">The expected result.</param>
 /// <param name="left">The left operand.</param>
 /// <param name="right">The right operand.</param>
 /// <param name="leftWritableRightWritableOps">The left double, right writable matrix ops.</param>
 /// <param name="leftRightReadOnlyOps">The left double, right read only matrix ops.</param>
 protected TestableDoubleScalarDoubleMatrixOperation(
     TExpected expected,
     double left,
     TestableDoubleMatrix right,
     Func <double, DoubleMatrix, DoubleMatrix>[]
     leftScalarRightWritableOps,
     Func <double, ReadOnlyDoubleMatrix, DoubleMatrix>[]
     leftScalarRightReadOnlyOps)
 {
     this.Expected = expected;
     this.Left     = left;
     this.Right    = right;
     this.LeftScalarRightWritableOps = leftScalarRightWritableOps;
     this.LeftScalarRightReadOnlyOps = leftScalarRightReadOnlyOps;
 }
 /// <summary>
 /// Initializes a new instance of
 /// the <see cref="AlongDimensionExtremumOperation" /> class.
 /// </summary>
 /// <param name="expected">The expected result.</param>
 /// <param name="data">The data operand.</param>
 /// <param name="dataOperation">
 /// A value signaling if the operation must be executed
 /// on the rows or the columns of the <paramref name="data"/>
 /// operand.</param>
 /// <param name="dataWritableOps">The ops having writable data.</param>
 /// <param name="dataReadOnlyOps">The ops having read only data.</param>
 protected AlongDimensionExtremumOperation(
     TExpected expected,
     TestableDoubleMatrix data,
     DataOperation dataOperation,
     Func <DoubleMatrix, DataOperation, IndexValuePair[]>[]
     dataWritableOps,
     Func <ReadOnlyDoubleMatrix, DataOperation, IndexValuePair[]>[]
     dataReadOnlyOps)
 {
     this.Expected        = expected;
     this.Data            = data;
     this.DataOperation   = dataOperation;
     this.DataWritableOps = dataWritableOps;
     this.DataReadOnlyOps = dataReadOnlyOps;
 }
Пример #10
0
 /// <summary>
 /// Initializes a new instance of
 /// the <see cref="AlongDimensionQuantileOperation" /> class.
 /// </summary>
 /// <param name="expected">The expected result.</param>
 /// <param name="data">The data operand.</param>
 /// <param name="probabilities">The probabilities.</param>
 /// <param name="dataOperation">A value signaling if the operation must be executed
 /// on the rows or the columns of the <paramref name="data" />
 /// operand.</param>
 /// <param name="dataWritableOps">The ops having writable data.</param>
 /// <param name="dataReadOnlyOps">The ops having read only data.</param>
 protected AlongDimensionQuantileOperation(
     TExpected expected,
     TestableDoubleMatrix data,
     DoubleMatrix probabilities,
     DataOperation dataOperation,
     Func <DoubleMatrix, DoubleMatrix, DataOperation, DoubleMatrix[]>[]
     dataWritableOps,
     Func <ReadOnlyDoubleMatrix, DoubleMatrix, DataOperation, DoubleMatrix[]>[]
     dataReadOnlyOps)
 {
     this.Expected        = expected;
     this.Data            = data;
     this.Probabilities   = probabilities;
     this.DataOperation   = dataOperation;
     this.DataWritableOps = dataWritableOps;
     this.DataReadOnlyOps = dataReadOnlyOps;
 }
 /// <summary>
 /// Initializes a new instance of
 /// the <see cref="TestableComplexMatrixDoubleMatrixOperation" /> class.
 /// </summary>
 /// <param name="expected">The expected result.</param>
 /// <param name="left">The left operand.</param>
 /// <param name="right">The right operand.</param>
 /// <param name="leftWritableRightWritableOps">The left writable, right writable ops.</param>
 /// <param name="leftReadOnlyRightWritableOps">The left read only, right writable ops.</param>
 /// <param name="leftWritableRightReadOnlyOps">The left writable, right read only ops.</param>
 /// <param name="leftReadOnlyRightReadOnlyOps">The left read only, right read only ops.</param>
 protected TestableComplexMatrixDoubleMatrixOperation(
     TExpected expected,
     TestableComplexMatrix left,
     TestableDoubleMatrix right,
     Func <ComplexMatrix, DoubleMatrix, ComplexMatrix>[]
     leftWritableRightWritableOps,
     Func <ReadOnlyComplexMatrix, DoubleMatrix, ComplexMatrix>[]
     leftReadOnlyRightWritableOps,
     Func <ComplexMatrix, ReadOnlyDoubleMatrix, ComplexMatrix>[]
     leftWritableRightReadOnlyOps,
     Func <ReadOnlyComplexMatrix, ReadOnlyDoubleMatrix, ComplexMatrix>[]
     leftReadOnlyRightReadOnlyOps)
 {
     this.Expected = expected;
     this.Left     = left;
     this.Right    = right;
     this.LeftWritableRightWritableOps = leftWritableRightWritableOps;
     this.LeftReadOnlyRightWritableOps = leftReadOnlyRightWritableOps;
     this.LeftWritableRightReadOnlyOps = leftWritableRightReadOnlyOps;
     this.LeftReadOnlyRightReadOnlyOps = leftReadOnlyRightReadOnlyOps;
 }