Np

ops

Operations A fast lite & memory efficient Scientific Computing for php

Tags
category

Scientific Computing

author

ghost (Shubham Chaudhary)

email

ghost.jat@gmail.com

copyright

(c) 2020-2021, Shubham Chaudhary

Table of Contents

abs()  : matrix|vector
acos()  : matrix|vector
asin()  : matrix|vector
atan()  : matrix|vector
ceil()  : matrix|vector
clip()  : matrix
Clip the elements in the matrix to be between given minimum and maximum and return a new matrix.
clipLower()  : matrix
Clip the matrix|vector to be lower bounded by a given minimum.
clipUpper()  : matrix
Clip the matrix|vector to be upper bounded by a given maximum.
copy()  : matrix|vector
make a copy of matrix|vector;
cos()  : matrix|vector
degToRad()  : matrix|vector
exp()  : matrix|vector
exp1()  : matrix|vector
floor()  : matrix|vector
free()  : void
log()  : matrix|vector
log1p()  : matrix|vector
map()  : matrix|vector
Run a function over all of the elements in the matrix|vector.
max()  : matrix|vector
Return the element-wise maximum of two matrices| two vectors.
min()  : matrix|vector
Return the element-wise minimum of two matrices|two vectors.
radToDeg()  : matrix|vector
reshape()  : matrix
return a reshaped data buffer as matrix
sin()  : matrix|vector
sqrt()  : matrix|vector
tan()  : matrix|vector

Methods

clip()

Clip the elements in the matrix to be between given minimum and maximum and return a new matrix.

public clip(float $min, float $max) : matrix
Parameters
$min : float
$max : float
Return values
matrix

clipLower()

Clip the matrix|vector to be lower bounded by a given minimum.

public clipLower(float $min) : matrix
Parameters
$min : float
Return values
matrix

clipUpper()

Clip the matrix|vector to be upper bounded by a given maximum.

public clipUpper(float $max) : matrix
Parameters
$max : float
Return values
matrix

free()

public free() : void
Return values
void

map()

Run a function over all of the elements in the matrix|vector.

public map(callable $func) : matrix|vector
Parameters
$func : callable
Return values
matrix|vector

reshape()

return a reshaped data buffer as matrix

public reshape(int $row, int $col) : matrix
Parameters
$row : int
$col : int
Return values
matrix

Search results