#include <Rdefines.h>
#include <Rconfig.h>
#include <R.h>
#include "Syms.h"
Go to the source code of this file.
Defines | |
#define | _(String) (String) |
#define | RMJ CblasRowMajor |
#define | CMJ CblasColMajor |
#define | NTR CblasNoTrans |
#define | TRN CblasTrans |
#define | CTR CblasConjTrans |
#define | UPP CblasUpper |
#define | LOW CblasLower |
#define | NUN CblasNonUnit |
#define | UNT CblasUnit |
#define | LFT CblasLeft |
#define | RGT CblasRight |
#define | AZERO(x, n) {int _I_, _SZ_ = (n); for(_I_ = 0; _I_ < _SZ_; _I_++) (x)[_I_] = 0;} |
Enumerations | |
enum | CBLAS_ORDER { CblasRowMajor = 101, CblasColMajor = 102 } |
enum | CBLAS_TRANSPOSE { CblasNoTrans = 111, CblasTrans = 112, CblasConjTrans = 113 } |
enum | CBLAS_UPLO { CblasUpper = 121, CblasLower = 122 } |
enum | CBLAS_DIAG { CblasNonUnit = 131, CblasUnit = 132 } |
enum | CBLAS_SIDE { CblasLeft = 141, CblasRight = 142 } |
Functions | |
char | norm_type (char *typstr) |
char | rcond_type (char *typstr) |
double | get_double_by_name (SEXP obj, char *nm) |
SEXP | set_double_by_name (SEXP obj, double val, char *nm) |
SEXP | as_det_obj (double val, int log, int sign) |
SEXP | get_factors (SEXP obj, char *nm) |
SEXP | set_factors (SEXP obj, SEXP val, char *nm) |
SEXP | dgCMatrix_set_Dim (SEXP x, int nrow) |
int | csc_unsorted_columns (int ncol, const int p[], const int i[]) |
void | csc_sort_columns (int ncol, const int p[], int i[], double x[]) |
SEXP | triple_as_SEXP (int nrow, int ncol, int nz, const int Ti[], const int Tj[], const double Tx[], char *Rclass) |
SEXP | csc_check_column_sorting (SEXP A) |
void | csc_components_transpose (int m, int n, int nnz, const int xp[], const int xi[], const double xx[], int ap[], int ai[], double ax[]) |
void | ssc_symbolic_permute (int n, int upper, const int perm[], int Ap[], int Ai[]) |
double * | nlme_symmetrize (double *a, const int nc) |
void | nlme_check_Lapack_error (int info, const char *laName) |
SEXP | nlme_replaceSlot (SEXP obj, SEXP names, SEXP value) |
SEXP | nlme_weight_matrix_list (SEXP MLin, SEXP wts, SEXP adjst, SEXP MLout) |
SEXP | Matrix_make_named (int TYP, char **names) |
static R_INLINE SEXP | ALLOC_SLOT (SEXP obj, SEXP nm, SEXPTYPE type, int length) |
static R_INLINE int * | expand_column_pointers (int ncol, const int mp[], int mj[]) |
static R_INLINE int | check_csc_index (const int p[], const int i[], int row, int col, int missing) |
SEXP | alloc3Darray (SEXPTYPE mode, int nrow, int ncol, int nface) |
static R_INLINE int | Lind (int k, int i) |
static R_INLINE int | match_mat_dims (const int xd[], const int yd[]) |
double * | expand_csc_column (double *dest, int m, int j, const int Ap[], const int Ai[], const double Ax[]) |
static R_INLINE void | int_permute (int i[], int n, const int perm[]) |
static R_INLINE void | make_upper_triangular (int i[], int j[], int nnz) |
void | make_array_triangular (double *x, SEXP from) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Allocate a 3-dimensional array
|
|
Allocate an SEXP of given type and length, assign it as slot nm in the object, and return the SEXP. The validity of this function depends on SET_SLOT not duplicating val when NAMED(val) == 0. If this behavior changes then ALLOC_SLOT must use SET_SLOT followed by GET_SLOT to ensure that the value returned is indeed the SEXP in the slot.
|
|
|
|
Return the linear index of the (row, col) entry in a csc structure. If the entry is not found and missing is 0 an error is signaled; otherwise the missing value is returned.
|
|
Check for sorted columns in an object that inherits from the dgCMatrix class. Resort the columns if necessary.
|
|
|
|
Sort the columns in a sparse column-oriented matrix so that each column is in increasing order of row index.
|
|
Check for unsorted columns in the row indices
|
|
|
|
Expand the column pointers in the array mp into a full set of column indices in the array mj.
|
|
Expand a column of a compressed, sparse, column-oriented matrix.
|
|
|
|
|
|
Apply a permutation to an integer vector
|
|
Calculate the zero-based index in a row-wise packed lower triangular matrix. This is used for the arrays of blocked sparse matrices.
|
|
|
|
Force index pairs to be in the upper triangle of a matrix
|
|
Check for a complete match on matrix dimensions
|
|
Create a named vector of type TYP
|
|
Check the error code returned by an Lapack routine and create an appropriate error message.
|
|
Replace the value of a slot or subslot of an object in place. This routine purposely does not copy the value of obj. Use with caution.
|
|
Symmetrize a matrix by copying the strict upper triangle into the lower triangle.
|
|
Produce a weighted copy of the matrices in MLin in the storage allocated to MLout
|
|
|
|
|
|
|
|
|
|
|
|
|