numgo

package module
v0.0.0-...-6bcc90f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2018 License: MPL-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

numgo Build Status

A library that is aimed at providing methods and functions that give scope for performing numerical and scientific calculations in go-lang. The core concept to numgo library is that everything is an array and all operations, calculations, functions and routines that correspond to are in reference to that n-dimensional array.

Inspiration

Inspired by numpy for python, numGo aims to replicate all the mathematical concepts that are covered in numpy. Therefore, most of the concepts and ideas are broadly taken from numpy.

Operations to be supported

  • Algebra
  • Arithmatics
  • Trigonometry
  • Exponents and logarithms
  • Universal Functions
  • Logical Functions

Installation

go get github.com/akhilpandey95/numgo

Usage

package main

import (
    "fmt"
    "github.com/akhilpandey95/numgo"
)

func main() {
    fmt.Println(numgo.NDArray(3, 3, 3))  // would init a NDArray of shape 3,3,3
    fmt.Println(numgo.Xrange(8, 20))     // would print from 8 to 20
    fmt.Println(numgo.Xrange(8, 9, 0.1)) // would print from 8.1 to 8.9
}

Methods

NOTE: The package in its entirety is under development v0.1 will be shipped by the end of December 2017.

Support

  • go version go1.9 linux/amd64

License

The MIT License

Contributors

Would love to see anyone willing to contribute

Maintainer

Akhil Pandey

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(array_one, array_two []float64) []bool

func GetIndex

func GetIndex(n *NArray, details ...float64) float64

func Greater

func Greater(array_one, array_two []float64) []float64

func Greater_B

func Greater_B(array_one, array_two []float64) []bool

func Lesser

func Lesser(array_one, array_two []float64) []float64

func Lesser_B

func Lesser_B(array_one, array_two []float64) []bool

func NDArrayGenElements

func NDArrayGenElements(value float64, details ...float64) []float64

func Not_Equal

func Not_Equal(array_one, array_two []float64) []bool

func Round

func Round(number, decimal, precision float64) float64

func RowColFormula

func RowColFormula(details []float64) float64

func Strcapitalize

func Strcapitalize(array_one []string) []string

func Strcontains

func Strcontains(array_one []string, args ...string) []bool

func Strcount

func Strcount(array_one []string, args ...string) []int

func Strjoin

func Strjoin(delimiter string, array_one, array_two []string) []string

func Strtolower

func Strtolower(array_one []string) []string

func Strtoupper

func Strtoupper(array_one []string) []string

Types

type NArray

type NArray struct {
	Data    []float64
	Details []float64
	Index   []float64
}

func Acos

func Acos(n *NArray) *NArray

func Acosh

func Acosh(n *NArray) *NArray

func Asin

func Asin(n *NArray) *NArray

func Asinh

func Asinh(n *NArray) *NArray

func Atan

func Atan(n *NArray) *NArray

func Atanh

func Atanh(n *NArray) *NArray

func Cos

func Cos(measure string, n *NArray) *NArray

func Cosec

func Cosec(measure string, n *NArray) *NArray

func Cosh

func Cosh(n *NArray) *NArray

func Cot

func Cot(measure string, n *NArray) *NArray

func Init

func Init(length float64) (n *NArray)

func NDArray

func NDArray(details ...float64) (n *NArray)

func Range

func Range(start, end float64) (n *NArray)

func Sec

func Sec(measure string, n *NArray) *NArray

func Sin

func Sin(measure string, n *NArray) *NArray

func Sinh

func Sinh(n *NArray) *NArray

func Sqrt

func Sqrt(args ...float64) *NArray

func Tan

func Tan(measure string, n *NArray) *NArray

func Tanh

func Tanh(n *NArray) *NArray

func Xrange

func Xrange(args ...float64) (n *NArray)

func (*NArray) FillElements

func (n *NArray) FillElements(values []float64) *NArray

func (*NArray) GetElement

func (n *NArray) GetElement(details ...float64) float64

func (*NArray) SetElement

func (n *NArray) SetElement(details []float64, value float64) *NArray

func (*NArray) String

func (n *NArray) String() (array string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL