-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#641 - Use SIMD instructions for Vector/Matrix calculations.
- Loading branch information
Showing
8 changed files
with
315 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (c) Dmytro Kyshchenko. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace xFunc.Maths.Results; | ||
|
||
/// <summary> | ||
/// Represents the matrix result. | ||
/// </summary> | ||
public class MatrixValueResult : IResult | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="MatrixValueResult"/> class. | ||
/// </summary> | ||
/// <param name="value">The representation of result.</param> | ||
public MatrixValueResult(MatrixValue value) => Result = value; | ||
|
||
/// <inheritdoc /> | ||
public override string ToString() => Result.ToString(); | ||
|
||
/// <inheritdoc cref="IResult.Result" /> | ||
public MatrixValue Result { get; } | ||
|
||
/// <inheritdoc /> | ||
object IResult.Result => Result; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (c) Dmytro Kyshchenko. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace xFunc.Maths.Results; | ||
|
||
/// <summary> | ||
/// Represents the vector result. | ||
/// </summary> | ||
public class VectorValueResult : IResult | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="VectorValueResult"/> class. | ||
/// </summary> | ||
/// <param name="value">The representation of result.</param> | ||
public VectorValueResult(VectorValue value) => Result = value; | ||
|
||
/// <inheritdoc /> | ||
public override string ToString() => Result.ToString(); | ||
|
||
/// <inheritdoc cref="IResult.Result" /> | ||
public VectorValue Result { get; } | ||
|
||
/// <inheritdoc /> | ||
object IResult.Result => Result; | ||
} |
Oops, something went wrong.