deeplearning4j/deeplearning4j

View on GitHub
codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt

Summary

Maintainability
F
1 mo
Test Coverage

Method Math has a Cognitive Complexity of 1120 (exceeds 20 allowed). Consider refactoring.
Open

fun Math() =  Namespace("Math") {
    Op("abs", transformSame) {
        javaOpClass = "Abs"
        Doc(Language.ANY, DocScope.ALL){
            """
Severity: Minor
Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt - About 3 wks to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

File Math.kt has 1408 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 *  ******************************************************************************
 *  *
 *  *
 *  * This program and the accompanying materials are made available under the
Severity: Major
Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt - About 3 days to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        Op("firstIndex", indexAccum, keepSignatures=false) {
            var c = Arg(CONDITION, "condition") { description = "Condition to check on input variable" }
            Signature(this.inputs.get(0), c, this.args.get(1))                      //in, condition, dimensions - for vararg
            Signature(this.inputs.get(0), c, this.args.get(0), this.args.get(1))    //in, condition, keepDims, dimensions
    
    
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 1 other location - About 5 hrs to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 764..781

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 351.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        Op("lastIndex", indexAccum, keepSignatures=false) {
            var c = Arg(CONDITION, "condition") { description = "Condition to check on input variable" }
            Signature(this.inputs.get(0), c, this.args.get(1))                      //in, condition, dimensions - for vararg
            Signature(this.inputs.get(0), c, this.args.get(0), this.args.get(1))    //in, condition, keepDims, dimensions
            Doc(Language.ANY, DocScope.ALL){
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 1 other location - About 5 hrs to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 599..617

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 351.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        Op("moments") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.reduce"
            Input(NUMERIC, "input") { description = "Input to calculate moments for" }
            Input(NUMERIC, "axes"){ description = "Dimensions to perform calculation over" }
            Arg(BOOL,"keepDims") { description = "Whether to keep dimensions during reduction or not. "}
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 1 other location - About 4 hrs to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 586..599

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 298.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        Op("listDiff") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            Input(NUMERIC, "x") { description = "Input variable X" }
            Input(NUMERIC, "y") { description = "Input variable Y" }
            Output(NUMERIC, "output1"){ description = "Calculated difference between X and Y" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 328..339
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 575..587

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 257.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        Op("xor") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.pairwise.bool"
            legacy = true
            Input(BOOL, "x") { description = "Input 1" }
            Input(BOOL, "y") { description = "Input 2" }
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 1 other location - About 3 hrs to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 272..285

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 245.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        Op("atan2") {// TODO: We need to generate a constructor that includes SameDiff().
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            javaOpClass = "ATan2"
            Input(NUMERIC, "y") { description = "Input Y variable" }
            Input(NUMERIC, "x") { description = "Input X variable" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 248..261
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 511..524

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 235.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 13 locations. Consider refactoring.
    Open

        Op("bitShiftRight") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            javaOpClass = "RShiftBits"
            Input(NUMERIC, "x") {description = "Input tensor"}
            Input(NUMERIC, "shift") {description = "shift argument"}
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 172..183
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 185..196
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 198..210
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 212..224
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1518..1530
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1546..1558
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1560..1572
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 241..253
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1003..1014
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1030..1041
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2115..2126
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2129..2140

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 229.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 13 locations. Consider refactoring.
    Open

        Op("bitShift") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            javaOpClass = "ShiftBits"
            Input(NUMERIC, "x") {description = "input"}
            Input(NUMERIC, "shift") {description = "shift value"}
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 172..183
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 185..196
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 198..210
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 212..224
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1532..1544
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1546..1558
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1560..1572
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 241..253
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1003..1014
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1030..1041
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2115..2126
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2129..2140

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 229.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 13 locations. Consider refactoring.
    Open

        Op("bitShiftRotl") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            javaOpClass = "CyclicShiftBits"
            Input(NUMERIC, "x") {description = "Input tensor"}
            Input(NUMERIC, "shift") {description = "shift argy=ument"}
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 172..183
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 185..196
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 198..210
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 212..224
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1518..1530
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1532..1544
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1560..1572
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 241..253
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1003..1014
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1030..1041
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2115..2126
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2129..2140

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 229.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 13 locations. Consider refactoring.
    Open

        Op("bitShiftRotr") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            javaOpClass = "CyclicRShiftBits"
            Input(NUMERIC, "x") {description = "Input tensor"}
            Input(NUMERIC, "shift") {description = "Shift argument"}
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 172..183
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 185..196
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 198..210
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Bitwise.kt on lines 212..224
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1518..1530
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1532..1544
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1546..1558
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 241..253
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1003..1014
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1030..1041
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2115..2126
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2129..2140

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 229.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        Op("cross") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NUMERIC, "a") { description = "First input" }
            Input(NUMERIC, "b") { description = "Second input" }
            Output(NUMERIC, "output"){ description = "Element-wise cross product" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1133..1144
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1635..1646
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1703..1714

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 222.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        Op("pow") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            Input(NUMERIC, "x") { description = "Input variable" }
            Input(NUMERIC, "y") { description = "Power" }
            Output(NUMERIC, "output"){ description = "Output variable" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 576..586
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 357..368

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 216.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        Op("eye") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(INT, "rows") { description = "Number of rows" }
            Input(INT, "cols") { description = "Number of columns" }
            Output(NUMERIC, "output"){ description = "Identity matrix" }
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1101..1111
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 357..368

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 216.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        Op("mergeMax") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NUMERIC, "inputs"){ count = AtLeast(1); description = "Input variables" }
            Output(NUMERIC, "output"){ description = "Output variable" }
            Doc(Language.ANY, DocScope.ALL){
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 1 other location - About 2 hrs to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 937..947

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 201.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        Op("mergeAvg") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(NUMERIC, "inputs"){ count = AtLeast(1); description = "Input variables" }
            Output(NUMERIC, "output"){ description = "Output variable" }
            Doc(Language.ANY, DocScope.ALL){
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 1 other location - About 2 hrs to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 949..959

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 201.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

        Op("isNonDecreasing") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            Input(NUMERIC, "x") { description = "Input variable" }
            Output(NUMERIC, "output"){ description = "Scalar variable with value 1 if non-decreasing, or 0 otherwise" }
            Doc(Language.ANY, DocScope.ALL){
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 743..754
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 841..852
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 854..865
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1410..1421
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 456..467

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 187.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

        Op("isStrictlyIncreasing") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            Input(NUMERIC, "x") { description = "Input variable" }
            Output(NUMERIC, "output"){ description = "Scalar variable with value 1 if strictly increasing, or 0 otherwise" }
            Doc(Language.ANY, DocScope.ALL){
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 730..741
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 841..852
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 854..865
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1410..1421
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 456..467

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 187.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

        Op("trace") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            Input(NUMERIC, "in") { description = "Input variable" }
            Output(NUMERIC, "output"){ description = "Trace" }
            Doc(Language.ANY, DocScope.ALL){
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 730..741
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 743..754
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 841..852
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 854..865
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 456..467

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 187.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

        Op("matrixDeterminant") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            Input(NUMERIC, "in") { description = "Input" }
            Output(NUMERIC, "output"){ description = "Matrix determinant variable" }
            Doc(Language.ANY, DocScope.ALL){
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 730..741
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 743..754
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 854..865
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1410..1421
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 456..467

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 187.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

        Op("matrixInverse") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.transforms.custom"
            Input(NUMERIC, "in") { description = "Input" }
            Output(NUMERIC, "output"){ description = "Matrix inverse variable" }
            Doc(Language.ANY, DocScope.ALL){
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 730..741
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 743..754
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 841..852
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1410..1421
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 456..467

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 187.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        Op("eye") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Input(INT, "rows") { description = "Number of rows" }
            Output(NUMERIC, "output"){ description = "SDVaribable identity matrix" }
            Doc(Language.ANY, DocScope.ALL){
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 531..540
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1439..1448
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 445..454
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 469..478
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1223..1232
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1613..1622
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1888..1897

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 175.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        Op("zeroFraction") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.reduce"
            Input(NUMERIC, "input") { description = "Input variable" }
            Output(NUMERIC, "output"){ description = "Reduced array of rank 0 (scalar)" }
            Doc(Language.ANY, DocScope.ALL){
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 531..540
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 588..597
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 445..454
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 469..478
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1223..1232
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1613..1622
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1888..1897

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 175.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        Op("eye") {
            javaPackage = "org.nd4j.linalg.api.ops.impl.shape"
            Arg(INT, "rows") { description = "Number of rows" }
            Output(NUMERIC, "output"){ description = "Identity matrix" }
            Doc(Language.ANY, DocScope.ALL){
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 588..597
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1439..1448
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 445..454
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 469..478
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1223..1232
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1613..1622
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1888..1897

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 175.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

        Op("floorDiv", transformArithmetic){
            javaOpClass = "FloorDivOp"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Pairwise floor division operation, out = floor(x / y)
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 63..71
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 461..469
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 638..646
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 961..969
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1158..1166
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1195..1203
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1357..1365
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1463..1471
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1489..1497
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1499..1507

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 114.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

        Op("floorMod", transformArithmetic){
            javaOpClass = "FloorModOp"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Pairwise Modulus division operation
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 63..71
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 461..469
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 628..636
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 961..969
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1158..1166
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1195..1203
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1357..1365
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1463..1471
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1489..1497
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1499..1507

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 114.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

        Op("min", transformCustom2){
            javaOpClass = "Min"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Pairwise max operation, out = min(x, y)
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 63..71
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 461..469
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 628..636
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 638..646
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 961..969
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1158..1166
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1195..1203
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1357..1365
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1463..1471
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1499..1507

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 114.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

        Op("add", transformArithmetic){
            javaOpClass = "AddOp"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Pairwise addition operation, out = x + y
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 461..469
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 628..636
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 638..646
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 961..969
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1158..1166
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1195..1203
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1357..1365
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1463..1471
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1489..1497
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1499..1507

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 114.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

        Op("mod", transformArithmetic){
            javaOpClass = "ModOp"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Pairwise modulus (remainder) operation, out = x % y
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 63..71
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 461..469
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 628..636
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 638..646
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1158..1166
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1195..1203
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1357..1365
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1463..1471
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1489..1497
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1499..1507

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 114.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

        Op("rsub", transformArithmetic){
            javaOpClass = "RSubOp"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Pairwise reverse subtraction operation, out = y - x
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 63..71
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 461..469
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 628..636
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 638..646
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 961..969
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1158..1166
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1357..1365
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1463..1471
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1489..1497
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1499..1507

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 114.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

        Op("div", transformArithmetic){
            javaOpClass = "DivOp"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Pairwise division operation, out = x / y
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 63..71
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 628..636
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 638..646
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 961..969
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1158..1166
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1195..1203
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1357..1365
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1463..1471
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1489..1497
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1499..1507

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 114.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

        Op("sub", transformArithmetic){
            javaOpClass = "SubOp"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Pairwise subtraction operation, out = x - y
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 63..71
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 461..469
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 628..636
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 638..646
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 961..969
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1158..1166
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1195..1203
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1463..1471
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1489..1497
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1499..1507

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 114.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

        Op("max", transformCustom2){
            javaOpClass = "Max"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Pairwise max operation, out = max(x, y)
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 63..71
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 461..469
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 628..636
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 638..646
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 961..969
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1158..1166
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1195..1203
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1357..1365
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1489..1497
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1499..1507

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 114.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

        Op("mul", transformArithmetic){
            javaOpClass = "MulOp"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Pairwise multiplication operation, out = x * y
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 63..71
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 461..469
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 628..636
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 638..646
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 961..969
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1158..1166
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1195..1203
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1357..1365
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1463..1471
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1489..1497

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 114.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 11 locations. Consider refactoring.
    Open

        Op("rdiv", transformArithmetic){
            javaOpClass = "RDivOp"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Pairwise reverse division operation, out = y / x
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 63..71
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 461..469
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 628..636
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 638..646
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 961..969
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1195..1203
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1357..1365
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1463..1471
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1489..1497
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1499..1507

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 114.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        Op("iamin", indexAccumCustom) {
            javaOpClass = "ArgMin"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Index of the min absolute value: argmin(abs(in))
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 667..676
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Random.kt on lines 94..103
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Random.kt on lines 117..126

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 105.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        Op("iamax", indexAccumCustom) {
            javaOpClass = "ArgMax"
            //Signature(in, dimensions)
            Doc(Language.ANY, DocScope.ALL){
                """
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 678..686
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Random.kt on lines 94..103
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Random.kt on lines 117..126

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 105.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        Op("sign", transformSame) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Element-wise sign (signum) function:
                    out = -1 if in < 0
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 119..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 130..139

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 104.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

        Op("floorMod", scalar){
            javaOpClass = "ScalarFMod"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Scalar floor modulus operation
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 73..80
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 471..478
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1168..1175
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1205..1212
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1367..1374
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1509..1516

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 102.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

        Op("add", scalar){
            javaOpClass = "ScalarAdd"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Scalar add operation, out = in + scalar
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 471..478
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 648..655
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1168..1175
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1205..1212
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1367..1374
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1509..1516

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 102.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

        Op("rsub", scalar){
            javaOpClass = "ScalarReverseSubtraction"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Scalar reverse subtraction operation, out = scalar - in
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 73..80
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 471..478
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 648..655
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1168..1175
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1367..1374
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1509..1516

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 102.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

        Op("sub", scalar){
            javaOpClass = "ScalarSubtraction"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Scalar subtraction operation, out = in - scalar
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 73..80
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 471..478
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 648..655
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1168..1175
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1205..1212
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1509..1516

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 102.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

        Op("mul", scalar){
            javaOpClass = "ScalarMultiplication"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Scalar multiplication operation, out = in * scalar
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 73..80
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 471..478
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 648..655
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1168..1175
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1205..1212
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1367..1374

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 102.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

        Op("div", scalar){
            javaOpClass = "ScalarDivision"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Scalar division operation, out = in / scalar
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 73..80
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 648..655
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1168..1175
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1205..1212
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1367..1374
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1509..1516

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 102.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

        Op("rdiv", scalar){
            javaOpClass = "ScalarReverseDivision"
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Scalar reverse division operation, out = scalar / in
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 73..80
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 471..478
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 648..655
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1205..1212
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1367..1374
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1509..1516

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 102.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

            Doc(Language.ANY, DocScope.ALL){
                """
                    Returns an output variable with diagonal values equal to the specified values; off-diagonal values will be set to 0
                    For example, if input = [1,2,3], then output is given by:
                    [ 1, 0, 0]
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 95..104
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 323..334
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1654..1665
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1674..1685
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1763..1774
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1790..1801

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 100.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("squaredNorm", reduceFloating) {
            javaOpClass = "SquaredNorm"
            Doc(Language.ANY, DocScope.ALL){
                """
                   Sum of squared differences.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("reduceMin", reduceSame) {
            javaOpClass = "Min"
            Doc(Language.ANY, DocScope.ALL){
                """
                   The minimum of an array along each dimension
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("abs", transformSame) {
            javaOpClass = "Abs"
            Doc(Language.ANY, DocScope.ALL){
                """
                     Elementwise absolute value operation: out = abs(x)
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("atanh", transformStrict) {
            javaOpClass = "ATanh"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Elementwise atanh (inverse hyperbolic tangent) function: out = atanh(x)
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("reduceMin", reduceSameVariable) {
            javaOpClass = "Min"
            Doc(Language.ANY, DocScope.ALL) {
                """
                   The minimum of an array long each dimension
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("norm1", reduceFloatingVariable) {
            javaOpClass = "Norm1"
            Doc(Language.ANY, DocScope.ALL){
                """
                   Sum of absolute differences.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("asum", reduceSame) {
            javaOpClass = "ASum"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Absolute sum array reduction operation, optionally along specified dimensions: out = sum(abs(x))
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("mean", reduceFloatingVariable) {
            javaOpClass = "Mean"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Mean array reduction operation, optionally along specified dimensions: out = mean(abs(x))
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("acos", transformStrict) {
            javaOpClass = "ACos"
            Doc(Language.ANY, DocScope.ALL){
                """
                     Elementwise acos (arccosine, inverse cosine) operation: out = arccos(x)
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("neg", transformSame) {
            javaOpClass = "Negative"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Elementwise negative operation: out = -x
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("prod", reduceSameVariable) {
            javaOpClass = "Prod"
            Doc(Language.ANY, DocScope.ALL) {
                """
                   The product of an array long each dimension
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("rsqrt", transformFloating) {
            javaOpClass = "RSqrt"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Element-wise reciprocal (inverse) of square root: out = 1.0 / sqrt(x)
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("reduceAmean", reduceFloatingVariable) {
            javaOpClass = "AMean"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Absolute mean array reduction operation, optionally along specified dimensions: out = mean(abs(x))
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("asinh", transformStrict) {
            javaOpClass = "ASinh"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Elementwise asinh (inverse hyperbolic sine) function: out = asinh(x)
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("atan", transformStrict) {
            javaOpClass = "ATan"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Elementwise atan (arctangent, inverse tangent) operation: out = arctangent(x)
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("normMax", reduceFloatingVariable) {
            javaOpClass = "NormMax"
            Doc(Language.ANY, DocScope.ALL){
                """
                      Differences between max absolute value
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("squaredNorm", reduceFloatingVariable) {
            javaOpClass = "SquaredNorm"
            Doc(Language.ANY, DocScope.ALL){
                """
                   Sum of squared differences.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("sum", reduceSameVariable) {
            javaOpClass = "Sum"
            Doc(Language.ANY, DocScope.ALL) {
                """
                   Sum of an array, optionally along specified dimensions: out = sum(x))
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("reduceAmin", reduceSame) {
            javaOpClass = "AMin"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Absolute min array reduction operation, optionally along specified dimensions: out = min(abs(x))
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("mean", reduceFloating) {
            javaOpClass = "Mean"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Mean array reduction operation, optionally along specified dimensions: out = mean(abs(x))
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("norm1", reduceFloating) {
            javaOpClass = "Norm1"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Mean array reduction operation, optionally along specified dimensions: out = mean(abs(x))
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("reduceMax", reduceSameVariable) {
            javaOpClass = "Max"
            Doc(Language.ANY, DocScope.ALL) {
                """
                   The max of an array long each dimension
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("reduceAmin", reduceSameVariable) {
            javaOpClass = "AMin"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Absolute min array reduction operation, optionally along specified dimensions: out = min(abs(x))
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("asin", transformStrict) {
            javaOpClass = "ASin"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Elementwise asin (arcsin, inverse sine) operation: out = arcsin(x)
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("reduceMax", reduceSame) {
            javaOpClass = "Max"
            Doc(Language.ANY, DocScope.ALL){
                """
                   The max of an array along each dimension
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("acosh", transformStrict) {
            javaOpClass = "ACosh"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Elementwise acosh (inverse hyperbolic cosine) function: out = acosh(x)
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("reduceAMax", reduceSameVariable) {
            javaOpClass = "AMax"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Absolute max array reduction operation, optionally along specified dimensions: out = max(abs(x))
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("norm2", reduceFloatingVariable) {
            javaOpClass = "Norm2"
            Doc(Language.ANY, DocScope.ALL){
                """
                      Euclidean norm: euclidean distance of a vector from the origin
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("prod", reduceSame) {
            javaOpClass = "Prod"
            Doc(Language.ANY, DocScope.ALL){
                """
                   The max of an array along each dimension
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("sum", reduceSame) {
            javaOpClass = "Sum"
            Doc(Language.ANY, DocScope.ALL){
                """
                   Sum of an array, optionally along specified dimensions: out = sum(x))
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("reduceAMax", reduceSame) {
            javaOpClass = "AMax"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Absolute max array reduction operation, optionally along specified dimensions: out = max(abs(x))
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("reduceAmean", reduceFloating) {
            javaOpClass = "AMean"
            Doc(Language.ANY, DocScope.ALL){
                """
                    Absolute mean array reduction operation, optionally along specified dimensions: out = mean(abs(x))
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("norm2", reduceFloating) {
            javaOpClass = "Norm2"
            Doc(Language.ANY, DocScope.ALL){
                """
                   Euclidean norm: euclidean distance of a vector from the origin
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1059..1066
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 36 locations. Consider refactoring.
    Open

        Op("normMax", reduceFloating) {
            javaOpClass = "NormMax"
            Doc(Language.ANY, DocScope.ALL){
                """
                   Differences between max absolute value
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 36..43
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 45..52
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 54..61
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 84..91
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 93..100
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 102..109
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 111..118
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 121..128
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 130..137
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 156..163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 166..173
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 175..182
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 184..191
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 207..214
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 868..875
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 877..884
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 887..894
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 896..903
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 906..913
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 915..922
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 999..1006
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1023..1030
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1032..1039
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1041..1048
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1050..1057
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1068..1075
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1114..1121
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1123..1130
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1186..1193
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1305..1312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1314..1321
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1376..1383
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1385..1392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 385..392
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 394..401

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 99.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        Op("hammingDistance", reduce3) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Hamming distance reduction operation. The output contains the cosine distance for each
                    tensor/subset along the specified dimensions:
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 369..377
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 504..512
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 688..696
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 720..728
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 831..839
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1132..1140
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1324..1332

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 98.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        Op("euclideanDistance", reduce3) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Euclidean distance (l2 norm, l2 distance) reduction operation. The output contains the Euclidean distance for each
                    tensor/subset along the specified dimensions:
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 369..377
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 657..665
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 688..696
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 720..728
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 831..839
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1132..1140
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1324..1332

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 98.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        Op("step", scalar) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Elementwise step function:
                    out(x) = 1 if x >= cutoff
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 369..377
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 504..512
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 657..665
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 688..696
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 720..728
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 831..839
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1132..1140

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 98.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        Op("cosineDistance", reduce3) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Cosine distance reduction operation. The output contains the cosine distance for each
                    tensor/subset along the specified dimensions:
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 504..512
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 657..665
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 688..696
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 720..728
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 831..839
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1132..1140
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1324..1332

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 98.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        Op("rationalTanh", transformStrict) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Rational Tanh Approximation elementwise function, as described in the paper:
                    Compact Convolutional Neural Network Cascade for Face Detection
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 369..377
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 504..512
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 657..665
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 688..696
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 720..728
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 831..839
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1324..1332

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 98.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        Op("isFinite", transformBool) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Is finite operation: elementwise isFinite(x)
                    Returns an array with the same shape/size as the input, with values 1 where condition is satisfied, or
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 369..377
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 504..512
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 657..665
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 720..728
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 831..839
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1132..1140
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1324..1332

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 98.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        Op("isNaN", transformBool) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Is Not a Number operation: elementwise isNaN(x)
                    Returns an array with the same shape/size as the input, with values 1 where condition is satisfied, or
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 369..377
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 504..512
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 657..665
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 688..696
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 831..839
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1132..1140
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1324..1332

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 98.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        Op("manhattanDistance", reduce3) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Manhattan distance (l1 norm, l1 distance) reduction operation. The output contains the Manhattan distance for each
                    tensor/subset along the specified dimensions:
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 369..377
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 504..512
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 657..665
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 688..696
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 720..728
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1132..1140
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1324..1332

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 98.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

            Doc(Language.ANY, DocScope.ALL){
                """
                    Compute the 2d confusion matrix of size [numClasses, numClasses] from a pair of labels and predictions, both of
                    which are represented as integer values.
                    For example, if labels = [0, 1, 1], predicted = [0, 2, 1], numClasses = 4, and weights = [1, 2, 3]
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 302..312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 448..458
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1722..1732
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2153..2163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDLoss.kt on lines 115..125

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

            Doc(Language.ANY, DocScope.ALL){
                """
                    Extract the diagonal part from the input array.
                    If input is
                    [ 1, 0, 0]
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 302..312
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 340..350
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1722..1732
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2153..2163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDLoss.kt on lines 115..125

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

            Doc(Language.ANY, DocScope.ALL){
                """
                    Compute the 2d confusion matrix of size [numClasses, numClasses] from a pair of labels and predictions, both of
                    which are represented as integer values.
                    For example, if labels = [0, 1, 1], predicted = [0, 2, 1], and numClasses=4 then output is:
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 340..350
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 448..458
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1722..1732
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 2153..2163
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDLoss.kt on lines 115..125

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        Op("ceil", transformSame) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Element-wise ceiling function: out = ceil(x).
                    Rounds each value up to the nearest integer value (if not already an integer)
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 619..626
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1177..1184

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 92.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        Op("round", transformSame) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Element-wise round function: out = round(x).
                    Rounds (up or down depending on value) to the nearest integer value.
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 216..223
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 619..626

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 92.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        Op("floor", transformSame) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Element-wise floor function: out = floor(x).
                    Rounds each value down to the nearest integer value (if not already an integer)
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 216..223
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1177..1184

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 92.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        Op("erf", transformStrict) {
            Doc(Language.ANY, DocScope.ALL){
                """ 
                    Element-wise Gaussian error function - out = erf(in)
                """.trimIndent()
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 756..762

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 89.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        Op("jaccardDistance", reduce3) {
            Doc(Language.ANY, DocScope.ALL){
                """Jaccard similarity reduction operation. The output contains the Jaccard distance for each
                    tensor along the specified dimensions.
                """.trimIndent()
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 488..494

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 89.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("cube", transformSame) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Element-wise cube function: out = x^3
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("square", transformSame) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Element-wise square function: out = x^2
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("cos", transformStrict) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Elementwise cosine operation: out = cos(x)
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("countNonZero", reduceLong) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Count non zero array reduction operation, optionally along specified dimensions: out = count(x != 0)
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("log", transformStrict) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Element-wise logarithm function (base e - natural logarithm): out = log(x)
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("shannonEntropy", reduceFloating) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Shannon Entropy reduction: -sum(x * log2(x))
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("shannonEntropy", reduceFloatingVariable) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Shannon Entropy reduction: -sum(x * log2(x))
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("tanh", transformStrict) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Elementwise tanh (hyperbolic tangent) operation: out = tanh(x)
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("entropy", reduceFloating) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Entropy reduction: -sum(x * log(x))
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("logEntropy", reduceFloating) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Log entropy reduction: log(-sum(x * log(x)))
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("cosh", transformStrict) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Elementwise cosh (hyperbolic cosine) operation: out = cosh(x)
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("countZero", reduceLong) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Count zero array reduction operation, optionally along specified dimensions: out = count(x == 0)
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("sinh", transformStrict) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Elementwise sinh (hyperbolic sine) operation: out = sinh(x)
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("expm1", transformStrict) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Elementwise 1.0 - exponent function: out = 1.0 - exp(x) = 1.0 - 2.71828...^x
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("exp", transformStrict) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Elementwise exponent function: out = exp(x) = 2.71828...^x
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("pow", scalar) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Element-wise power function: out = x^value
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("reciprocal", transformSame) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Element-wise reciprocal (inverse) function: out[i] = 1 / in[i]
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("tan", transformStrict) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Elementwise tangent operation: out = tan(x)
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("erfc", transformStrict) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Element-wise complementary Gaussian error function - out = erfc(in) = 1 - erf(in)
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("sqrt", transformFloating) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Element-wise square root function: out = sqrt(x)
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("rectifiedTanh", transformStrict) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Rectified tanh operation: max(0, tanh(in))
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("sin", transformStrict) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Elementwise sine operation: out = sin(x)
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 802..808
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 25 locations. Consider refactoring.
    Open

        Op("log1p", transformStrict) {
            Doc(Language.ANY, DocScope.ALL){
                """
                    Elementwise natural logarithm function: out = log_e (1 + x)
                """.trimIndent()
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 24 other locations - About 55 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 353..359
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 361..367
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 389..395
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 397..403
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 418..424
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 480..486
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 496..502
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 514..520
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 522..528
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 783..789
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 810..816
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1093..1099
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1142..1148
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1150..1156
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1236..1242
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1244..1250
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1263..1269
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1271..1277
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1279..1285
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1287..1293
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1394..1400
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt on lines 1402..1408
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 221..227
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/NeuralNetwork.kt on lines 349..355

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 86.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

            Arg(DATA_TYPE, "dataType") { description = "Data type"; defaultValue = org.nd4j.linalg.api.buffer.DataType.INT }
    Severity: Major
    Found in codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Math.kt and 2 other locations - About 50 mins to fix
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/Linalg.kt on lines 291..291
    codegen/op-codegen/src/main/ops/org/nd4j/codegen/ops/SDBaseOps.kt on lines 1050..1050

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 82.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status