check_metric: Check Metric for Inner Product

Description Usage Arguments Details Value Examples

Description

Make sure the provided metric for an inner product is ok

Usage

1
  check_metric(metric)

Arguments

metric

either NULL, a numeric vector, or a numeric square matrix

Details

if metric = NULL this means the identity metric

Value

Returns TRUE if the metric is ok, errors otherwise

Examples

1
2
3
4

gastonstat/matrixkit documentation built on May 16, 2019, 5:45 p.m.