Skip to content

Commit

Permalink
Update to version numbers for release of faster cached randoms
Browse files Browse the repository at this point in the history
  • Loading branch information
Drawaes committed May 23, 2024
1 parent 9eb0b03 commit a272c31
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/Qwack.Math.Tests/Random/ConstantRandomFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class ConstantRandomFacts
[Fact]
public void TestBlockGeneration()
{
var block = new PathBlock(64, 1, 10, 0);
var block = new PathBlock(64, 1, 10, 0, 0);
var retVal = 0.5;
var gen = new Constant(retVal);
var fetCollection = new FeatureCollection();
Expand Down
4 changes: 3 additions & 1 deletion test/Qwack.Math.Tests/Random/SobolFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void SmallDimsWorks()
[Fact]
public void TestBlockGeneration()
{
var block = new PathBlock(512, 1, 50, 0);
var block = new PathBlock(512, 1, 50, 0, 0);
var gen = new SobolPathGenerator(new SobolDirectionNumbers(s_directionNumbers), 0);
var fetCollection = new FeatureCollection();
var engine = new FakeEngine();
Expand Down Expand Up @@ -99,6 +99,8 @@ public class FakeEngine : IEngineFeature, ITimeStepsFeature, IPathMappingFeature

public int RoundedNumberOfPaths => throw new NotImplementedException();

public bool CompactMemoryMode => throw new NotImplementedException();

public void AddDate(DateTime date) => throw new NotImplementedException();

public void AddDates(IEnumerable<DateTime> dates) => throw new NotImplementedException();
Expand Down
2 changes: 1 addition & 1 deletion test/Qwack.MonteCarlo.Test/Payoffs/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static Mock<IFeatureCollection> GetFeatureCollection()

public static IPathBlock GetBlock(int nSteps)
{
var b = new PathBlock(_nPaths, 2, nSteps, 0);
var b = new PathBlock(_nPaths, 2, nSteps, 0, 0);

for (var i = 0; i < _nPaths; i += Vector<double>.Count)
{
Expand Down

0 comments on commit a272c31

Please sign in to comment.