Skip to content

Commit

Permalink
Remove interface
Browse files Browse the repository at this point in the history
- Remove the need for IHadamardProductOperation to avoid confusion
  • Loading branch information
HamletTanyavong committed Nov 26, 2023
1 parent aa00a6f commit 0a3f10c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion src/Mathematics.NET/LinearAlgebra/Abstractions/IVector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public interface IVector<T, U>
: IOneDimensionalArrayRepresentable<T, U>,
IAdditionOperation<T, T>,
ISubtractionOperation<T, T>,
IHadamardProductOperation<T, T>,
IInnerProductOperation<T, U>
where T : IVector<T, U>
where U : IComplex<U>
Expand Down
3 changes: 0 additions & 3 deletions src/Mathematics.NET/LinearAlgebra/Vector2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ private static void SetElementUnsafe(ref Vector2<T> vector, int index, T value)
public static Vector2<T> operator -(Vector2<T> left, Vector2<T> right)
=> new(left.X1 - right.X1, left.X2 - right.X2);

public static Vector2<T> operator *(Vector2<T> left, Vector2<T> right)
=> new(left.X1 * right.X1, left.X2 * right.X2);

//
// Equality
//
Expand Down
8 changes: 0 additions & 8 deletions src/Mathematics.NET/LinearAlgebra/Vector3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,6 @@ private static void SetElementUnsafe(ref Vector3<T> vector, int index, T value)
left.X3 - right.X3);
}

public static Vector3<T> operator *(Vector3<T> left, Vector3<T> right)
{
return new(
left.X1 * right.X1,
left.X2 * right.X2,
left.X3 * right.X3);
}

//
// Equality
//
Expand Down
9 changes: 0 additions & 9 deletions src/Mathematics.NET/LinearAlgebra/Vector4.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,6 @@ private static void SetElementUnsafe(ref Vector4<T> vector, int index, T value)
left.X4 - right.X4);
}

public static Vector4<T> operator *(Vector4<T> left, Vector4<T> right)
{
return new(
left.X1 * right.X1,
left.X2 * right.X2,
left.X3 * right.X3,
left.X4 * right.X4);
}

//
// Equality
//
Expand Down

0 comments on commit 0a3f10c

Please sign in to comment.