SetScalar

Function Usage

Sets a shape to a scalar.

Prototype

1
void SetScalar()

Parameters

None

Returns

None

Constraints

None

Examples

1
2
3
4
Shape shape0({3, 256, 256});
shape0.IsScalar(); // false
shape0.SetScalar();
shape0.IsScalar(); // true