Skip to content

Commit 26f03e5

Browse files
committed
[NeoMathEngine] SubVectorFromMatrixColumnsTest
Signed-off-by: Kirill Golikov <[email protected]>
1 parent 74fc6e7 commit 26f03e5

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

NeoMathEngine/test/src/learn/SubVectorFromMatrixColumnsTest.cpp

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright © 2017-2020 ABBYY Production LLC
1+
/* Copyright © 2017-2023 ABBYY
22
33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.
@@ -31,10 +31,10 @@ static void subVectorFromMatrixColumnsTestImpl( const CTestParams& params, int s
3131

3232
CREATE_FILL_FLOAT_ARRAY( getMatrix, valuesInterval.Begin, valuesInterval.End, height * width, random )
3333
CREATE_FILL_FLOAT_ARRAY( vector, valuesInterval.Begin, valuesInterval.End, height, random )
34-
std::vector<float> expectedMatrix;
35-
expectedMatrix = getMatrix;
34+
std::vector<float> expectedMatrix = getMatrix; // copy vector
3635

37-
MathEngine().SubVectorFromMatrixColumns( CARRAY_FLOAT_WRAPPER( expectedMatrix ), CARRAY_FLOAT_WRAPPER( getMatrix ), height, width, CARRAY_FLOAT_WRAPPER( vector ) );
36+
MathEngine().SubVectorFromMatrixColumns( CARRAY_FLOAT_WRAPPER( expectedMatrix ),
37+
CARRAY_FLOAT_WRAPPER( getMatrix ), height, width, CARRAY_FLOAT_WRAPPER( vector ) );
3838

3939
for( int h = 0; h < height; ++h ) {
4040
for( int w = 0; w < width; ++w ) {
@@ -47,7 +47,6 @@ static void subVectorFromMatrixColumnsTestImpl( const CTestParams& params, int s
4747
}
4848
}
4949

50-
5150
//---------------------------------------------------------------------------------------------------------------------
5251

5352
class CSubVectorFromMatrixColumnsTest : public CTestFixtureWithParams {
@@ -58,19 +57,13 @@ INSTANTIATE_TEST_CASE_P( CSubVectorFromMatrixColumnsTestInstantiation, CSubVecto
5857
CTestParams(
5958
"Height = (1..50);"
6059
"Width = (1..50);"
61-
"BatchSize = (1..5);"
62-
"VectorSize = (1..20);"
6360
"Values = (-1..1);"
64-
"Channels = (1..5);"
6561
"TestCount = 100;"
6662
),
6763
CTestParams(
6864
"Height = (100..500);"
6965
"Width = (100..500);"
70-
"BatchSize = (1..5);"
71-
"VectorSize = (30..50);"
7266
"Values = (-1..1);"
73-
"Channels = (1..5);"
7467
"TestCount = 5;"
7568
)
7669
)

0 commit comments

Comments
 (0)