Nektar++
Static Public Member Functions | List of all members
Nektar::TriangularMatrixFuncs Struct Reference

#include <MatrixFuncs.h>

Inheritance diagram for Nektar::TriangularMatrixFuncs:
[legend]

Static Public Member Functions

static unsigned int GetRequiredStorageSize (unsigned int rows, unsigned int columns)
 

Detailed Description

Definition at line 190 of file MatrixFuncs.h.

Member Function Documentation

◆ GetRequiredStorageSize()

unsigned int Nektar::TriangularMatrixFuncs::GetRequiredStorageSize ( unsigned int  rows,
unsigned int  columns 
)
static

Definition at line 148 of file MatrixFuncs.cpp.

150{
151 ASSERTL0(rows == columns, "Triangular matrices must be square.");
152 return rows * (rows + 1) / 2;
153}
#define ASSERTL0(condition, msg)
Definition: ErrorUtil.hpp:208

References ASSERTL0.

Referenced by Nektar::ConstMatrix< DataType >::GetRequiredStorageSize().