Browse Source

Changed TensorProduct name to OuterProduct.

la-knuth
Jurgen Van Gael 16 years ago
committed by Marcus Cuda
parent
commit
96028daee3
  1. 4
      src/Numerics/LinearAlgebra/Complex/DenseVector.cs
  2. 4
      src/Numerics/LinearAlgebra/Complex/SparseVector.cs
  3. 4
      src/Numerics/LinearAlgebra/Complex32/DenseVector.cs
  4. 4
      src/Numerics/LinearAlgebra/Complex32/SparseVector.cs
  5. 4
      src/Numerics/LinearAlgebra/Double/DenseVector.cs
  6. 4
      src/Numerics/LinearAlgebra/Double/SparseVector.cs
  7. 4
      src/Numerics/LinearAlgebra/Generic/Vector.cs
  8. 4
      src/Numerics/LinearAlgebra/Single/DenseVector.cs
  9. 4
      src/Numerics/LinearAlgebra/Single/SparseVector.cs
  10. 4
      src/UnitTests/LinearAlgebraTests/Complex/VectorTests.Arithmetic.cs
  11. 4
      src/UnitTests/LinearAlgebraTests/Complex32/VectorTests.Arithmetic.cs
  12. 4
      src/UnitTests/LinearAlgebraTests/Double/VectorTests.Arithmetic.cs
  13. 4
      src/UnitTests/LinearAlgebraTests/Single/VectorTests.Arithmetic.cs

4
src/Numerics/LinearAlgebra/Complex/DenseVector.cs

@ -1154,14 +1154,14 @@ namespace MathNet.Numerics.LinearAlgebra.Complex
}
/// <summary>
/// Tensor Product (Dyadic) of this and another vector.
/// Outer product of this and another vector.
/// </summary>
/// <param name="v">The vector to operate on.</param>
/// <returns>
/// Matrix M[i,j] = this[i] * v[j].
/// </returns>
/// <seealso cref="OuterProduct"/>
public Matrix<Complex> TensorMultiply(DenseVector v)
public Matrix<Complex> OuterProduct(DenseVector v)
{
return OuterProduct(this, v);
}

4
src/Numerics/LinearAlgebra/Complex/SparseVector.cs

@ -1206,14 +1206,14 @@ namespace MathNet.Numerics.LinearAlgebra.Complex
}
/// <summary>
/// Tensor Product (Outer) of this and another vector.
/// Outer product of this and another vector.
/// </summary>
/// <param name="v">The vector to operate on.</param>
/// <returns>
/// Matrix M[i,j] = this[i] * v[j].
/// </returns>
/// <seealso cref="OuterProduct"/>
public Matrix<Complex> TensorMultiply(SparseVector v)
public Matrix<Complex> OuterProduct(SparseVector v)
{
return OuterProduct(this, v);
}

4
src/Numerics/LinearAlgebra/Complex32/DenseVector.cs

@ -1154,14 +1154,14 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32
}
/// <summary>
/// Tensor Product (Dyadic) of this and another vector.
/// Outer product of this and another vector.
/// </summary>
/// <param name="v">The vector to operate on.</param>
/// <returns>
/// Matrix M[i,j] = this[i] * v[j].
/// </returns>
/// <seealso cref="OuterProduct"/>
public Matrix<Complex32> TensorMultiply(DenseVector v)
public Matrix<Complex32> OuterProduct(DenseVector v)
{
return OuterProduct(this, v);
}

4
src/Numerics/LinearAlgebra/Complex32/SparseVector.cs

@ -1206,14 +1206,14 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32
}
/// <summary>
/// Tensor Product (Outer) of this and another vector.
/// Outer product of this and another vector.
/// </summary>
/// <param name="v">The vector to operate on.</param>
/// <returns>
/// Matrix M[i,j] = this[i] * v[j].
/// </returns>
/// <seealso cref="OuterProduct"/>
public Matrix<Complex32> TensorMultiply(SparseVector v)
public Matrix<Complex32> OuterProduct(SparseVector v)
{
return OuterProduct(this, v);
}

4
src/Numerics/LinearAlgebra/Double/DenseVector.cs

@ -1246,14 +1246,14 @@ namespace MathNet.Numerics.LinearAlgebra.Double
}
/// <summary>
/// Tensor Product (Dyadic) of this and another vector.
/// Outer product of this and another vector.
/// </summary>
/// <param name="v">The vector to operate on.</param>
/// <returns>
/// Matrix M[i,j] = this[i] * v[j].
/// </returns>
/// <seealso cref="OuterProduct"/>
public Matrix<double> TensorMultiply(DenseVector v)
public Matrix<double> OuterProduct(DenseVector v)
{
return OuterProduct(this, v);
}

4
src/Numerics/LinearAlgebra/Double/SparseVector.cs

