<commit_before>/** @file
 *
 * The header file for the Node class.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 */

#ifndef __NODE_H
#define __NODE_H

#include "node.decl.h"

#include <spammxx.h>

/** The Node class. */
class Node : public CBase_Node
{
  private:

    /** The matrix size. */
    int N;

    /** The submatrix size at the lowest tier. */
    int blocksize;

    /** The tree depth of the matrix. */
    int depth;

    /** The tier of this Node. */
    int tier;

    /** The lower row index. */
    int iLower;

    /** The upper row index. */
    int iUpper;

    /** The lower column index. */
    int jLower;

    /** The upper column index. */
    int jUpper;

    /** The linear index of this node. */
    unsigned int index;

    /** The norm of this matrix block. */
    double norm;

    /** The square of the norm of this matrix block. */
    double norm_2;

    /** The matrix tree. */
    SpAMM::Tree tree;

  public:

    Node (int N, int depth, int blocksize, int tier);
    Node (CkMigrateMessage *msg);
    ~Node (void);
    void pup (PUP::er &p);
    void init (CkCallback &cb);
    NodeInfoMsg * info (void);
    DenseMatrixMsg * getBlock (void);
    void blockNorm (void);
    void set (int blocksize, double *A, CkCallback &cb);
    void setNorm (CProxy_Node nodes, CkCallback &cb);
    void blockAdd (double alpha, int blocksize, double *A);
    void add (double alpha, double beta, CProxy_Node B, CkCallback &cb);
    void trace (CkCallback &cb);<commit_msg>Small fix to compile the code.<commit_after>/** @file
 *
 * The header file for the Node class.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 */

#ifndef __NODE_H
#define __NODE_H

#include "node.decl.h"

#include <spammxx.h>

/** The Node class. */
class Node : public CBase_Node
{
  private:

    /** The matrix size. */
    int N;

    /** The submatrix size at the lowest tier. */
    int blocksize;

    /** The tree depth of the matrix. */
    int depth;

    /** The tier of this Node. */
    int tier;

    /** The lower row index. */
    int iLower;

    /** The upper row index. */
    int iUpper;

    /** The lower column index. */
    int jLower;

    /** The upper column index. */
    int jUpper;

    /** The linear index of this node. */
    unsigned int index;

    /** The norm of this matrix block. */
    double norm;

    /** The square of the norm of this matrix block. */
    double norm_2;

    /** The matrix data. */
    double *block;

    /** The matrix tree. */
    SpAMM::Tree *tree;

  public:

    Node (int N, int depth, int blocksize, int tier);
    Node (CkMigrateMessage *msg);
    ~Node (void);
    void pup (PUP::er &p);
    void init (CkCallback &cb);
    NodeInfoMsg * info (void);
    DenseMatrixMsg * getBlock (void);
    void blockNorm (void);
    void set (int blocksize, double *A, CkCallback &cb);
    void setNorm (CProxy_Node nodes, CkCallback &cb);
    void blockAdd (double alpha, int blocksize, double *A);
    void add (double alpha, double beta, CProxy_Node B, CkCallback &cb);
    void trace (CkCallback &cb);
{'fraction_non_alphanumeric': 0.13268608414239483, 'fraction_numerical': 0.0006472491909385113, 'mean_word_length': 2.404185022026432, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5812278', 'n_tokens_mistral': 1020, 'n_tokens_neox': 990, 'n_words': 379}