Loading...
Searching...
No Matches
gpr::linalg::schemeii::Operand Class Reference

#include <gpr/linalg/schemeii/SchemeII.h>

Classes

struct  Data

Public Member Functions

 Operand ()
 Operand (Operand &&) noexcept
Operand & operator= (Operand &&) noexcept
 ~Operand ()
std::int64_t extent () const noexcept
std::int64_t depth () const noexcept
const std::vector< int > & exponents () const noexcept
std::size_t bytes () const noexcept

Friends

class Context

Detailed Description

Scaled residues of op(A) (row operand, m x k) or op(B) (column operand, k x n) for every modulus of a plan.

Definition at line 118 of file SchemeII.h.

Constructor & Destructor Documentation

◆ Operand() [1/2]

gpr::linalg::schemeii::Operand::Operand ( )
default

◆ Operand() [2/2]

gpr::linalg::schemeii::Operand::Operand ( Operand && )
defaultnoexcept

◆ ~Operand()

gpr::linalg::schemeii::Operand::~Operand ( )
default

Member Function Documentation

◆ bytes()

std::size_t gpr::linalg::schemeii::Operand::bytes ( ) const
nodiscardnoexcept

Definition at line 1033 of file SchemeII.cpp.

1034{
1035 return data_ ? (data_->f64.size() + data_->values.size()) * sizeof(double) +
1036 data_->i8.size()
1037 : 0;
1038}

◆ depth()

std::int64_t gpr::linalg::schemeii::Operand::depth ( ) const
nodiscardnoexcept

Definition at line 1024 of file SchemeII.cpp.

1025{
1026 return data_ ? data_->depth : 0;
1027}

◆ exponents()

const std::vector< int > & gpr::linalg::schemeii::Operand::exponents ( ) const
nodiscardnoexcept

Definition at line 1028 of file SchemeII.cpp.

1029{
1030 static const std::vector<int> none;
1031 return data_ ? data_->exponents : none;
1032}

◆ extent()

std::int64_t gpr::linalg::schemeii::Operand::extent ( ) const
nodiscardnoexcept

Definition at line 1020 of file SchemeII.cpp.

1021{
1022 return data_ ? data_->extent : 0;
1023}

◆ operator=()

Operand & gpr::linalg::schemeii::Operand::operator= ( Operand && )
defaultnoexcept

◆ Context

friend class Context
friend

Definition at line 132 of file SchemeII.h.


The documentation for this class was generated from the following files: