Skip to content

Commit 1722825

Browse files
committed
fixed cpplint and test names
1 parent aa77ead commit 1722825

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

stan/math/opencl/kernel_generator/cast.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class cast_ : public operation_cl<cast_<Scal, T>, Scal, T> {
3939
* Constructor
4040
* @param args argument expression(s)
4141
*/
42-
cast_(T&& arg) : base(std::forward<T>(arg)) {}
42+
explicit cast_(T&& arg) : base(std::forward<T>(arg)) {}
4343

4444
/**
4545
* Generates kernel code for this expression.

test/unit/math/opencl/kernel_generator/cast_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ TEST(KernelGenerator, cast_test) {
3535
EXPECT_MATRIX_NEAR(res, correct, 1e-9);
3636
}
3737

38-
TEST(KernelGenerator, multiple_operations) {
38+
TEST(KernelGenerator, cast_multiple_operations) {
3939
using stan::math::cast;
4040
MatrixXd m1(2, 3);
4141
m1 << 1, 2.5, 3.4, 4.7, 5.9, 6.3;
@@ -50,7 +50,7 @@ TEST(KernelGenerator, multiple_operations) {
5050
EXPECT_MATRIX_NEAR(res, correct, 1e-9);
5151
}
5252

53-
TEST(KernelGenerator, multiple_operations_lvalue) {
53+
TEST(KernelGenerator, cast_multiple_operations_lvalue) {
5454
using stan::math::cast;
5555
MatrixXd m1(2, 3);
5656
m1 << 1, 2.5, 3.4, 4.7, 5.9, 6.3;

0 commit comments

Comments
 (0)