CLA3P v0.3.1
Compact Linear Algebra Parallel Portable Package
Loading...
Searching...
No Matches
cla3p::Meta2D< T_Int > Class Template Reference

Two-dimensional metadata container. More...

Inheritance diagram for cla3p::Meta2D< T_Int >:

Public Member Functions

virtual T_Int nrows () const
 Number of rows.
virtual T_Int ncols () const
 Number of columns.
bool empty () const
 Tests whether the object has zero dimensions.
 operator bool () const
 Boolean conversion operator.

Detailed Description

template<typename T_Int>
class cla3p::Meta2D< T_Int >

Two-dimensional metadata container.

Template Parameters
T_IntInteger type for storing dimension values.

Provides storage and accessors for matrix dimensions (rows and columns). This class serves as a base for dimension metadata in dense matrix structures.

Member Function Documentation

◆ nrows()

template<typename T_Int>
virtual T_Int cla3p::Meta2D< T_Int >::nrows ( ) const
inlinevirtual

Number of rows.

Returns the number of rows stored in (*this).

Returns
The row dimension.

Reimplemented in cla3p::lra::XxMatrix< T_Matrix >, cla3p::lra::XxMatrix< dns::CdMatrix >, cla3p::lra::XxMatrix< dns::CfMatrix >, cla3p::lra::XxMatrix< dns::RdMatrix >, and cla3p::lra::XxMatrix< dns::RfMatrix >.

◆ ncols()

template<typename T_Int>
virtual T_Int cla3p::Meta2D< T_Int >::ncols ( ) const
inlinevirtual

Number of columns.

Returns the number of columns stored in (*this).

Returns
The column dimension.

Reimplemented in cla3p::lra::XxMatrix< T_Matrix >, cla3p::lra::XxMatrix< dns::CdMatrix >, cla3p::lra::XxMatrix< dns::CfMatrix >, cla3p::lra::XxMatrix< dns::RdMatrix >, and cla3p::lra::XxMatrix< dns::RfMatrix >.

◆ empty()

template<typename T_Int>
bool cla3p::Meta2D< T_Int >::empty ( ) const
inline

Tests whether the object has zero dimensions.

Returns true if either dimension is zero.

Returns
true if the object is empty, false otherwise.

◆ operator bool()

template<typename T_Int>
cla3p::Meta2D< T_Int >::operator bool ( ) const
inlineexplicit

Boolean conversion operator.

Enables implicit conversion to bool; returns true if object has non-zero dimensions.

Returns
true if the object is not empty, false otherwise.