@ -1205,14 +1205,14 @@ namespace MathNet.Numerics.LinearAlgebra.Double
}
/// <summary>
/// Tensor Product (Outer) of this and another vector.
/// Outer product of this and another vector.
/// </summary>
/// <param name="v">The vector to operate on.</param>
/// <returns>
/// Matrix M[i,j] = this[i] * v[j].
/// </returns>
/// <seealso cref="OuterProduct"/>
public Matrix<double> TensorMultiply(SparseVector v)
public Matrix<double> OuterProduct(SparseVector v)
{
return OuterProduct(this, v);
}

4
src/Numerics/LinearAlgebra/Generic/Vector.cs

@ -753,14 +753,14 @@ namespace MathNet.Numerics.LinearAlgebra.Generic
public abstract Vector<T> Random(int length, IDiscreteDistribution randomDistribution);
/// <summary>
/// Tensor Product (Dyadic) of this and another vector.
/// Outer product of this and another vector.
/// </summary>
/// <param name="v">The vector to operate on.</param>
/// <returns>
/// Matrix M[i,j] = this[i] * v[j].
/// </returns>
/// <seealso cref="OuterProduct"/>
public Matrix<T> TensorMultiply(Vector<T> v)
public Matrix<T> OuterProduct(Vector<T> v)
{
return OuterProduct(this, v);
}

4
src/Numerics/LinearAlgebra/Single/DenseVector.cs

@ -1246,14 +1246,14 @@ namespace MathNet.Numerics.LinearAlgebra.Single
}
/// <summary>
/// Tensor Product (Dyadic) of this and another vector.
/// Outer product of this and another vector.
/// </summary>
/// <param name="v">The vector to operate on.</param>
/// <returns>
/// Matrix M[i,j] = this[i] * v[j].
/// </returns>
/// <seealso cref="OuterProduct"/>
public Matrix<float> TensorMultiply(DenseVector v)
public Matrix<float> OuterProduct(DenseVector v)
{
return OuterProduct(this, v);
}

4
src/Numerics/LinearAlgebra/Single/SparseVector.cs

@ -1205,14 +1205,14 @@ namespace MathNet.Numerics.LinearAlgebra.Single
}
/// <summary>
/// Tensor Product (Outer) of this and another vector.
/// Outer product of this and another vector.
/// </summary>
/// <param name="v">The vector to operate on.</param>
/// <returns>
/// Matrix M[i,j] = this[i] * v[j].
/// </returns>
/// <seealso cref="OuterProduct"/>
public Matrix<float> TensorMultiply(SparseVector v)
public Matrix<float> OuterProduct(SparseVector v)
{
return OuterProduct(this, v);
}

4
src/UnitTests/LinearAlgebraTests/Complex/VectorTests.Arithmetic.cs

@ -880,7 +880,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex
{
var vector1 = CreateVector(Data);
var vector2 = CreateVector(Data);
var m = vector1.TensorMultiply(vector2);
var m = vector1.OuterProduct(vector2);
for (var i = 0; i < vector1.Count; i++)
{
for (var j = 0; j < vector2.Count; j++)
@ -896,7 +896,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex
{
var vector1 = CreateVector(Data);
Vector<Complex> vector2 = null;
vector1.TensorMultiply(vector2);
vector1.OuterProduct(vector2);
}
}
}

4
src/UnitTests/LinearAlgebraTests/Complex32/VectorTests.Arithmetic.cs

@ -880,7 +880,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex32
{
var vector1 = CreateVector(Data);
var vector2 = CreateVector(Data);
var m = vector1.TensorMultiply(vector2);
var m = vector1.OuterProduct(vector2);
for (var i = 0; i < vector1.Count; i++)
{
for (var j = 0; j < vector2.Count; j++)
@ -896,7 +896,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex32
{
var vector1 = CreateVector(Data);
Vector<Complex32> vector2 = null;
vector1.TensorMultiply(vector2);
vector1.OuterProduct(vector2);
}
}
}

4
src/UnitTests/LinearAlgebraTests/Double/VectorTests.Arithmetic.cs

@ -880,7 +880,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Double
{
var vector1 = CreateVector(Data);
var vector2 = CreateVector(Data);
var m = vector1.TensorMultiply(vector2);
var m = vector1.OuterProduct(vector2);
for (var i = 0; i < vector1.Count; i++)
{
for (var j = 0; j < vector2.Count; j++)
@ -896,7 +896,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Double
{
var vector1 = CreateVector(Data);
Vector<double> vector2 = null;
vector1.TensorMultiply(vector2);
vector1.OuterProduct(vector2);
}
}
}

4
src/UnitTests/LinearAlgebraTests/Single/VectorTests.Arithmetic.cs

@ -879,7 +879,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Single
{
var vector1 = CreateVector(Data);
var vector2 = CreateVector(Data);
var m = vector1.TensorMultiply(vector2);
var m = vector1.OuterProduct(vector2);
for (var i = 0; i < vector1.Count; i++)
{
for (var j = 0; j < vector2.Count; j++)
@ -895,7 +895,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Single
{
var vector1 = CreateVector(Data);
Vector<float> vector2 = null;
vector1.TensorMultiply(vector2);
vector1.OuterProduct(vector2);
}
}
}
Loading…
Cancel
Save